summaryrefslogtreecommitdiff
path: root/debian/gcc.postinst.in
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2019-11-25 14:24:18 +0300
committerIgor Pashev <pashev.igor@gmail.com>2019-11-25 14:24:18 +0300
commit2e162c166c97ef1da3356bb36add95be3e030c1d (patch)
treec9d61b4a73d958648750c12139a6f8263dad2570 /debian/gcc.postinst.in
parent265b4d936a9a438ba11f19475772f4b8d520ca59 (diff)
parente06370f27bc2868df91c3a5f29dc7f95e3f9350a (diff)
downloadgcc-defaults-2e162c166c97ef1da3356bb36add95be3e030c1d.tar.gz
Merge tag 'debian/1.185.1'
Diffstat (limited to 'debian/gcc.postinst.in')
-rw-r--r--debian/gcc.postinst.in9
1 files changed, 2 insertions, 7 deletions
diff --git a/debian/gcc.postinst.in b/debian/gcc.postinst.in
index 0828ab6..85ff3e8 100644
--- a/debian/gcc.postinst.in
+++ b/debian/gcc.postinst.in
@@ -1,11 +1,6 @@
-#! /bin/sh -e
+#! /bin/sh
-# remove the doc dir, if it's still a directory and replace with a symlink
-pkg=`basename $0 .postinst`
-if [ ! -L /usr/share/doc/$pkg ]; then
- rm -rf /usr/share/doc/$pkg
- ln -s cpp /usr/share/doc/$pkg
-fi
+set -e
update-alternatives --quiet \
--install /usr/bin/cc cc /usr/bin/gcc 20 \