summaryrefslogtreecommitdiff
path: root/dh_installcatalogs
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2012-05-28 13:40:05 -0400
committerJoey Hess <joey@kitenet.net>2012-05-28 13:46:14 -0400
commit0ecce5d6f0ea6e7fd91216bb293d8ec769172c4c (patch)
tree5fb30299e7d6321e61bd4bb08ed3b9c58ce11075 /dh_installcatalogs
parentbad9a3274d4390ea70bf0de97eea1fbe6500f045 (diff)
dh_installcatalogs: Turn /etc/sgml/$package.cat into conffiles and introduce dependency on trigger-based sgml-base. Closes: #477751 Thanks, Helmut Grohne
Diffstat (limited to 'dh_installcatalogs')
-rwxr-xr-xdh_installcatalogs16
1 files changed, 10 insertions, 6 deletions
diff --git a/dh_installcatalogs b/dh_installcatalogs
index b33f897e..b3aaf5e6 100755
--- a/dh_installcatalogs
+++ b/dh_installcatalogs
@@ -9,7 +9,7 @@ dh_installcatalogs - install and register SGML Catalogs
use strict;
use Debian::Debhelper::Dh_Lib;
-my $sgmlbasever = "1.17";
+my $sgmlbasever = "1.26+nmu2";
=head1 SYNOPSIS
@@ -96,12 +96,16 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
doit("install","-d","-m755","$tmpdir/etc/sgml");
}
+ my $centralcat = "/etc/sgml/$package.cat";
+
+ open(CENTRALCAT, ">", "$tmpdir$centralcat") || error("failed to write to $tmpdir$centralcat");
+ foreach my $sgmldest (@sgmlinstalled) {
+ print CENTRALCAT "CATALOG " . $sgmldest . "\n";
+ }
+ close CENTRALCAT;
+
if (! $dh{NOSCRIPTS}) {
- my $ordcats = join(" ", @sgmlinstalled);
- my $centralcat = "/etc/sgml/$package.cat";
- autoscript($package, "postinst", "postinst-sgmlcatalog",
- "s%#CENTRALCAT#%$centralcat%g; s%#ORDCATS#%$ordcats%g;");
- autoscript($package, "prerm", "prerm-sgmlcatalog",
+ autoscript($package, "preinst", "preinst-sgmlcatalog",
"s%#CENTRALCAT#%$centralcat%g;");
autoscript($package, "postrm", "postrm-sgmlcatalog",
"s%#CENTRALCAT#%$centralcat%g;");