make Debian {pre,post}{inst,rm} scripts more readable

This commit is contained in:
marschap
2006-10-05 09:10:24 +00:00
parent 38a9352d71
commit 0292003f16
3 changed files with 22 additions and 30 deletions
+8 -12
View File
@@ -24,18 +24,14 @@ set -e
# `abort-remove' or `abort-deconfigure'. # `abort-remove' or `abort-deconfigure'.
case "$1" in case "$1" in
configure) configure)
;;
;; abort-upgrade|abort-remove|abort-deconfigure)
;;
abort-upgrade|abort-remove|abort-deconfigure) *)
echo "postinst called with unknown argument \`$1'" >&2
;; exit 1
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac esac
# dh_installdeb will replace this with shell code automatically # dh_installdeb will replace this with shell code automatically
+6 -9
View File
@@ -19,15 +19,12 @@ set -e
case "$1" in case "$1" in
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;
*)
;; echo "postrm called with unknown argument \`$1'" >&2
exit 1
*) ;;
echo "postrm called with unknown argument \`$1'" >&2
exit 1
esac esac
# dh_installdeb will replace this with shell code automatically # dh_installdeb will replace this with shell code automatically
+8 -9
View File
@@ -18,15 +18,14 @@ set -e
case "$1" in case "$1" in
remove|upgrade|deconfigure) remove|upgrade|deconfigure)
# install-info --quiet --remove /usr/info/lcdproc.info.gz ;;
;; failed-upgrade)
failed-upgrade) ;;
;; *)
*) echo "prerm called with unknown argument \`$1'" >&2
echo "prerm called with unknown argument \`$1'" >&2 exit 1
exit 1 ;;
;;
esac esac
# dh_installdeb will replace this with shell code automatically # dh_installdeb will replace this with shell code automatically