#!/usr/bin/perl -w
#
-# Add to postinst and postrm to register a window manager.
+# Add to postinst and prerm to register a window manager.
use Debian::Debhelper::Dh_Lib;
init();
}
if (@ARGV) {
- # This is here for backwards comatability. If the filename doesn't
+ # This is here for backwards compatability. If the filename doesn't
# include a path, assume it's in /usr/X11R6/bin.
if ($ARGV[0] !~ m:/:) {
- $ARGV[0]="/usr/X11R6/$ARGV[0]";
+ $ARGV[0]="/usr/X11R6/bin/$ARGV[0]";
}
}
$file=pkgfile($PACKAGE,"wm");
if ($file) {
- @wm=filearray($file);
+ @wm=filearray($file, '.');
}
if (($PACKAGE eq $dh{FIRSTPACKAGE} || $dh{PARAMS_ALL}) && @ARGV) {
if (@wm && ! $dh{NOSCRIPTS}) {
foreach (@wm) {
autoscript($PACKAGE,"postinst","postinst-wm","s:#WM#:$_:;s/#PRIORITY#/$dh{PRIORITY}/",);
- autoscript($PACKAGE,"postrm","postrm-wm","s:#WM#:$_:");
+ autoscript($PACKAGE,"prerm","prerm-wm","s:#WM#:$_:");
}
}
}