summaryrefslogtreecommitdiff
path: root/dh_installxaw
diff options
context:
space:
mode:
authorjoey <joey>1999-08-17 05:02:07 +0000
committerjoey <joey>1999-08-17 05:02:07 +0000
commit75275ded89f0b456e7e396008af153d26bb35626 (patch)
tree6cd498453f87dd7f0c091d5aba5af9eeeed929dc /dh_installxaw
parent0d8d56edc5ad95e9ac110e10b4b3111c5656f958 (diff)
r128: Initial revision
Diffstat (limited to 'dh_installxaw')
-rwxr-xr-xdh_installxaw30
1 files changed, 30 insertions, 0 deletions
diff --git a/dh_installxaw b/dh_installxaw
new file mode 100755
index 0000000..31867f1
--- /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");
+ }
+ }
+}