]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_installxfonts
r576: * Rename debhelper.1 to debhelper.7.
[debhelper.git] / dh_installxfonts
index fb7f7feea808ab4d4a31517c30c2c9edc09cd827..407763aabddd791c36e18eec7e47a3cca3ef9deb 100755 (executable)
@@ -26,7 +26,8 @@ install them into the correct location under etc/X11/fonts in your package
 build directory.
 
 Your package should should depend on xutils (>= 4.0.3) so that the
-update-fonts-* commands are available.
+update-fonts-* commands are available. (This program adds that dependency to
+${misc:Depends}.)
 
 This programt automatically generates the postinst and postrm commands needed
 to register X fonts.  See L<dh_installdeb(1)> for an explanation of how this
@@ -67,15 +68,21 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
                }
 
                autoscript($package, "postinst", "postinst-xfonts",
-                       "s:#CMDS#:".join("\n", map { "\t$_" } @cmds).":;");
+                       "s:#CMDS#:".join(";", @cmds).":;");
                autoscript($package, "postrm", "postrm-xfonts",
-                       "s:#CMDS#:".join("\n", @cmds).":;");
+                       "s:#CMDS#:".join(";", @cmds).":;");
+
+               addsubstvar($package, "misc:Depends", "xutils", ">= 4.0.3");
+       }
+       else {
+               # remove
+               addsubstvar($package, "misc:Depends", "xutils", ">= 4.0.3", 1);
        }
 }
 
 =head1 SEE ALSO
 
-L<debhelper(1)>
+L<debhelper(7)>
 
 This program is a part of debhelper.