diff options
author | joey <joey> | 2005-03-27 16:57:47 +0000 |
---|---|---|
committer | joey <joey> | 2005-03-27 16:57:47 +0000 |
commit | 269a2b129ec031f94e54dca7f526b2127aaf599f (patch) | |
tree | 7d60401d19b18c5dcf3965b82f1347f5bb90548f /dh_installdebconf | |
parent | 79fa169d452a5e548482d3aa33f2a81a99228f93 (diff) |
r1743: releasing version 4.2.32
Diffstat (limited to 'dh_installdebconf')
-rwxr-xr-x | dh_installdebconf | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/dh_installdebconf b/dh_installdebconf index ebf6a131..85772144 100755 --- a/dh_installdebconf +++ b/dh_installdebconf @@ -24,6 +24,12 @@ that works. Files named debian/package.config and debian/package.templates are installed into the DEBIAN directory in the package build directory. +If a file named debian/package.script.debhelper exists, the contents +of that file are merged into the config script as follows: If the script +exists, then anywhere in it that "#DEBHELPER#" appears, the text of the +.debhelper file is inserted. If the script does not exist, then a script +is generated from the .debhelper file. The .debhelper filesmay be created +by other debhelper programs, and are shell script fragments. Note that if you use debconf, your package probably needs to depend on it (it will be added to ${misc:Depends} by this program). @@ -83,9 +89,8 @@ foreach my $package (@{$dh{DOPACKAGES}}) { doit("install","-o",0,"-g",0,"-d","$tmp/DEBIAN"); } - if (! is_udeb($package) && $config ne '') { - doit("install", "-o", 0, "-g", 0, "-m", 755, "-p", - $config, "$tmp/DEBIAN/config"); + if (! is_udeb($package)) { + debhelper_script_subst($package, "config"); } if ($templates ne '') { |