]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_installcatalogs
Fix typo in French translation, about debian/package.README.Debian files.
[debhelper.git] / dh_installcatalogs
index c020820cd0d4696f4b4c364004651c0eef036571..510a2bb316918a3382150ddd1de8d2a3adb36acc 100755 (executable)
@@ -18,9 +18,7 @@ B<dh_installcatalogs> [S<I<debhelper options>>] [B<-n>]
 =head1 DESCRIPTION
 
 dh_installcatalogs is a debhelper program that installs and
-registers SGML catalogs. (Note: it will be extended for XML catalog
-registration when xml-core is available.)  It complies with the Debian
-XML/SGML policy.
+registers SGML catalogs. It complies with the Debian XML/SGML policy.
 
 The file F<debian/I<package>.sgmlcatalogs> contains the catalogs to be
 installed per package.  Each line in that file should be of the form
@@ -34,11 +32,13 @@ F</etc/sgml/I<package>.cat>.
 
 This command automatically adds maintainer script snippets for
 registering and unregistering the catalogs and "supercatalogs" (unless
-B<-n> is used).  A dependancy on B<sgml-base> will be added to
-C<${misc:Depends}>, so be sure your package uses that variable in
-F<debian/control>.  See L<dh_installdeb(1)> for an explantion of
+B<-n> is used). These snippets are inserted into the maintainer scripts
+by dh_installdeb; see L<dh_installdeb(1)> for an explanation of
 Debhelper maintainer script snippets.
 
+A dependency on B<sgml-base> will be added to C<${misc:Depends}>, so be
+sure your package uses that variable in F<debian/control>.
+
 =head1 OPTIONS
 
 =over 4
@@ -51,7 +51,7 @@ Do not modify F<postinst>/F<postrm>/F<prerm> scripts.
 
 =head1 NOTES
 
-Note that this command is not idempotent. "dh_clean -k" should be
+Note that this command is not idempotent. L<dh_prep(1)> should be
 called between invocations of this command. Otherwise, it may cause
 multiple instances of the same text to be added to maintainer scripts.
 
@@ -85,6 +85,10 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
        if (@sgmlinstalled) {
                addsubstvar($package, "misc:Depends", "sgml-base", ">= $sgmlbasever");
 
+               if (! -d "$tmpdir/etc/sgml") {
+                       doit("install","-d","-m755","$tmpdir/etc/sgml");
+               }
+
                if (! $dh{NOSCRIPTS}) {
                        my $ordcats = join(" ", @sgmlinstalled);
                        my $centralcat = "/etc/sgml/$package.cat";