]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_installcatalogs
r1936:
[debhelper.git] / dh_installcatalogs
index c020820cd0d4696f4b4c364004651c0eef036571..bbe4bcf4d81be0447cbd952ec5e31c8791f50936 100755 (executable)
@@ -34,9 +34,9 @@ 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
+B<-n> is used).  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>.  See L<dh_installdeb(1)> for an explantion of
+F<debian/control>.  See L<dh_installdeb(1)> for an explanation of
 Debhelper maintainer script snippets.
 
 =head1 OPTIONS
@@ -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";