forked from pmmp/bds-modding-devkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
helper.sh
executable file
·46 lines (43 loc) · 1.22 KB
/
helper.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
#!/bin/bash
R=$(echo -en '\033[0m')
LR=$(echo -en '\033[01;31m')
LG=$(echo -en '\033[01;32m')
LY=$(echo -en '\033[01;33m')
LC=$(echo -en '\033[01;36m')
W=$(echo -en '\033[01;37m')
show_help(){
echo "${LC}Usage: $LG$0 ${LR}command ${LC}<${LY}arguments${LC}>
${LG}Available commands:
${LR}setup ${LC}<${LY}server files path${LC}>${W} — ${LC}sets everything up from scratch for the first time
${LR}clean-server${W} — ${LC}removes the old server binaries, leaving configs and worlds intact
${LR}install-server ${LC}<${LY}server files path${LC}>${W} — ${LC}installs server files from the given directory
${LR}install-modloader${W} — ${LC}installs latest ModLoader binaries and SDK
${LR}gen ${LC}<${LY}name${LC}>${W} — ${LC}generates template for mod
${LR}build ${LC}<${LY}all${LC}|${LY}name${LC}>${W} — ${LC}builds all mods or selected$R"
}
case $1 in
"setup")
./scripts/setup "$@"
;;
"clean-server")
./scripts/clean-server "$@"
;;
"install-server")
./scripts/install-server "$@"
;;
"export-server-symbols")
./scripts/export-server-symbols "$@"
;;
"install-modloader")
./scripts/install-modloader "$@"
;;
"gen")
./scripts/gen "$@"
;;
"build")
./scripts/build "$@"
;;
*)
show_help
;;
esac