summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-07 13:49:48 +0100
committerdavidovski <david@davidovski.xyz>2022-05-07 13:49:48 +0100
commit4490f4dbdb9685481070da9dacb9b27f84aad8aa (patch)
tree893ce6de13f141104cb04cdef1212d0bee7de255
parent472f7c5a06308a1dc3f0d73779378bfd5847212c (diff)
fixed postinstall running correctly
-rw-r--r--xi_profile.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/xi_profile.sh b/xi_profile.sh
index 327c294..78bd6f4 100644
--- a/xi_profile.sh
+++ b/xi_profile.sh
@@ -3,6 +3,10 @@
export PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin:/tools/sbin
export LIBRARY_PATH=/lib:/usr/lib/:/tools/lib:/tools/lib64
+export CC="clang"
+export CXX="clang++"
+export LD="clang"
+
export JOBS=$(grep "processor" /proc/cpuinfo | wc -l)
export HOME=/root
@@ -55,8 +59,8 @@ for xibuild in $PKG_NAME.xibuild $(ls *.xibuild | grep -v "$PKG_NAME.xibuild");
echo "adding postinstall"
POST_DIR=$PKG_DEST/var/lib/xipkg/postinstall
mkdir -p $POST_DIR
- cat /build/$PKG_NAME.xibuild > $POST_DIR/$PKG_NAME.sh
- echo "" >> $POST_DIR/$PKG_NAME.sh
+ cat ./$PKG_NAME.xibuild > $POST_DIR/$PKG_NAME.sh
+ echo >> $POST_DIR/$PKG_NAME.sh
echo "postinstall" >> $POST_DIR/$PKG_NAME.sh
else
echo "no postinstall"