make Debian {pre,post}{inst,rm} scripts more readable
This commit is contained in:
+8
-12
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user