diff options
author | joey <joey> | 1999-08-17 05:02:07 +0000 |
---|---|---|
committer | joey <joey> | 1999-08-17 05:02:07 +0000 |
commit | 75275ded89f0b456e7e396008af153d26bb35626 (patch) | |
tree | 6cd498453f87dd7f0c091d5aba5af9eeeed929dc /dh_installxaw | |
parent | 0d8d56edc5ad95e9ac110e10b4b3111c5656f958 (diff) |
r128: Initial revision
Diffstat (limited to 'dh_installxaw')
-rwxr-xr-x | dh_installxaw | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/dh_installxaw b/dh_installxaw new file mode 100755 index 00000000..31867f15 --- /dev/null +++ b/dh_installxaw @@ -0,0 +1,30 @@ +#!/usr/bin/perl -w +# +# Integration with xaw-wrappers +# +# If debian/xaw-wrappers file exists, save it to +# $TMP/usr/lib/xaw-wrappers/conf/$PACKAGE +# +# Also, add calls to postinst and postrm. + +BEGIN { push @INC, "debian", "/usr/lib/debhelper" } +use Dh_Lib; +init(); + +foreach $PACKAGE (@{$dh{DOPACKAGES}}) { + $TMP=tmpdir($PACKAGE); + $xaw=pkgfile($PACKAGE,'xaw'); + + if ($xaw ne '') { + if (! -d "$TMP/usr/lib/xaw-wrappers/conf") { + doit("install","-d","$TMP/usr/lib/xaw-wrappers/conf"); + } + doit("install","-p","-m644",$xaw, + "$TMP/usr/lib/xaw-wrappers/conf/$PACKAGE"); + + if (! $dh{NOSCRIPTS}) { + autoscript($PACKAGE,"postinst","postinst-xaw"); + autoscript($PACKAGE,"postrm","postrm-xaw"); + } + } +} |