forked from MetalPetal/MetalPetal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
utilities.sh
executable file
·40 lines (37 loc) · 1.17 KB
/
utilities.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
#!/bin/bash
BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
cd "$BASEDIR/Utilities"
PS3="Run: "
options=("Generate Boilerplate" "Generate Umbrella Headers" "Generate Swift Package Sources" "Update Podspec" "All" "Quit")
select opt in "${options[@]}"
do
case $opt in
"Generate Boilerplate")
swift run main boilerplate-generator "$BASEDIR"
break
;;
"Generate Umbrella Headers")
swift run main umbrella-header-generator "$BASEDIR"
break
;;
"Generate Swift Package Sources")
swift run main swift-package-generator "$BASEDIR"
break
;;
"Update Podspec")
swift run main podspec-generator "$BASEDIR"
break
;;
"All")
swift run main boilerplate-generator "$BASEDIR"
swift run main umbrella-header-generator "$BASEDIR"
swift run main swift-package-generator "$BASEDIR"
swift run main podspec-generator "$BASEDIR"
break
;;
"Quit")
break
;;
*) echo "Invalid option $REPLY";;
esac
done