[elbe-devel] [PATCH 2/6] add debhelper token to install/remove scripts

Benedikt Spranger b.spranger at linutronix.de
Tue Sep 29 17:41:02 CEST 2015


debhelper need a special token in install/remove scripts to insert
autogenerated parts. Add the token to the install/remove scripts.

Signed-off-by: Benedikt Spranger <b.spranger at linutronix.de>
---
 debian/elbe-updated.postinst | 5 +++++
 debian/elbe-updated.postrm   | 6 ++++++
 debian/elbe-updated.prerm    | 5 +++++
 3 files changed, 16 insertions(+)

diff --git a/debian/elbe-updated.postinst b/debian/elbe-updated.postinst
index 84aaf86..27d19e5 100644
--- a/debian/elbe-updated.postinst
+++ b/debian/elbe-updated.postinst
@@ -3,3 +3,8 @@
 if which pycompile >/dev/null 2>&1; then
 	pycompile -p elbe-updated 
 fi
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
diff --git a/debian/elbe-updated.postrm b/debian/elbe-updated.postrm
index d33d2b6..3ef85a9 100644
--- a/debian/elbe-updated.postrm
+++ b/debian/elbe-updated.postrm
@@ -1,3 +1,9 @@
 #!/bin/sh
 #
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
 exit 0
diff --git a/debian/elbe-updated.prerm b/debian/elbe-updated.prerm
index 0adb57b..64a69a1 100644
--- a/debian/elbe-updated.prerm
+++ b/debian/elbe-updated.prerm
@@ -8,3 +8,8 @@ else
 		rm -f "${file}"[co] >/dev/null
 	done
 fi
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
-- 
2.5.3





More information about the elbe-devel mailing list