5 dh_installxaw - install xaw wrappers config files into package build directories
10 use Debian::Debhelper::Dh_Lib;
14 dh_installxaw [debhelper options] [-n]
18 dh_installxaw is a debhelper program that is responsible for installing
19 xaw wrappers config files into package build directories.
21 It also automatically generates the postinst, prerm, and postrm commands
22 needed to interface with the debian xaw-wrappers package. See
23 L<dh_installdeb(1)> for an explanation of how this works.
25 If a file named debian/package.xaw exists, then it is installed into
26 usr/lib/xaw-wrappers/config/package in the package build directory.
32 =item B<-n>, B<--noscripts>
34 Do not modify postinst/prerm/postrm scripts.
40 Note that this command is not idempotent. "dh_clean -k" should be called
41 between invocations of this command. Otherwise, it may cause multiple
42 instances of the same text to be added to maintainer scripts.
48 foreach my $package (@{$dh{DOPACKAGES}}) {
49 my $tmp=tmpdir($package);
50 my $xaw=pkgfile($package,'xaw');
53 if (! -d "$tmp/usr/share/xaw-wrappers/config") {
54 doit("install","-d","$tmp/usr/share/xaw-wrappers/config");
56 doit("install","-p","-m644",$xaw,
57 "$tmp/usr/share/xaw-wrappers/config/$package");
59 if (! $dh{NOSCRIPTS}) {
60 # Parse the xaw conf file to figure out what programs
61 # and link names are present in it. Have to pass
62 # those into the scripts.
73 if (/(.*?):\s?(.*)/) {
78 $install_opts.="'$data{program} $data{'link-name'} $data{wrapped}' ";
79 $remove_opts.="'$data{'link-name'} $data{wrapped}' ";
88 $install_opts.="'$data{program} $data{'link-name'} $data{wrapped}'";
89 $remove_opts.="'$data{'link-name'} $data{wrapped}'";
92 autoscript($package,"postinst","postinst-xaw",
93 "s:#OPTS#:$install_opts:");
94 autoscript($package,"prerm","prerm-xaw",
95 "s:#OPTS#:$remove_opts:");
96 autoscript($package,"postrm","postrm-xaw");
105 This program is a part of debhelper.
109 Joey Hess <joeyh@debian.org>