5 dh_installxaw - install xaw wrappers config files into package build directories
10 use Debian::Debhelper::Dh_Lib;
14 B<dh_installxaw> [S<I<debhelper options>>] [B<-n>]
18 Warning: The xaw-wrappers package has been removed from debian, and so this
19 program is deprecated, and due to be removed soon.
21 dh_installxaw is a debhelper program that is responsible for installing
22 xaw wrappers config files into package build directories.
24 It also automatically generates the postinst, prerm, and postrm commands
25 needed to interface with the debian xaw-wrappers package. See
26 L<dh_installdeb(1)> for an explanation of how this works.
28 If a file named debian/package.xaw exists, then it is installed into
29 usr/lib/xaw-wrappers/config/package in the package build directory.
35 =item B<-n>, B<--noscripts>
37 Do not modify postinst/prerm/postrm scripts.
43 Note that this command is not idempotent. "dh_clean -k" should be called
44 between invocations of this command. Otherwise, it may cause multiple
45 instances of the same text to be added to maintainer scripts.
51 warning("The xaw-wrappers package has been removed from debian, and so this program is deprecated, and due to be removed soon.");
53 foreach my $package (@{$dh{DOPACKAGES}}) {
54 my $tmp=tmpdir($package);
55 my $xaw=pkgfile($package,'xaw');
58 if (! -d "$tmp/usr/share/xaw-wrappers/config") {
59 doit("install","-d","$tmp/usr/share/xaw-wrappers/config");
61 doit("install","-p","-m644",$xaw,
62 "$tmp/usr/share/xaw-wrappers/config/$package");
64 if (! $dh{NOSCRIPTS}) {
65 # Parse the xaw conf file to figure out what programs
66 # and link names are present in it. Have to pass
67 # those into the scripts.
78 if (/(.*?):\s?(.*)/) {
83 $install_opts.="'$data{program} $data{'link-name'} $data{wrapped}' ";
84 $remove_opts.="'$data{'link-name'} $data{wrapped}' ";
93 $install_opts.="'$data{program} $data{'link-name'} $data{wrapped}'";
94 $remove_opts.="'$data{'link-name'} $data{wrapped}'";
97 autoscript($package,"postinst","postinst-xaw",
98 "s:#OPTS#:$install_opts:");
99 autoscript($package,"prerm","prerm-xaw",
100 "s:#OPTS#:$remove_opts:");
101 autoscript($package,"postrm","postrm-xaw");
110 This program is a part of debhelper.
114 Joey Hess <joeyh@debian.org>