debian/reallyold/gsl-bin.preinst
raw| 1 | #!/bin/sh -e |
| 2 | # |
| 3 | # preinst script for the Debian GNU/Linux gsl-bin package |
| 4 | # |
| 5 | # Written and GPL'ed by Dirk Eddelbuettel <[email protected]> |
| 6 | |
| 7 | case "$1" in |
| 8 | |
| 9 | install|upgrade) |
| 10 | # We want to remove previous versions' documentation directory |
| 11 | test -d /usr/share/doc/gsl-bin && rm -rf /usr/share/doc/gsl-bin |
| 12 | ;; |
| 13 | |
| 14 | abort-upgrade) |
| 15 | ;; |
| 16 | |
| 17 | *) |
| 18 | echo "preinst called with unknown argument \`$1'" >&2 |
| 19 | ;; |
| 20 | |
| 21 | esac |
| 22 | |
| 23 | #DEBHELPER# |
| 24 | |
| 25 | exit 0 |
| 26 |