summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-29 00:40:04 +0100
committerdavidovski <david@davidovski.xyz>2022-05-29 00:40:04 +0100
commit76b91e996a38ff95095d887639aee5a2a8eb4fa6 (patch)
treed572522528d2aa5d74faee494658f8726ffd9346
parent54ad6ffce4da54a886aaaea6c5a08997031d7087 (diff)
fixed postinstalls missingv1.3
-rw-r--r--xi_buildscript.sh19
-rw-r--r--xibuild.sh2
2 files changed, 10 insertions, 11 deletions
diff --git a/xi_buildscript.sh b/xi_buildscript.sh
index d9e19f7..a60efe9 100644
--- a/xi_buildscript.sh
+++ b/xi_buildscript.sh
@@ -55,23 +55,22 @@ for xibuild in $PKG_NAME.xibuild $(ls *.xibuild | grep -v "^$PKG_NAME.xibuild$")
. ./$xibuild
-
- for t in $stages; do
- type $t >/dev/null && {
- echo "==========================$t stage=========================="
- $t || exit 1
- }
- done
-
printf "checking for postinstall... "
if command -v postinstall > /dev/null; then
echo "adding postinstall"
POST_DIR=$PKG_DEST/var/lib/xipkg/postinstall
mkdir -p $POST_DIR
- cat ./$PKG_NAME.xibuild > $POST_DIR/$PKG_NAME.sh
- echo >> $POST_DIR/$PKG_NAME.sh
+ cat ./$PKG_NAME.xibuild $xibuild >> $POST_DIR/$PKG_NAME.sh
echo "postinstall" >> $POST_DIR/$PKG_NAME.sh
else
echo "no postinstall"
fi
+
+ for t in $stages; do
+ type $t >/dev/null && {
+ echo "==========================$t stage=========================="
+ $t || exit 1
+ }
+ done
+
done
diff --git a/xibuild.sh b/xibuild.sh
index b26e678..65a34f4 100644
--- a/xibuild.sh
+++ b/xibuild.sh
@@ -157,7 +157,7 @@ xibuild_package () {
tar -C $root/$export_dir/$pkg -cJf $out_dir/$pkg.xipkg ./
}
done
- for buildfile in $(find $src_dir -name "$src_dir/*.xibuild"); do
+ for buildfile in $(find $src_dir -name "*.xibuild"); do
cp $buildfile $out_dir/
done
}