From: joey <joey>
Date: Tue, 17 Aug 1999 05:01:28 +0000 (+0000)
Subject: r125: Initial Import
X-Git-Tag: debian_version_0_1~112
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=8162f479ea8540086c6f0415abbadeb39ce823b8;p=debhelper.git

r125: Initial Import
---

diff --git a/debian/changelog b/debian/changelog
index a52e4fc..4ec7e84 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+debhelper (1.1.18) unstable; urgency=low
+
+  * dh_installemacsen: substitute package name for #PACKAGE# when setting
+    up postinst and prerm (#26560).
+
+ -- Joey Hess <joeyh@master.debian.org>  Tue,  8 Sep 1998 14:24:30 -0700
+
 debhelper (1.1.17) unstable; urgency=low
 
   * dh_strip: on Richard Braakman's advice, strip the .comment and .note
diff --git a/dh_installemacsen b/dh_installemacsen
index e87cece..008d953 100755
--- a/dh_installemacsen
+++ b/dh_installemacsen
@@ -27,8 +27,10 @@ for PACKAGE in $DH_DOPACKAGES; do
 
 	if [ "$emacsen_install" -o "$emacsen_remove" ]; then
 		if [ ! "$DH_NOSCRIPTS" ]; then
-			autoscript "postinst" "postinst-emacsen"
-			autoscript "prerm" "prerm-emacsen"
+			autoscript "postinst" "postinst-emacsen" \
+				"s/#PACKAGE#/$PACKAGE/"
+			autoscript "prerm" "prerm-emacsen" \
+				"s/#PACKAGE#/$PACKAGE/"
 		fi
 	fi	
 done