summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-05-18 14:18:57 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-05-18 14:18:57 (EDT)
commit7be374c28308222f4558a76984996f785eefbb51 (patch)
tree4adf72be9c6d2d41888a76c686227ee124a1e6ae /config
parent69e1ed308b3707ecae387ab3cc8c4df1e968b76f (diff)
config: Substitute vars in postinst and prerm.
Diffstat (limited to 'config')
-rwxr-xr-xconfig4
1 files changed, 4 insertions, 0 deletions
diff --git a/config b/config
index fedf288..cf77a24 100755
--- a/config
+++ b/config
@@ -44,6 +44,10 @@ configure_build()
>"${_pkg}-${PKG_TARGET_ARCH}.pkg/control"
sed "${_ss}" "${_pkg}.pkg.in/files" \
>"${_pkg}-${PKG_TARGET_ARCH}.pkg/files"
+ sed "${_ss}" "${_pkg}.pkg.in/postinst" \
+ >"${_pkg}-${PKG_TARGET_ARCH}.pkg/postinst"
+ sed "${_ss}" "${_pkg}.pkg.in/prerm" \
+ >"${_pkg}-${PKG_TARGET_ARCH}.pkg/prerm"
msg 'Metadata for package "%s" generated.' \
"${_pkg}-${PKG_TARGET_ARCH}"
done