if [ "$1" = "configure" ]; then
- if [ -d /usr/doc -a ! -e /usr/doc/#PACKAGE# -a -d /usr/share/doc/#PACKAGE# ]; then
+ if [ -d /usr/doc ] && [ ! -e /usr/doc/#PACKAGE# ] && [ -d /usr/share/doc/#PACKAGE# ]; then
ln -sf ../share/doc/#PACKAGE# /usr/doc/#PACKAGE#
fi
fi
-if [ "$1" = "configure" -a -x /usr/lib/emacsen-common/emacs-package-install ]
+if [ "$1" = "configure" ] && [ -x /usr/lib/emacsen-common/emacs-package-install ]
then
/usr/lib/emacsen-common/emacs-package-install #PACKAGE#
fi
-if [ "$1" = "configure" -a -x /usr/bin/update-menus ]; then update-menus ; fi
+if [ "$1" = "configure" ] && [ -x /usr/bin/update-menus ]; then update-menus ; fi
inst=/etc/menu-methods/#PACKAGE#
-if [ -x /usr/bin/update-menus -a -f $inst -a -x /usr/sbin/install-menu ] ; then
+if [ -x /usr/bin/update-menus ] && [ -f $inst ] ; then
chmod a+x $inst
update-menus
fi
-if [ "$1" = "configure" -a -x /usr/sbin/update-mime ]; then update-mime; fi
+if [ "$1" = "configure" ] && [ -x /usr/sbin/update-mime ]; then update-mime; fi
-if [ "$1" = "configure" -a -x /sbin/update-modules ]; then
+if [ "$1" = "configure" ] && [ -x /sbin/update-modules ]; then
update-modules
fi
-if [ "$1" = purge -a -e /usr/share/debconf/confmodule ]; then
+if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
. /usr/share/debconf/confmodule
db_purge
fi
inst=/etc/menu-methods/#PACKAGE#
-if [ "$1" = "remove" -a -f "$inst" ]; then chmod a-x $inst ; fi
+if [ "$1" = "remove" ] && [ -f "$inst" ]; then chmod a-x $inst ; fi
if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus ; fi
-if [ "$1" = remove -a -e /etc/suid.conf ] && \
+if [ "$1" = remove ] && [ -e /etc/suid.conf ] && \
which suidunregister >/dev/null 2>&1; then
suidunregister -s #PACKAGE# /#FILE#
fi
-if [ "$1" != "upgrade" -a -x /usr/sbin/update-fonts-dir ]; then
+if [ "$1" != "upgrade" ] && [ -x /usr/sbin/update-fonts-dir ]; then
#CMDS#
fi
-if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/#PACKAGE# ]; then
+if [ "$1" = "upgrade" ] || [ "$1" = "remove" ] && [ -L /usr/doc/#PACKAGE#
+then
rm -f /usr/doc/#PACKAGE#
fi
-if [ -x "/etc/init.d/#SCRIPT#" -a "$1" = remove ]; then
+if [ -x "/etc/init.d/#SCRIPT#" ] && [ "$1" = remove ]; then
/etc/init.d/#SCRIPT# stop
fi
-if [ -x "/etc/init.d/#SCRIPT#" -a "$1" = remove ]; then
+if [ -x "/etc/init.d/#SCRIPT#" ] && [ "$1" = remove ]; then
invoke-rc.d #SCRIPT# stop
fi
+debhelper (4.0.14) unstable; urgency=low
+
+ * In script fragments, use more posix tests, no -a or -o, no parens.
+ Closes: #150403
+
+ -- Joey Hess <joeyh@debian.org> Thu, 20 Jun 2002 20:39:55 -0400
+
debhelper (4.0.13) unstable; urgency=low
* Added --mainpackage= option, of use in some kernel modules packages.