]> git.donarmstrong.com Git - debhelper.git/blob - dh_installxaw
r291: * dh_installdocs: if $TMP/usr/share/doc/$PACKAGE is a broken symlink,
[debhelper.git] / dh_installxaw
1 #!/usr/bin/perl -w
2 #
3 # Integration with xaw-wrappers
4 #
5 # If debian/xaw-wrappers file exists, save it to 
6 # $TMP/usr/lib/xaw-wrappers/conf/$PACKAGE
7 #
8 # Also, add calls to postinst and postrm.
9
10 BEGIN { push @INC, "debian", "/usr/lib/debhelper" }
11 use Dh_Lib;
12 init();
13
14 foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
15         $TMP=tmpdir($PACKAGE);
16         $xaw=pkgfile($PACKAGE,'xaw');
17
18         if ($xaw ne '') {
19                 if (! -d "$TMP/usr/lib/xaw-wrappers/conf") {
20                         doit("install","-d","$TMP/usr/lib/xaw-wrappers/conf");
21                 }
22                 doit("install","-p","-m644",$xaw,
23                      "$TMP/usr/lib/xaw-wrappers/conf/$PACKAGE");
24
25                 if (! $dh{NOSCRIPTS}) {
26                         autoscript($PACKAGE,"postinst","postinst-xaw");
27                         autoscript($PACKAGE,"postrm","postrm-xaw");
28                 }
29         }
30 }