-
Notifications
You must be signed in to change notification settings - Fork 0
/
mkhtml.sh
executable file
·65 lines (49 loc) · 1.03 KB
/
mkhtml.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
BASEDIR=$PWD
REBUILD=false
UPLOAD=false
while [[ $# -gt 0 ]]
do
key="$1"
case $key in
-r|--rebuild)
REBUILD=true
;;
-u|--upload)
UPLOAD=true
;;
*)
echo "Unknown command line argument $1" # unknown option
exit 1
;;
esac
shift # past argument or value
done
if $REBUILD; then
isabelle build -v -D thys -d contrib/Imperative_HOL_Time
./mkdist.sh
fi
rm -rf html
mkdir -p html
cp -a html.in/* html/
ISABELLE_BROWSER_INFO=$(isabelle getenv ISABELLE_BROWSER_INFO | sed -re 's/.*=//')
cp -a $ISABELLE_BROWSER_INFO/Unsorted/Isabelle_LLVM_Time html/
cp index.md html/
cp dist.tgz html/
cp LICENSE html/
cp etc/logo/logo_200.png html/
pandoc -V pagetitle="Isabelle LLVM with Time" -s index.md > html/index.html
if $UPLOAD; then
LOCAL_DEST=~/devel/www21-lammich/isabelle_llvm_time
rm -rf $LOCAL_DEST
cp -a html $LOCAL_DEST
cd $LOCAL_DEST
echo ADD
hg add .
echo COMMIT
hg commit -m "Automatic update of Isabelle-LLVM" .
echo PUSH
hg push
echo DONE
cd $BASEDIR
fi