File: dh_installscripts-common

package info (click to toggle)
openldap 2.5.13%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 30,532 kB
  • sloc: ansic: 322,627; sh: 44,981; cpp: 11,223; makefile: 3,103; sql: 1,714; perl: 672; python: 184; tcl: 45
file content (22 lines) | stat: -rwxr-xr-x 417 bytes parent folder | download | duplicates (20)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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");
		}
	}
}