]> git.donarmstrong.com Git - debhelper.git/blobdiff - autoscripts/prerm-python
r565: * Various minor changes based on suggestions by luca.
[debhelper.git] / autoscripts / prerm-python
diff --git a/autoscripts/prerm-python b/autoscripts/prerm-python
new file mode 100644 (file)
index 0000000..0dc1273
--- /dev/null
@@ -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