2005-09-28 | paulb | file changeset files shortlog | [project @ 2005-09-28 17:44:29 by paulb] Really fixed the script. |
paulb@25 | 1 | #! /bin/sh |
paulb@25 | 2 | # prerm script for parallel |
paulb@25 | 3 | |
paulb@25 | 4 | set -e |
paulb@25 | 5 | |
paulb@25 | 6 | PACKAGE=python2.4-parallel |
paulb@25 | 7 | VERSION=2.4 |
paulb@25 | 8 | LIB="/usr/lib/python$VERSION" |
paulb@28 | 9 | DIR="$LIB/site-packages" |
paulb@25 | 10 | |
paulb@25 | 11 | case "$1" in |
paulb@25 | 12 | remove|upgrade|failed-upgrade) |
paulb@28 | 13 | rm ${DIR}/parallel.py[co] |
paulb@25 | 14 | ;; |
paulb@25 | 15 | |
paulb@25 | 16 | *) |
paulb@25 | 17 | echo "prerm called with unknown argument \`$1'" >&2 |
paulb@25 | 18 | exit 1 |
paulb@25 | 19 | ;; |
paulb@25 | 20 | esac |
paulb@25 | 21 | |
paulb@25 | 22 | |
paulb@25 | 23 | |
paulb@25 | 24 | exit 0 |