From 87d6435ff953b84cbf91ee6f5d001924ec1dbcd4 Mon Sep 17 00:00:00 2001 From: davidovski Date: Tue, 16 Aug 2022 22:14:20 +0100 Subject: allowing git scheme for git url --- xi_buildscript.sh | 4 ++-- xibuild.sh | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/xi_buildscript.sh b/xi_buildscript.sh index 4c22a5b..1684fc0 100644 --- a/xi_buildscript.sh +++ b/xi_buildscript.sh @@ -39,10 +39,10 @@ echo "Build file for $1, to build at root $2" builds="$(ls *.xibuild | grep -v "$PKG_NAME.xibuild")" -[ "$SUBPKG" == "all" ] && { +[ "$SUBPKG" = "all" ] && { pkgs=$($PKG_NAME.xibuild $(ls *.xibuild | grep -v "^$PKG_NAME.xibuild$")) } || { - pkgs="$SUBPKG" + pkgs="$SUBPKG".xibuild } for xibuild in $pkgs; do diff --git a/xibuild.sh b/xibuild.sh index 7c30292..5060b1f 100644 --- a/xibuild.sh +++ b/xibuild.sh @@ -45,7 +45,7 @@ ${BLUE}Avaiable Options: ${BLUE}-k ${LIGHT_BLUE}[file] ${LIGHT_CYAN}specify an openssl private key to sign packages with${LIGHT_WHITE} ${BLUE}-u ${LIGHT_BLUE}[subpackage] - ${LIGHT_CYAN}specify which subpackage should be built ${LIGHT_WHITE }[default: all] + ${LIGHT_CYAN}specify which subpackage should be built ${LIGHT_WHITE}[default: all] ${BLUE}-v ${LIGHT_CYAN}verbose: print logs to stdout @@ -98,7 +98,7 @@ xibuild_prepare () { # fetch_source () { case "$1" in - *".git") + *".git"|"git://"*) git clone $1 . git checkout $2 ;; @@ -253,7 +253,7 @@ xibuild_clean () { rm $out_dir/build.log } -while getopts ":r:l:C:k:p:b:o:vcinsh" opt; do +while getopts ":r:l:C:k:p:b:o:u:vcinsh" opt; do case "${opt}" in r) root=$(realpath ${OPTARG});; -- cgit v1.2.1