Debian Codegraph @

debian/dh_installscripts-common

raw
1 #!/usr/bin/perl -w
2
3 use strict;
4 use Debian::Debhelper::Dh_Lib;
5
6 init();
7
8 foreach my $package (@{$dh{DOPACKAGES}}) {
9 my $tmp=tmpdir($package);
10 my $ext=pkgext($package);
11
12 if (! -d "$tmp/DEBIAN") {
13 next;
14 }
15
16 foreach my $file (qw{postinst preinst prerm postrm config}) {
17 my $f="$tmp/DEBIAN/$file";
18 if ($f) {
19 complex_doit("perl -pe 's~#SCRIPTSCOMMON#~qx{cat debian/${ext}scripts-common}~eg' -i $f");
20 }
21 }
22 }