]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_installcatalogs
r2031: releasing version 5.0.56
[debhelper.git] / dh_installcatalogs
index eef8cdeb376a971279c1fb20a602cf08f9a980f2..073cbb2b4de57bfeb4f8e8559ef8f7c36f4dd35d 100755 (executable)
@@ -34,11 +34,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
@@ -74,7 +76,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
                        $fulldest =~ s|//|/|g; # beautification
        
                        if (! -d dirname($fulldest)) {
-                               doit("install","-d","-m755",dirname($dest));
+                               doit("install","-d","-m755",$tmpdir."/".dirname($dest));
                        }
 
                        doit("install","-p","-m644",$source,$fulldest);
@@ -85,6 +87,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";