File tree Expand file tree Collapse file tree 9 files changed +25743
-0
lines changed Expand file tree Collapse file tree 9 files changed +25743
-0
lines changed Load Diff Large diffs are not rendered by default.
Load Diff Large diffs are not rendered by default.
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ # version branch names in descending order
4+ VERSIONS=(master v2.19 v2.18 v2.17 v2.16 v2.15 v2.14 v2.13 v2.12 v2.11 v2.10 v2.9 v2.8 v2.7 v2.6 v2.5 v2.4 v2.3 v2.2 v2.0 v1.x)
5+
6+ # clean
7+ git checkout master
8+
9+ TODEPLOY=()
10+ for i in " ${VERSIONS[@]} "
11+ do
12+ read -p " add branch [$i ]? [y/n] " REPLY
13+ if [[ $REPLY =~ ^[Yy]$ ]]; then
14+ TODEPLOY+=($i )
15+ fi
16+ done
17+
18+ # build each version in order
19+ for i in " ${TODEPLOY[@]} " ; do
20+ echo " Branch [$i ]: Generating HTML and local directories"
21+ git checkout $i && git pull && make html publish
22+ done
23+
24+ # Prompt in case errors encountered
25+ read -p " Proceed with deploy? " -n 1 -r
26+ echo
27+ if [[ ! $REPLY =~ ^[Yy]$ ]]; then
28+ [[ " $0 " = " $BASH_SOURCE " ]] && exit 1 || return 1
29+ fi
30+
31+ # deploy
32+ for i in " ${TODEPLOY[@]} " ; do
33+ echo " Deploying [$i ]"
34+ git checkout $i && yes | make deploy
35+ done
36+
37+ echo " Deployment complete!"
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ # version branch names in descending order
4+ VERSIONS=(master v2.19 v2.18 v2.17 v2.14 v2.13 v2.12 v2.11 v2.10 v2.9 v2.8 v2.7 v2.6 v2.5 v2.4 v2.3 v2.2 v2.0 v1.x)
5+
6+ # build each version in order
7+ for i in " ${VERSIONS[@]} " ; do
8+ echo " checking out"
9+ git checkout $i
10+ done
You can’t perform that action at this time.
0 commit comments