summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-05-27 13:48:33 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-05-27 13:48:33 (EDT)
commitac48e843249d8f3593476d703ac9d0eefecd5879 (patch)
tree12318a0cfb89c953751df2cdd28866c96ec86e61
parenta8573ca2c4293f0e72015764b99db3f857c6dbe9 (diff)
config: Do substitutions in maintainer scripts.
-rwxr-xr-xconfig6
1 files changed, 6 insertions, 0 deletions
diff --git a/config b/config
index b47faf2..2aad066 100755
--- a/config
+++ b/config
@@ -43,6 +43,12 @@ configure_build()
mkdir -p "${_pkg}-${PKG_TARGET_ARCH}.pkg"
sed "${_ss}" "${_pkg}.pkg.in/control" \
>"${_pkg}-${PKG_TARGET_ARCH}.pkg/control"
+ [ -e "${_pkg}.pkg.in/postinst" ] && \
+ sed "${_ss}" "${_pkg}.pkg.in/postinst" \
+ >"${_pkg}-${PKG_TARGET_ARCH}.pkg/postinst"
+ [ -e "${_pkg}.pkg.in/prerm" ] && \
+ sed "${_ss}" "${_pkg}.pkg.in/prerm" \
+ >"${_pkg}-${PKG_TARGET_ARCH}.pkg/prerm"
msg 'Metadata for package "%s" generated.' \
"${_pkg}-${PKG_TARGET_ARCH}"
done