forked from bigmc/bigmc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate-web.sh
More file actions
executable file
·46 lines (34 loc) · 783 Bytes
/
update-web.sh
File metadata and controls
executable file
·46 lines (34 loc) · 783 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
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/sh
TARG="gdpe@expdev.net:/home/gdpe/public_html/bigraph/bigmc"
#git pull origin master
#./autogen.sh
#./configure
VERSION=`cat config.h | sed -n 's/^#define PACKAGE_VERSION "\(.*\)"/\1/p'`
make pdf
if [ $? -ne 0 ]
then
echo "make pdf failed, aborting."
exit 1
fi
make html
if [ $? -ne 0 ]
then
echo "make html failed, aborting."
exit 1
fi
#make dist
#if [ $? -ne 0 ]
#then
# echo "make dist failed, aborting."
# exit 1
#fi
cd doc/manual
./format_manual.sh
cd ../../
scp doc/website/* $TARG/
scp doc/website/manual/* $TARG/manual/
scp doc/manual/bigmc.pdf $TARG/bigmc.pdf
scp bin/BigMC-GUI-$VERSION.jar $TARG/release/
scp bin/bigmc-$VERSION.tar.gz $TARG/release/
scp bin/BigMC-$VERSION.dmg $TARG/release/
scp bin/BigMC-$VERSION.exe $TARG/release/