-if [ "$1" = configure ] && command -v install-docs >/dev/null 2>&1; then
+if [ "$1" = configure ] && which install-docs >/dev/null 2>&1; then
install-docs -i /usr/share/doc-base/#DOC-ID#
fi
if [ "$1" = "configure" ]; then
- if command -v suidregister >/dev/null 2>&1 && [ -e /etc/suid.conf ]; then
+ if which suidregister >/dev/null 2>&1 && [ -e /etc/suid.conf ]; then
suidregister -s #PACKAGE# /#FILE# #OWNER# #GROUP# #PERMS#
elif [ -e /#FILE# ]; then
chown #OWNER#.#GROUP# /#FILE#
if [ "$1" = "configure" ]; then
- if [ -x /usr/sbin/update-xaw-wrappers ]; then
- /usr/sbin/update-xaw-wrappers
+ if which update-xaw-wrappers >/dev/null 2>&1; then
+ update-xaw-wrappers
fi
for opts in #OPTS#; do
update-alternatives --quiet --install $opts 25
-if [ -x /usr/sbin/update-fonts-dir ]; then
+if which update-fonts-dir >/dev/null 2>&1; then
#CMDS#
fi
-if [ -x /usr/bin/update-menus ]; then update-menus ; fi
+if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus ; fi
inst=/etc/menu-methods/#PACKAGE#
if [ "$1" = "remove" -a -f "$inst" ]; then chmod a-x $inst ; fi
-if [ -x /usr/bin/update-menus ]; then update-menus; fi
+if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus ; fi
-if [ -x /usr/sbin/update-mime ]; then update-mime; fi
+if which update-mime >/dev/null 2>&1; then update-mime; fi
if [ "$1" = remove -a -e /etc/suid.conf ] && \
- command -v suidunregister >/dev/null 2>&1; then
+ which suidunregister >/dev/null 2>&1; then
suidunregister -s #PACKAGE# /#FILE#
fi
-if [ -x /usr/sbin/update-xaw-wrappers ]; then
- /usr/sbin/update-xaw-wrappers
+if which update-xaw-wrappers >/dev/null 2>&1; then
+ update-xaw-wrappers
fi
if [ "$1" = remove -o "$1" = upgrade ] && \
- command -v install-docs >/dev/null 2>&1; then
+ which install-docs >/dev/null 2>&1; then
install-docs -r #DOC-ID#
fi
+debhelper (4.0.10) unstable; urgency=low
+
+ * Consistently use the which command instead of command -v or hardcoded
+ paths in autoscripts. Neither is in posix, but which is in debianutils, so
+ will always be available. command -v is not available in zsh.
+ Closes: #148172
+
+ -- Joey Hess <joeyh@debian.org> Sun, 26 May 2002 00:54:33 -0400
+
debhelper (4.0.9) unstable; urgency=low
* dh_install: glob relative to --sourcedir. Closes: #147908