debian/clang.postinst
raw| 1 | #! /bin/sh |
| 2 | set -e |
| 3 | |
| 4 | prio=10 |
| 5 | |
| 6 | update-alternatives --quiet \ |
| 7 | --install /usr/bin/c++ \ |
| 8 | c++ \ |
| 9 | /usr/bin/clang++ \ |
| 10 | $prio |
| 11 | |
| 12 | update-alternatives --quiet \ |
| 13 | --install /usr/bin/cc \ |
| 14 | cc \ |
| 15 | /usr/bin/clang \ |
| 16 | $prio |
| 17 | |
| 18 | update-alternatives --quiet \ |
| 19 | --install /usr/bin/c89 \ |
| 20 | c89 \ |
| 21 | /usr/bin/clang \ |
| 22 | $prio |
| 23 | |
| 24 | update-alternatives --quiet \ |
| 25 | --install /usr/bin/c99 \ |
| 26 | c99 \ |
| 27 | /usr/bin/clang \ |
| 28 | $prio |
| 29 | |
| 30 | #DEBHELPER# |
| 31 | |
| 32 | exit 0 |