From 1ed8c87d6394bec8d115d1fd90bdb08e207d20eb Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Wed, 16 May 2018 10:59:27 +0200 Subject: build-system: enhanced get-dep-lib with "single" Added the posibility to fetch a single third lib. Signed-off-by: Jan Iversen --- scripts/get-dep-lib.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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" ;; -- cgit v1.2.3-70-g09d2