From ac48e843249d8f3593476d703ac9d0eefecd5879 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 27 May 2013 13:48:33 -0400 Subject: config: Do substitutions in maintainer scripts. --- (limited to 'config') 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 -- cgit v0.9.1