summaryrefslogtreecommitdiff
path: root/dh_installwm
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_installwm
parent0d8d56edc5ad95e9ac110e10b4b3111c5656f958 (diff)
downloaddebhelper-75275ded89f0b456e7e396008af153d26bb35626.tar.gz
r128: Initial revision
Diffstat (limited to 'dh_installwm')
-rwxr-xr-xdh_installwm21
1 files changed, 21 insertions, 0 deletions
diff --git a/dh_installwm b/dh_installwm
new file mode 100755
index 00000000..be3a1373
--- /dev/null
+++ b/dh_installwm
@@ -0,0 +1,21 @@
+#!/bin/sh -e
+#
+# Add to postinst and postrm to register a window manager.
+
+PATH=debian:$PATH:/usr/lib/debhelper
+. dh_lib
+
+wm=$1
+
+if [ -z "$wm" ]; then
+ error "No window manager was specified."
+fi
+
+for PACKAGE in $DH_DOPACKAGES; do
+ TMP=`tmpdir $PACKAGE`
+
+ if [ ! "$DH_NOSCRIPTS" ]; then
+ autoscript "postinst" "postinst-wm" "s/#WM#/$wm/"
+ autoscript "postrm" "postrm-wm" "s/#WM#/$wm/"
+ fi
+done