summaryrefslogtreecommitdiff
path: root/xibuild/build_package.sh
diff options
context:
space:
mode:
Diffstat (limited to 'xibuild/build_package.sh')
-rwxr-xr-xxibuild/build_package.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/xibuild/build_package.sh b/xibuild/build_package.sh
index b099542..40c0e02 100755
--- a/xibuild/build_package.sh
+++ b/xibuild/build_package.sh
@@ -158,8 +158,9 @@ if command -v postinstall > /dev/null; then
if [ ${#POSTINSTALL} != 0 ]; then
POST_DIR=$PKG_DEST/var/lib/xipkg/postinstall
mkdir -p $POST_DIR
- echo "#!/bin/sh" > $POST_DIR/$PKG_NAME.sh
- echo $POSTINSTALL >> $POST_DIR/$PKG_NAME.sh
+ cat /build/$PKG_NAME.xibuild > $POST_DIR/$PKG_NAME.sh
+ echo "" >> $POST_DIR/$PKG_NAME.sh
+ echo "postinstall" >> $POST_DIR/$PKG_NAME.sh
fi
else
echo "no postinstall"