-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.sh
executable file
·50 lines (42 loc) · 1.01 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash -e
PROGRAM_NAME=`basename $0`
display_help () {
echo "Usage: $PROGRAM_NAME [options] [command]"
echo ""
echo "Available commands:"
echo " help - Display this help."
echo " delete - Delete a container."
echo " shell - Enter a container."
echo " clean - Clean the snap build dir."
echo "Options:"
echo " --help, -h - Display this help."
echo " --branch=<value> - Use given branch to check out sources (Default: master)."
}
echo "******************* $@"
BRANCH="master"
while [ "$1" != "" ]; do
OPTION=`echo $1 | awk -F= '{print $1}'`
VALUE=`echo $1 | awk -F= '{print $2}'`
case $1 in
-*)
case $OPTION in
--branch | -b)
BRANCH=$VALUE
;;
*)
;;
esac
shift
;;
*)
break;
;;
esac
done
cd tools
export QT_SELECT=qt5
./generate-docs $BRANCH
cd ..
npm i
npm run build
cd dist