forked from rsyslog/rsyslog-doc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·26 lines (23 loc) · 884 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
echo "This script is intended to run with the clean repo version of the code."
echo "Run the sphinx-build command manually if you want to see your uncommited changes."
echo "If you run this command with uncommitted and un-pushed changes, you will lose those changes,"
echo "or end up with merge conflicts."
echo ""
echo "Press Enter to continue or Ctrl-C to cancel...."
read
MASTERBRANCH=v8-devel
for version in `git branch | cut -c3-`
do
VER=$(if [[ ${version} == 'master' ]];then echo ${MASTERBRANCH} ; else echo ${version}; fi)
echo "Checkout Branch ${versions}"
git checkout ${version}
echo "Fetch Branch ${versions}"
git fetch origin ${version}
echo "Reset Branch ${versions}"
git reset --hard
echo "Pull Branch ${versions}"
git pull origin ${version}
echo "Build ${versions}"
sphinx-build -b html source ${VER}
done