Skip to content

Commit cc3591d

Browse files
chore(scripts/private): add release scripts
1 parent 68cae11 commit cc3591d

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

scripts/private/download-angular.sh

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#! /bin/sh
2+
if [ -n "$1" ]; then
3+
ROOT_DIR=`dirname $0`/../..
4+
cd $ROOT_DIR
5+
6+
# Remove the previous angular version
7+
rm -fr app/lib/angular
8+
# Download and unzip the new angular version
9+
mkdir tmp
10+
curl https://raw.github.com/angular/code.angularjs.org/master/$1/angular-$1.zip -o tmp/angular.zip
11+
unzip tmp/angular.zip -d app/lib
12+
13+
# Copy all the angular library files over
14+
mv app/lib/angular-$1 app/lib/angular
15+
16+
# Clean up (in case the angular docs were left in the repos from)
17+
rm -fr app/lib/angular/docs
18+
rm -fr tmp
19+
else
20+
echo "Usage: download-angular <version>"
21+
fi

scripts/private/update-angular.sh

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#! /bin/sh
2+
if [ -n "$1" ]; then
3+
4+
SCRIPT_DIR=`dirname $0`
5+
ROOT_DIR=$SCRIPT_DIR/../../
6+
7+
git checkout -f master
8+
git checkout step-0^ -b update-$1
9+
$SCRIPT_DIR/download-angular.sh $1
10+
git add $ROOT_DIR/app/lib/angular
11+
git commit -m"BUMP ANGULAR VERSION to $1"
12+
13+
for (( i = 0; i <= 12; i++ )); do
14+
git cherry-pick step-$i
15+
done
16+
17+
else
18+
echo "Usage: update-angular <version>"
19+
fi

0 commit comments

Comments
 (0)