From 67b74298f08a3e2b30e43cbcd7cdaccc2e1b1614 Mon Sep 17 00:00:00 2001 From: joey Date: Thu, 2 Mar 2000 21:23:22 +0000 Subject: r338: * Patch from Jorgen `forcer' Schaefer (much modified)to make dh_installwm use new window manager registration method, update-alternatives. Closes: #52156, #34684 (latter bug is obsolete) * Fixed $dh{flavor} to be upper-case. * Deprecated dh_installemavcsen --number; use --priority instead. Also, the option parser requires the parameter be a number now. And, dh_installwm now accepts --priority, and window manager packages should start using it. * dh_installwm now behaves like a proper debhelper command, and reads debian/.wm too. This is a small behavior change; filenames specified on the command line no longer apply to all packages it acts on. I can't belive this program existed for 2 years with such a glaring problem; I guess most people don't need ot register 5 wm's in 3 sub-packages. Anyway, it can handle such things now. :-) * Moved Dh_*.pm to /usr/lib/perl5/Debian/Debhelper. *big* change. --- dh_installwm.1 | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) (limited to 'dh_installwm.1') diff --git a/dh_installwm.1 b/dh_installwm.1 index 486e511b..33345a9d 100644 --- a/dh_installwm.1 +++ b/dh_installwm.1 @@ -3,14 +3,21 @@ dh_installwm \- register a window manager .SH SYNOPSIS .B dh_installwm -.I "[debhelper options] [-n] wmfilename" +.I "[debhelper options] [-n] [--priority=n] [wm ...]" .SH "DESCRIPTION" dh_installwm is a debhelper program that is responsible for -generating the postinst and postrm commands needed to -interface with the the -.BR register-window-manager (8) -command. This results in a window manager being registered when it is -installed. +generating the postinst and postrm commands that register a window manager +with +.BR update-alternatives (8) +.P +Any windowmanager filenames specified as parameters will be registered in +the first package dh_installwm is told to ast on. By default, this is the +first binary package in debian/control, but if you use -p, -i, or -a flags, it +will be the first package specified by those flags. +.P +A file named debian/package.wm (debian/wm may be used for the +first binary package in debian/control) can list other window manager to +register. .SH OPTIONS .TP .B debhelper options @@ -18,13 +25,16 @@ See .BR debhelper (1) for a list of options common to all debhelper commands. .TP +.B \--priority=n +Set the priority of the window manager. Default is 20, which is too low for +most window managers; see the Debian Policy document for instructions on +calculating the correct value. +.TP .B \-n, \--noscripts Do not modify postinst/postrm scripts. Turns this command into a no-op. .TP .B wmfilename -The filename of the window manager you wish to register. May be either a -simple filename if the window manager is in /usr/X11R6/bin/, or a complete -path otherwise. +The filename of the window manager you wish to register. .SH NOTES Note that this command will set up postinst and postrm scripts for every package it acts on. It's wise to limit its action to a single package with, @@ -41,6 +51,6 @@ instances of the same text to be added to maintainer scripts. .TP .BR debhelper (1) .TP -.BR register-window-manager (8) +.BR update-alternatives (8) .SH AUTHOR Joey Hess -- cgit v1.2.3