]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_installwm
r1980: * prerm and postrm scripts are now generated in a reverse order than
[debhelper.git] / dh_installwm
index 842b4f4cb72cea96931f960d5a859362bf493793..1989056d0296cbc0da9cb777d5c8c997beaf12a9 100755 (executable)
@@ -11,13 +11,15 @@ use Debian::Debhelper::Dh_Lib;
 
 =head1 SYNOPSIS
 
-  dh_installwm [debhelper options] [-n] [--priority=n] [wm ...]
+B<dh_installwm> [S<I<debhelper options>>] [B<-n>] [B<--priority=>I<n>] [S<I<wm ...>>]
 
 =head1 DESCRIPTION
 
 dh_installwm is a debhelper program that is responsible for
 generating the postinst and postrm commands that register a window manager
-with L<update-alternatives(8)>
+with L<update-alternatives(8)>. The window manager's man page is also 
+registered as a slave symlink (in v6 mode and up), and is assumed to be
+located in /usr/share/man/man1/<wm>.1.gz.
 
 Any window manager programs specified as parameters will be registered in
 the first package dh_installwm is told to act on. By default, this is the
@@ -63,7 +65,7 @@ if (! defined $dh{PRIORITY}) {
 }
 
 if (@ARGV) {
-       # This is here for backwards compatability. If the filename doesn't
+       # This is here for backwards compatibility. If the filename doesn't
        # include a path, assume it's in /usr/X11R6/bin.
        if ($ARGV[0] !~ m:/:) {
                $ARGV[0]="/usr/X11R6/bin/$ARGV[0]";
@@ -83,7 +85,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
                push @wm, @ARGV;
        }
 
-       if (@wm && ! $dh{NOSCRIPTS}) {
+       if (! $dh{NOSCRIPTS}) {
                foreach (@wm) {
                        autoscript($package,"postinst","postinst-wm","s:#WM#:$_:;s/#PRIORITY#/$dh{PRIORITY}/",);
                        autoscript($package,"prerm","prerm-wm","s:#WM#:$_:");
@@ -93,7 +95,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 
 =head1 SEE ALSO
 
-L<debhelper(1)>
+L<debhelper(7)>
 
 This program is a part of debhelper.