summaryrefslogtreecommitdiff
path: root/debian/clang-X.Y.postinst.in
diff options
context:
space:
mode:
Diffstat (limited to 'debian/clang-X.Y.postinst.in')
-rw-r--r--debian/clang-X.Y.postinst.in31
1 files changed, 31 insertions, 0 deletions
diff --git a/debian/clang-X.Y.postinst.in b/debian/clang-X.Y.postinst.in
new file mode 100644
index 0000000..64ae9fa
--- /dev/null
+++ b/debian/clang-X.Y.postinst.in
@@ -0,0 +1,31 @@
+#! /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