summaryrefslogtreecommitdiff
path: root/dh_installwm
blob: be3a1373627cad96def230a9d488a77a7974c656 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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