File: postinst

package info (click to toggle)
pms 0.2.19-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 456 kB
  • ctags: 389
  • sloc: python: 2,655; makefile: 59; sh: 24
file content (15 lines) | stat: -rw-r--r-- 424 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
set -e
if [ "$1" = "configure" ]; then
	if [ -d /usr/doc -a ! -e /usr/doc/pms -a -d /usr/share/doc/pms ]; then
		ln -sf ../share/doc/pms /usr/doc/pms
	fi
fi

PMS_DIR='/usr/lib/pms/python/PMS'
case "$1" in
	configure|abort-upgrade|abort-remove|abort-deconfigure)
		/usr/bin/python -O -c 'from compileall import main;main()' -q $PMS_DIR
		/usr/bin/python -c 'from compileall import main;main()' -q $PMS_DIR
	;;
esac