From 1e95eb0590151b3041e9ce5ad7d4cb3dd3b322fa Mon Sep 17 00:00:00 2001 From: davidovski Date: Mon, 16 May 2022 23:16:30 +0100 Subject: added install and nocheck features --- xi_profile.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'xi_profile.sh') diff --git a/xi_profile.sh b/xi_profile.sh index 5fb89a5..d85d65e 100644 --- a/xi_profile.sh +++ b/xi_profile.sh @@ -38,6 +38,13 @@ add_from_main () { PKG_NAME=$1 cd $2 + +stages="prepare build check package" +case "$@" in + *"-n"*) + stages="prepare build package" +esac + export BUILD_ROOT=$(realpath $2) echo "Build file for $1, to build at root $2" @@ -63,7 +70,7 @@ for xibuild in $PKG_NAME.xibuild $(ls *.xibuild | grep -v "$PKG_NAME.xibuild"); . ./$xibuild - for t in prepare build check package; do + for t in $stages; do type $t >/dev/null && { echo "==========================$t stage==========================" $t || exit 1 -- cgit v1.2.1