webogram-i2p/update-angular.sh
2014-01-22 14:09:49 +04:00

16 lines
514 B
Bash
Executable File

#! /bin/sh
if [ -n "$1" ]; then
mkdir tmp
curl https://raw.github.com/angular/code.angularjs.org/master/$1/angular-$1.zip -o tmp/angular.zip
rm -fr app/vendor/angular
unzip tmp/angular.zip -d app/vendor
mv app/vendor/angular-$1 app/vendor/angular
rm -fr app/vendor/angular/docs
mv app/vendor/angular/angular-mocks.js test/lib/angular
mv app/vendor/angular/angular-scenario.js test/lib/angular
cp app/vendor/angular/version.txt test/lib/angular
else
echo "Usage: update-angular <version>"
fi