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