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