summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-08-16 22:14:20 +0100
committerdavidovski <david@davidovski.xyz>2022-08-16 22:14:20 +0100
commit87d6435ff953b84cbf91ee6f5d001924ec1dbcd4 (patch)
tree5587178139949679159be30425a5c204d37f72f1
parent4487c34c52b0ba66121468c64a80a5d77afc8e1f (diff)
allowing git scheme for git url
-rw-r--r--xi_buildscript.sh4
-rw-r--r--xibuild.sh6
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});;