From 0292003f166a9ae9059da9265516874e940a92c9 Mon Sep 17 00:00:00 2001 From: marschap Date: Thu, 5 Oct 2006 09:10:24 +0000 Subject: [PATCH] make Debian {pre,post}{inst,rm} scripts more readable --- scripts/debian/postinst | 20 ++++++++------------ scripts/debian/postrm | 15 ++++++--------- scripts/debian/prerm | 17 ++++++++--------- 3 files changed, 22 insertions(+), 30 deletions(-) diff --git a/scripts/debian/postinst b/scripts/debian/postinst index 704ede3..7e252d2 100644 --- a/scripts/debian/postinst +++ b/scripts/debian/postinst @@ -24,18 +24,14 @@ set -e # `abort-remove' or `abort-deconfigure'. case "$1" in - configure) - - ;; - - abort-upgrade|abort-remove|abort-deconfigure) - - ;; - - *) - echo "postinst called with unknown argument \`$1'" >&2 - exit 1 - ;; + configure) + ;; + abort-upgrade|abort-remove|abort-deconfigure) + ;; + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; esac # dh_installdeb will replace this with shell code automatically diff --git a/scripts/debian/postrm b/scripts/debian/postrm index 0341d82..725a08d 100644 --- a/scripts/debian/postrm +++ b/scripts/debian/postrm @@ -19,15 +19,12 @@ set -e case "$1" in - purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) - - - ;; - - *) - echo "postrm called with unknown argument \`$1'" >&2 - exit 1 - + purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; esac # dh_installdeb will replace this with shell code automatically diff --git a/scripts/debian/prerm b/scripts/debian/prerm index 1b4c26f..15661de 100644 --- a/scripts/debian/prerm +++ b/scripts/debian/prerm @@ -18,15 +18,14 @@ set -e case "$1" in - remove|upgrade|deconfigure) -# install-info --quiet --remove /usr/info/lcdproc.info.gz - ;; - failed-upgrade) - ;; - *) - echo "prerm called with unknown argument \`$1'" >&2 - exit 1 - ;; + remove|upgrade|deconfigure) + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; esac # dh_installdeb will replace this with shell code automatically