From 2dd3bb2198edb77a86bb4eaa1a5533e31701c6eb Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Sat, 25 Nov 2017 14:05:28 -0500 Subject: added "-p " option --- make_desktop.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'make_desktop.sh') diff --git a/make_desktop.sh b/make_desktop.sh index 604849d7..af11972f 100755 --- a/make_desktop.sh +++ b/make_desktop.sh @@ -9,6 +9,24 @@ if [ ! -d "desktop" ]; then exit fi +while [[ $# -gt 0 ]] +do +arg="$1" +case $arg in + -p|--port) + PORT="$2" + shift + shift + ;; + *) + echo "Unknown argument $1, ignoring..." + shift + ;; +esac +done + +[[ ! -z $PORT ]] && echo "Only creating build for $PORT" && PORT="-$PORT" + echo ---------------------------------------------------- echo Pliable Pixels Desktop build process echo ---------------------------------------------------- @@ -20,6 +38,12 @@ declare -a app_ports=("desktop/zmNinja-mac.app/Contents/Resources" "desktop/zmNi for i in "${app_ports[@]}" do +if [[ "$i" =~ $PORT ]]; then + echo "$i contains $PORT, so building" +else + echo "$i will be skipped" + continue +fi if [ -d "$i" ]; then DIRNAME=$i @@ -70,6 +94,7 @@ if [ -d "$i" ]; then else echo "$i does not exist, skipping" fi + echo "(Note, SASS changes won't be reflected. Run "ionic build" for that)" done -- cgit v1.2.3