diff options
Diffstat (limited to 'debian/rtsadmin.postinst')
| -rwxr-xr-x | debian/rtsadmin.postinst | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/rtsadmin.postinst b/debian/rtsadmin.postinst new file mode 100755 index 0000000..184f745 --- /dev/null +++ b/debian/rtsadmin.postinst @@ -0,0 +1,17 @@ +#!/bin/sh +for lib in lib lib64; do + for python in python2.6; do + if [ -e /usr/${lib}/${python} ]; then + if [ ! -e /usr/${lib}/${python}/rtsadmin ]; then + mkdir /usr/${lib}/${python}/rtsadmin + for source in /usr/share/python-support/rtsadmin/rtsadmin/*.py; do + ln -sf ${source} /usr/${lib}/${python}/rtsadmin/ + done + python_path=$(which ${python} 2>/dev/null) + if [ ! -z $python_path ]; then + ${python} -c "import compileall; compileall.compile_dir('/usr/${lib}/${python}/rtsadmin', force=1)" + fi + fi + fi + done +done |
