+debhelper (2.0.72) unstable; urgency=low
+
+ * Corrected slash substitution problem in dh_installwm.
+
+ -- Joey Hess <joeyh@master.debian.org> 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
Priority: optional
Maintainer: Joey Hess <joeyh@master.debian.org>
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
-#!/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:");
+ }
+}