Source

SCons / debian / postinst

Full commit
Steven Knight 31b28a8 











Steven Knight 07dabd3 
Steven Knight 31b28a8 
Steven Knight 07dabd3 
Steven Knight 31b28a8 
#!/bin/sh
set -e
if [ "$1" = "configure" ]; then
	if [ -d /usr/doc -a ! -e /usr/doc/scons -a -d /usr/share/doc/scons ]; then
		ln -sf ../share/doc/scons /usr/doc/scons
	fi
fi

NAME=scons
case "$1" in
        configure|abort-upgrade|abort-remove|abort-deconfigure)
                dpkg --listfiles $NAME | grep '\.py$' | \
                     xargs -n 1 /usr/bin/python2.2 -c 'import py_compile,sys;py_compile.compile(sys.argv[1])'
                dpkg --listfiles $NAME | grep '\.py$' | \
                     xargs -n 1 /usr/bin/python2.2 -O -c 'import py_compile,sys;py_compile.compile(sys.argv[1])'
        ;;
esac