From: joey Date: Tue, 9 Nov 1999 23:01:45 +0000 (+0000) Subject: r306: * Corrected slash substitution problem in dh_installwm. X-Git-Tag: version_2.0.101~292 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=c104d85de0a15fdccb056ceee32351dd91822237;p=debhelper.git r306: * Corrected slash substitution problem in dh_installwm. --- diff --git a/debian/changelog b/debian/changelog index dde4b91..fdb9c55 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +debhelper (2.0.72) unstable; urgency=low + + * Corrected slash substitution problem in dh_installwm. + + -- Joey Hess Tue, 9 Nov 1999 15:00:21 -0800 + debhelper (2.0.71) unstable; urgency=low * Oh, the build dependancies include all of debhelper's regular diff --git a/debian/control b/debian/control index 98b5887..e970661 100644 --- a/debian/control +++ b/debian/control @@ -3,7 +3,7 @@ Section: devel Priority: optional Maintainer: Joey Hess Build-Depends-Indep: perl5, fileutils (>= 3.16-4), file (>= 3.23-1) -Standards-Version: 3.0.1.1 +Standards-Version: 3.1.0.0 Package: debhelper Architecture: all diff --git a/dh_installwm b/dh_installwm index be3a137..b3b9059 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/share/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:"); + } +}