summaryrefslogtreecommitdiff
path: root/autoscripts
diff options
context:
space:
mode:
authorjoey <joey>2002-11-21 05:21:51 +0000
committerjoey <joey>2002-11-21 05:21:51 +0000
commit5bc7bc9264d1c77e387bf7b8def576ad4f923b96 (patch)
treec84bed79bb9288a77d87471fe8db456512f60772 /autoscripts
parentaa763af651938c335925cf97054c5411cc489625 (diff)
r565: * Various minor changes based on suggestions by luca.
Diffstat (limited to 'autoscripts')
-rw-r--r--autoscripts/postinst-python6
-rw-r--r--autoscripts/prerm-python5
2 files changed, 11 insertions, 0 deletions
diff --git a/autoscripts/postinst-python b/autoscripts/postinst-python
new file mode 100644
index 0000000..2ecb99b
--- /dev/null
+++ b/autoscripts/postinst-python
@@ -0,0 +1,6 @@
+PYTHON=#PYVER#
+DIRLIST="#DIRLIST#"
+for i in $DIRLIST ; do
+ $PYTHON -O /usr/lib/$PYTHON/compileall.py -q $i
+ $PYTHON /usr/lib/$PYTHON/compileall.py -q $i
+done
diff --git a/autoscripts/prerm-python b/autoscripts/prerm-python
new file mode 100644
index 0000000..0dc1273
--- /dev/null
+++ b/autoscripts/prerm-python
@@ -0,0 +1,5 @@
+if [ "$1" = remove ]; then
+ dpkg -L #PACKAGE# |
+ awk '$0~/\.py$/ {print $0"c\n" $0"o"}' |
+ xargs rm -f >&2
+fi