[Fxpy-commits] FXPy/debian fxpy-python2.3.postinst,NONE,1.1 fxpy-python2.3.prerm,NONE,1.1
Status: Inactive
Brought to you by:
lyle
From: Bastian K. <ca...@us...> - 2003-07-01 16:19:04
|
Update of /cvsroot/fxpy/FXPy/debian In directory sc8-pr-cvs1:/tmp/cvs-serv12159/debian Added Files: fxpy-python2.3.postinst fxpy-python2.3.prerm Log Message: added postinst, prerm for python 2.3 --- NEW FILE: fxpy-python2.3.postinst --- #!/bin/sh -e # # Written 1998 by Gregor Hoffleit <fl...@de...>. # used by Bastian Kleineidam for FXPy PYTHON=python2.3 SITEPACKAGES=/usr/lib/$PYTHON/site-packages DIRLIST=FXPy FILELIST= COMMAND="'import sys,py_compile;py_compile.compile(sys.argv[1])'" case "$1" in configure|abort-upgrade|abort-remove|abort-deconfigure) for i in $DIRLIST; do $PYTHON -O /usr/lib/$PYTHON/compileall.py -q $SITEPACKAGES/$i $PYTHON /usr/lib/$PYTHON/compileall.py -q $SITEPACKAGES/$i done # use /bin/sh -c, otherwise I get a SyntaxError from Python for i in $FILELIST; do /bin/sh -c "$PYTHON -O -c $COMMAND $SITEPACKAGES/$i" /bin/sh -c "$PYTHON -c $COMMAND $SITEPACKAGES/$i" done ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 --- NEW FILE: fxpy-python2.3.prerm --- #!/bin/sh -e # # Written 1998 by Gregor Hoffleit <fl...@de...>. # used by Bastian Kleineidam for FXPy PACKAGE=fxpy-python2.3 PYTHON=python2.3 #DEBHELPER# dpkg --listfiles $PACKAGE | awk '$0~/\.py$/ {print $0"c\n" $0"o"}' | xargs rm -f >&2 rmdir /usr/lib/$PYTHON/site-packages/FXPy 2>/dev/null || true exit 0 |