clang alternatives are managed by llvm-defaults

This commit is contained in:
Sylvestre Ledru 2014-08-02 13:35:23 +00:00
parent 483fc895c9
commit 82303be101
3 changed files with 1 additions and 45 deletions

1
debian/changelog vendored
View File

@ -5,6 +5,7 @@ llvm-toolchain-3.4 (1:3.4.2-7~exp1) experimental; urgency=medium
- scan-view => scan-view-3.4
- asan_symbolize => asan_symbolize-3.4
* Remove of pollycc
* clang alternatives are managed by llvm-defaults
-- Sylvestre Ledru <sylvestre@debian.org> Sat, 02 Aug 2014 13:12:09 +0200

View File

@ -1,31 +0,0 @@
#! /bin/sh -e
prio=10
update-alternatives --quiet \
--install /usr/bin/c++ \
c++ \
/usr/bin/clang++ \
$prio
update-alternatives --quiet \
--install /usr/bin/cc \
cc \
/usr/bin/clang \
$prio
update-alternatives --quiet \
--install /usr/bin/c89 \
c89 \
/usr/bin/clang \
$prio
update-alternatives --quiet \
--install /usr/bin/c99 \
c99 \
/usr/bin/clang \
$prio
#DEBHELPER#
exit 0

View File

@ -1,14 +0,0 @@
#!/bin/sh
set -e
if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ]; then
update-alternatives --quiet --remove cc /usr/bin/clang
update-alternatives --quiet --remove c89 /usr/bin/clang
update-alternatives --quiet --remove c99 /usr/bin/clang
update-alternatives --quiet --remove c++ /usr/bin/clang++
fi
#DEBHELPER#
exit 0