-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev-setup.sh
More file actions
executable file
·39 lines (34 loc) · 870 Bytes
/
dev-setup.sh
File metadata and controls
executable file
·39 lines (34 loc) · 870 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
#!/bin/bash
set -euo pipefail
## Parse command line arguments
DOWNLOAD_DOC=false
DOWNLOAD_TESTER=false
if [ "$#" -eq 0 ]; then
DOWNLOAD_DOC=true
DOWNLOAD_TESTER=true
else
for arg in "$@"; do
case $arg in
--doc)
DOWNLOAD_DOC=true
;;
--tester)
DOWNLOAD_TESTER=true
;;
*)
echo "Unknown argument: $arg"
exit 1
esac
done
fi
if [ "$DOWNLOAD_DOC" = true ]; then
## Download lua documentation
wget -O _doc.lua https://gitlab.com/shosetsuorg/kotlin-lib/-/raw/main/_doc.lua
## Download javascript documentation
#wget -O doc.js https://gitlab.com/shosetsuorg/kotlin-lib/-/raw/main/doc.js
fi
if [ "$DOWNLOAD_TESTER" = true ]; then
## Download extension tester
mkdir -p bin
wget -O bin/extension-tester.jar "https://cdn.shosetsu.app/extension-tester/v2.0.0/extension-tester.jar"
fi