diff options
author | Steven Knight <knight@baldmt.com> | 2001-10-06 17:14:17 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2001-10-06 17:14:17 (GMT) |
commit | 835c20588c4085e7bf963a1bf3fd2198194c8f50 (patch) | |
tree | eec154cd7ce881966f16d6f86c7a330aa3fd2dcb /debian/python-scons.postinst | |
parent | a86827b3933c2861d2e5b9df319630ce04559fe0 (diff) | |
download | SCons-835c20588c4085e7bf963a1bf3fd2198194c8f50.zip SCons-835c20588c4085e7bf963a1bf3fd2198194c8f50.tar.gz SCons-835c20588c4085e7bf963a1bf3fd2198194c8f50.tar.bz2 |
Create Debian package installation
Diffstat (limited to 'debian/python-scons.postinst')
-rw-r--r-- | debian/python-scons.postinst | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/debian/python-scons.postinst b/debian/python-scons.postinst new file mode 100644 index 0000000..362860a --- /dev/null +++ b/debian/python-scons.postinst @@ -0,0 +1,27 @@ +#! /bin/sh -e +# +# postinst script for Debian python2 packages. +# Written 1998 by Gregor Hoffleit <flight@debian.org>. +# Modified for SCons 2001 by Anthony Roach <aroach@electriceyeball.com>. +# + +PACKAGE=python-scons +DIRLIST="/usr/lib/python1.5/site-packages/SCons" + +case "$1" in + configure|abort-upgrade|abort-remove|abort-deconfigure) + for i in $DIRLIST ; do + python2 -O /usr/lib/python1.5/compileall.py -q $i + python2 /usr/lib/python1.5/compileall.py -q $i + done + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 |