summaryrefslogtreecommitdiffstats
path: root/debian/dh_installscripts-common
diff options
context:
space:
mode:
Diffstat (limited to 'debian/dh_installscripts-common')
-rwxr-xr-xdebian/dh_installscripts-common22
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/dh_installscripts-common b/debian/dh_installscripts-common
new file mode 100755
index 0000000..9936b4f
--- /dev/null
+++ b/debian/dh_installscripts-common
@@ -0,0 +1,22 @@
+#!/usr/bin/perl -w
+
+use strict;
+use Debian::Debhelper::Dh_Lib;
+
+init();
+
+foreach my $package (@{$dh{DOPACKAGES}}) {
+ my $tmp=tmpdir($package);
+ my $ext=pkgext($package);
+
+ if (! -d "$tmp/DEBIAN") {
+ next;
+ }
+
+ foreach my $file (qw{postinst preinst prerm postrm config}) {
+ my $f="$tmp/DEBIAN/$file";
+ if ($f) {
+ complex_doit("perl -pe 's~#SCRIPTSCOMMON#~qx{cat debian/${ext}scripts-common}~eg' -i $f");
+ }
+ }
+}