File: libstdc%2B%2BCXX.postinst

package info (click to toggle)
gcc-8 8.2.0-20
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 98,728 kB
  • sloc: makefile: 2,207; sh: 954; python: 811; awk: 23; cpp: 14
file content (18 lines) | stat: -rw-r--r-- 541 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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#