summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsylvestre <sylvestre@670adf90-79fe-46c2-b027-9eb1e76e7c7d>2014-08-02 13:35:36 +0000
committersylvestre <sylvestre@670adf90-79fe-46c2-b027-9eb1e76e7c7d>2014-08-02 13:35:36 +0000
commit91d6bc8c68d4227c32b9258436b0ebb10756cb30 (patch)
treed3eec5cd0f6820ca3ea4c7e7de93357bae224f60
parent86ed6d19fe80117604e4adfd12e6d545f90e6752 (diff)
downloadllvm-toolchain-3.5-91d6bc8c68d4227c32b9258436b0ebb10756cb30.tar.gz
clang alternatives are managed by llvm-defaults
git-svn-id: svn://svn.debian.org/svn/pkg-llvm/llvm-toolchain/branches/3.5@1308 670adf90-79fe-46c2-b027-9eb1e76e7c7d
-rw-r--r--debian/changelog1
-rw-r--r--debian/clang-X.Y.postinst.in31
-rw-r--r--debian/clang-X.Y.prerm.in14
3 files changed, 1 insertions, 45 deletions
diff --git a/debian/changelog b/debian/changelog
index da252c3..4e50b8f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ llvm-toolchain-3.5 (1:3.5~+rc1-3~exp1) experimental; urgency=medium
- scan-view => scan-view-3.5
- asan_symbolize => asan_symbolize-3.5
* Remove of pollycc
+ * clang alternatives are managed by llvm-defaults
-- Sylvestre Ledru <sylvestre@debian.org> Thu, 31 Jul 2014 18:12:59 +0200
diff --git a/debian/clang-X.Y.postinst.in b/debian/clang-X.Y.postinst.in
deleted file mode 100644
index 64ae9fa..0000000
--- a/debian/clang-X.Y.postinst.in
+++ /dev/null
@@ -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
diff --git a/debian/clang-X.Y.prerm.in b/debian/clang-X.Y.prerm.in
deleted file mode 100644
index 46ceec8..0000000
--- a/debian/clang-X.Y.prerm.in
+++ /dev/null
@@ -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