diff options
| -rwxr-xr-x | binary.sh | 7 | ||||
| -rwxr-xr-x | desktop.sh | 7 | ||||
| -rwxr-xr-x | mobile.sh | 7 |
3 files changed, 18 insertions, 3 deletions
@@ -1,5 +1,10 @@ #!/bin/bash +if [[ "$snapsource" == "" ]] +then + export snapsource="https://github.com/Gubolin/snap.git" +fi + if [[ $# < 2 ]] then echo "Usage: binary.sh OPTION PLATFORM [FILE]" @@ -42,7 +47,7 @@ then fi buildsource=$(mktemp -d) -git clone "https://github.com/Gubolin/snap.git" $buildsource +git clone $snapsource $buildsource cd "$buildsource" git checkout mobileapp @@ -1,5 +1,10 @@ #!/bin/bash +if [[ "$snapsource" == "" ]] +then + export snapsource="https://github.com/Gubolin/snap.git" +fi + if [[ $1 = "" ]] then echo "Usage: desktop.sh PLATFORM [BUILDSOURCE]" @@ -16,7 +21,7 @@ builddir=$(mktemp -d) if [[ $2 == "" ]] then - git clone https://github.com/Gubolin/snap.git $builddir + git clone "$snapsource" $builddir cd $builddir/ git checkout mobileapp else @@ -1,5 +1,10 @@ #!/bin/bash +if [[ "$snapsource" == "" ]] +then + export snapsource="https://github.com/Gubolin/snap.git" +fi + if [[ $1 = "" ]] then echo "Usage: mobile.sh PLATFORM [BUILDSOURCE]" @@ -25,7 +30,7 @@ rm -rf www config.xml if [[ $2 == "" ]] then - git clone https://github.com/Gubolin/snap.git www + git clone "$snapsource" www cd www/ git checkout mobileapp else |
