summaryrefslogtreecommitdiff
path: root/xi_profile.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-16 23:16:30 +0100
committerdavidovski <david@davidovski.xyz>2022-05-16 23:16:30 +0100
commit1e95eb0590151b3041e9ce5ad7d4cb3dd3b322fa (patch)
tree3ba76b4a1f881100e248056227f70ecbac781593 /xi_profile.sh
parent6c0a60888bba8086701ffe87d42ff69a5fd83bc4 (diff)
added install and nocheck features
Diffstat (limited to 'xi_profile.sh')
-rw-r--r--xi_profile.sh9
1 files changed, 8 insertions, 1 deletions
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