summaryrefslogtreecommitdiff
path: root/debian/libstdc++CXX.postinst
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2017-05-13 13:54:49 +0300
committerIgor Pashev <pashev.igor@gmail.com>2017-05-13 13:54:49 +0300
commit42156b5190f4fa150e1fab6777eb81e69d4db8c9 (patch)
tree3bf47de81cf1f89892789535a036d2d55d93a136 /debian/libstdc++CXX.postinst
downloadgcc-6-debian.tar.gz
Imported gcc-6 (6.3.0-17)debian/6.3.0-17debian
Diffstat (limited to 'debian/libstdc++CXX.postinst')
-rw-r--r--debian/libstdc++CXX.postinst18
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/libstdc++CXX.postinst b/debian/libstdc++CXX.postinst
new file mode 100644
index 0000000..9a9c868
--- /dev/null
+++ b/debian/libstdc++CXX.postinst
@@ -0,0 +1,18 @@
+#! /bin/sh -e
+
+case "$1" in
+ configure)
+ docdir=/usr/share/doc/libstdc++@CXX@
+ if [ -d $docdir ] && [ ! -h $docdir ]; then
+ rm -rf $docdir
+ ln -s gcc-@BV@-base $docdir
+ fi
+
+ if [ -n "$2" ] && [ -d /usr/share/gcc-4.9 ] && dpkg --compare-versions "$2" lt 5.1.1-10; then
+ find /usr/share/gcc-4.9/python -name __pycache__ -type d -print0 | xargs -r0 rm -rf
+ find /usr/share/gcc-4.9/python -name '*.py[co]' -type f -print0 | xargs -r0 rm -f
+ find /usr/share/gcc-4.9 -empty -delete 2>/dev/null || true
+ fi
+esac
+
+#DEBHELPER#