summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-03-08 12:04:41 +0000
committerJay Freeman <saurik@saurik.com>2008-03-08 12:04:41 +0000
commit645d0e9c8dd17fe1433c4aabb361576571520430 (patch)
tree1ca3be8f3d5c7e091f10ce92d864a01ed0692135
parent3f47723bb990db856fd3683aa6d35c08c56330ff (diff)
Added support for preinst scripts.
git-svn-id: http://svn.telesphoreo.org/trunk@177 514c082c-b64e-11dc-b46d-3d985efe055d
-rwxr-xr-xpackage.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/package.sh b/package.sh
index e43b06389..5c0f8b2a8 100755
--- a/package.sh
+++ b/package.sh
@@ -18,6 +18,10 @@ export PKG_BASE=$(realpath "$(dirname "$0")")
pkg: mkdir -p /DEBIAN
./control.sh "${PKG_NAME}" control >"$(pkg_ /DEBIAN/control)"
+if [[ -e "${PKG_DATA}"/_metadata/preinst ]]; then
+ cp -a "${PKG_DATA}"/_metadata/preinst "$(pkg_ /DEBIAN)"
+fi
+
if [[ -e "${PKG_DATA}"/_metadata/postinst ]]; then
cp -a "${PKG_DATA}"/_metadata/postinst "$(pkg_ /DEBIAN)"
fi