forked from FabriceSalvaire/CodeReview
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake-html
More file actions
executable file
·57 lines (42 loc) · 1004 Bytes
/
make-html
File metadata and controls
executable file
·57 lines (42 loc) · 1004 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
47
48
49
50
51
52
53
54
55
56
57
#! /bin/bash
#####################################################################################################
TEMP=`getopt --long help,clean \
-n 'make-html' -- make-html "$@"`
if [ $? != 0 ] ; then
echo "End" >&2 ;
exit 1 ;
fi
eval set -- "$TEMP"
while true ; do
case "$1" in
--help)
cat <<EOF
GVLab Bootstrap
--help
--clean
EOF
exit 1 ;;
--clean)
echo clean option
clean='yes'
shift ;;
--)
shift;
break ;;
*)
echo 'Bad option' ;
exit 1 ;;
esac
done
#####################################################################################################
#source $HOME/.bashrc
#set_python27
if [ "x$clean" = "xyes" ] ; then
make -f Makefile.sphinx clean
fi
make -f Makefile.sphinx html
#####################################################################################################
#
# End
#
#####################################################################################################