summaryrefslogtreecommitdiff
path: root/debian/prerm
diff options
context:
space:
mode:
authorWilliam Blevins <wblevins@gmail.com>2015-03-23 22:48:48 -0400
committerWilliam Blevins <wblevins@gmail.com>2015-03-23 22:48:48 -0400
commitc6d81e0932bbd7b35a2d0c20db7fcf1f773048dc (patch)
tree033ef7e45dfe205ccdfd308938c1d7802f03d0ef /debian/prerm
downloadscons-git-c6d81e0932bbd7b35a2d0c20db7fcf1f773048dc.tar.gz
Updated jni header directory expectations for tests.
My openjdk install link/dir also contained the architecture. Example: RPM package java-1.7.0-openjdk-devel-1.7.0.75-2.5.4.0.el6_6.x86_64 created link /usr/lib/jvm/java-1.7.0-openjdk.x86_64 Affected tests: test/Java/multi-step.py test/Java/swig-dependencies.py
Diffstat (limited to 'debian/prerm')
-rw-r--r--debian/prerm12
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/prerm b/debian/prerm
new file mode 100644
index 000000000..62531a3e8
--- /dev/null
+++ b/debian/prerm
@@ -0,0 +1,12 @@
+#!/bin/sh
+set -e
+
+NAME=scons
+
+dpkg --listfiles $NAME |
+ awk '$0~/\.py$/ {print $0"c\n" $0"o"}' |
+ xargs rm -f >&2
+
+if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/scons ]; then
+ rm -f /usr/doc/scons
+fi