diff options
author | joey <joey> | 1999-08-17 05:02:56 +0000 |
---|---|---|
committer | joey <joey> | 1999-08-17 05:02:56 +0000 |
commit | 5501271678d88ac578082ce2d0705ca211d7e980 (patch) | |
tree | 5c0e969ea02c1ad7dae038d699fc9acc4d67b423 /dh_installwm | |
parent | f52118bc1737140efeee4b56c3ab92ac3c54a61e (diff) | |
download | debhelper-5501271678d88ac578082ce2d0705ca211d7e980.tar.gz |
r132: Initial Import
Diffstat (limited to 'dh_installwm')
-rwxr-xr-x | dh_installwm | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/dh_installwm b/dh_installwm index be3a1373..0cae9147 100755 --- a/dh_installwm +++ b/dh_installwm @@ -1,21 +1,22 @@ -#!/bin/sh -e +#!/usr/bin/perl -w # # Add to postinst and postrm to register a window manager. -PATH=debian:$PATH:/usr/lib/debhelper -. dh_lib +BEGIN { push @INC, "debian", "/usr/lib/debhelper" } +use Dh_Lib; +init(); -wm=$1 +$wm=shift; -if [ -z "$wm" ]; then - error "No window manager was specified." -fi +if ($wm eq '') { + error("No window manager filename was specified."); +} -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 +foreach $PACKAGE (@{$dh{DOPACKAGES}}) { +# $TMP=tmpdir($PACKAGE); + + if (! $dh{NOSCRIPTS}) { + autoscript($PACKAGE,"postinst","postinst-wm","s/#WM#/$wm/"); + autoscript($PACKAGE,"postrm","postrm-wm","s/#WM#/$wm/"); + } +} |