| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | # preinst script for libmodule-build-perl |
| 3 | |
| 4 | set -e |
| 5 | |
| 6 | # summary of how this script can be called: |
| 7 | # * <new-preinst> `install' |
| 8 | # * <new-preinst> `install' <old-version> |
| 9 | # * <new-preinst> `upgrade' <old-version> |
| 10 | # * <old-preinst> `abort-upgrade' <new-version> |
| 11 | # for details, see http://www.debian.org/doc/debian-policy/ or |
| 12 | # the debian-policy package |
| 13 | |
| 14 | case "$1" in |
| 15 | install|upgrade) |
| 16 | if [scip-shell system . . `[`. upgrade != "$1" ] \ |
| 17 | || dpkgscip-shell system . . dpkg. --compare-versions "$2" lt "0.340201-1"; then |
| 18 | dpkg-divertscip-shell system . . dpkg-divert. --package libmodule-build-perl --add --rename \ |
| 19 | --divert /usr/bin/config_data.divertedscip-shell filesystem . . `/usr/bin/config_data.diverted`. /usr/bin/config_datascip-shell filesystem . . `/usr/bin/config_data`. |
| 20 | fi |
| 21 | if [scip-shell system . . `[`. upgrade != "$1" ] \ |
| 22 | || dpkgscip-shell system . . dpkg. --compare-versions "$2" lt "0.400100-2"; then |
| 23 | dpkg-divertscip-shell system . . dpkg-divert. --package libmodule-build-perl --add --rename \ |
| 24 | --divert /usr/share/man/man1/config_data.diverted.1.gzscip-shell filesystem . . `/usr/share/man/man1/config_data.diverted.1.gz`. /usr/share/man/man1/config_data.1.gzscip-shell filesystem . . `/usr/share/man/man1/config_data.1.gz`. |
| 25 | fi |
| 26 | |
| 27 | ;; |
| 28 | |
| 29 | abort-upgrade) |
| 30 | ;; |
| 31 | |
| 32 | *) |
| 33 | echoscip-shell system . . echo. "preinst called with unknown argument \`$1'" >&2 |
| 34 | exit 1 |
| 35 | ;; |
| 36 | esac |
| 37 | |
| 38 | # dh_installdeb will replace this with shell code automatically |
| 39 | # generated by other debhelper scripts. |
| 40 | |
| 41 | #DEBHELPER# |
| 42 | |
| 43 | exit 0 |