forked from ckaestne/TypeChef
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenpages.sh
More file actions
34 lines (27 loc) · 747 Bytes
/
genpages.sh
File metadata and controls
34 lines (27 loc) · 747 Bytes
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
27
28
29
30
31
32
33
#updates the website with README.md file and a fresh typechef.jar file
#checkout fresh (if needed)
mkdir pages
cd pages
git clone -s -b gh-pages .. TypeChef
cd TypeChef
git checkout gh-pages -f
git reset --hard
#deploy
cd ../..
cp README.md pages/TypeChef/_includes/README.md
if [ $1 = "--mkjar" ]
then sbt assembly; cp TypeChef-*.jar pages/TypeChef/deploy
else echo not updating .jar file. call with --mkjar parameter to generate .jar file
fi
#update parameter documentation
sbt mkrun
./typechef.sh --help > Parameter.txt
git commit -m "update parameter list with genpages.sh" Parameter.txt
cd pages/TypeChef
#commit
git add *
git commit -a -m "update website with genpages.sh"
git push origin gh-pages
#cleanup
#cd ../..
#rm -r -f pages