2005-10-14 | paulb | file changeset files shortlog | [project @ 2005-10-14 13:56:42 by paulb] Renamed packages/debian to packages/ubuntu-hoary. |
paulb@485 | 1 | #! /bin/sh |
paulb@485 | 2 | # prerm script for WebStack |
paulb@485 | 3 | |
paulb@485 | 4 | set -e |
paulb@485 | 5 | |
paulb@485 | 6 | PACKAGE=python2.4-webstack |
paulb@485 | 7 | VERSION=2.4 |
paulb@485 | 8 | LIB="/usr/lib/python$VERSION" |
paulb@485 | 9 | DIRLIST="$LIB/site-packages/WebStack" |
paulb@485 | 10 | |
paulb@485 | 11 | case "$1" in |
paulb@485 | 12 | remove|upgrade|failed-upgrade) |
paulb@485 | 13 | for i in $DIRLIST ; do |
paulb@485 | 14 | find $i -name '*.py[co]' -exec rm \{\} \; |
paulb@485 | 15 | done |
paulb@485 | 16 | ;; |
paulb@485 | 17 | |
paulb@485 | 18 | *) |
paulb@485 | 19 | echo "prerm called with unknown argument \`$1'" >&2 |
paulb@485 | 20 | exit 1 |
paulb@485 | 21 | ;; |
paulb@485 | 22 | esac |
paulb@485 | 23 | |
paulb@485 | 24 | |
paulb@485 | 25 | |
paulb@485 | 26 | exit 0 |