diff --git a/scripts/get-dep-lib.sh b/scripts/get-dep-lib.sh index 14a9231cb..4c9aee473 100755 --- a/scripts/get-dep-lib.sh +++ b/scripts/get-dep-lib.sh @@ -17,11 +17,16 @@ CURRENT_LIBFTDI="1.3" # deal with all the command line arguments -if [ $# -ne 2 ] ; then +if [[ $# -ne 2 && $# -ne 3 ]] ; then echo "wrong number of parameters, format:" - echo "get-dep-lib " - echo "where platform is one of scripts, ios or android" + echo "get-dep-lib.sh " + echo "or" + echo "get-dep-lib.sh single " + echo "where" + echo " is one of scripts, ios or android" echo "(the name of the directory where build.sh resides)" + echo " is the directory to clone in" + echo " is the name to be cloned" exit -1 fi @@ -42,6 +47,9 @@ case ${PLATFORM} in android) BUILD="libzip libgit2 googlemaps libxslt sqlite libxml2 openssl libftdi libusb" ;; + single) + BUILD="$3" + ;; *) echo "Unknown platform ${PLATFORM}, choose between native, ios or android" ;;