summaryrefslogtreecommitdiffstats
path: root/debian/python-scons.postinst
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2001-10-06 17:14:17 (GMT)
committerSteven Knight <knight@baldmt.com>2001-10-06 17:14:17 (GMT)
commit835c20588c4085e7bf963a1bf3fd2198194c8f50 (patch)
treeeec154cd7ce881966f16d6f86c7a330aa3fd2dcb /debian/python-scons.postinst
parenta86827b3933c2861d2e5b9df319630ce04559fe0 (diff)
downloadSCons-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.postinst27
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