-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·47 lines (30 loc) · 819 Bytes
/
build.sh
File metadata and controls
executable file
·47 lines (30 loc) · 819 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
#!/usr/bin/env bash
base_dir=$(dirname "$0")
if [ $# != 1 ]; then
echo "!> Missing group information."
echo "!> Usage: $0 <renew | server | g1 | g2 | g3>"
exit
fi
if [ $# != 0 ]; then
echo "$0 $1 running..."
if [ "$1" == "renew" ]; then
echo "rm -r $base_dir/tftp/"
rm -r $base_dir/tftp/
echo "rm -r $base_dir/web/"
rm -r $base_dir/web/
echo "rm -r $base_dir/mirai/release/"
rm -r $base_dir/mirai/release/
echo "rm -r $base_dir/mirai/debug/"
rm -r $base_dir/mirai/debug/
$base_dir/server.sh
elif [ "$1" == "server" ]; then
$base_dir/server.sh
elif [ "$1" == "g1" ]; then
$base_dir/server.sh
$base_dir/iots.sh g1
elif [ "$1" == "g2" ]; then
$base_dir/iots.sh g2
else
$base_dir/iots.sh g3
fi
fi