2005-09-29 | paulb | file changeset files shortlog | [project @ 2005-09-29 14:17:04 by paulb] Introduced adapter code from the demonstration application. Made the means of invoking the demo a straightforward module import and acquisition of the site resource followed by a call to the deploy function for BaseHTTPRequestHandler - this might make the browser opening code less likely to fail. |
paulb@411 | 1 | #! /bin/sh |
paulb@411 | 2 | # prerm script for WebStack |
paulb@411 | 3 | |
paulb@411 | 4 | set -e |
paulb@411 | 5 | |
paulb@411 | 6 | PACKAGE=python2.4-webstack |
paulb@411 | 7 | VERSION=2.4 |
paulb@411 | 8 | LIB="/usr/lib/python$VERSION" |
paulb@411 | 9 | DIRLIST="$LIB/site-packages/WebStack" |
paulb@411 | 10 | |
paulb@411 | 11 | case "$1" in |
paulb@411 | 12 | remove|upgrade|failed-upgrade) |
paulb@411 | 13 | for i in $DIRLIST ; do |
paulb@411 | 14 | find $i -name '*.py[co]' -exec rm \{\} \; |
paulb@411 | 15 | done |
paulb@411 | 16 | ;; |
paulb@411 | 17 | |
paulb@411 | 18 | *) |
paulb@411 | 19 | echo "prerm called with unknown argument \`$1'" >&2 |
paulb@411 | 20 | exit 1 |
paulb@411 | 21 | ;; |
paulb@411 | 22 | esac |
paulb@411 | 23 | |
paulb@411 | 24 | |
paulb@411 | 25 | |
paulb@411 | 26 | exit 0 |