summaryrefslogtreecommitdiff
path: root/data/llvm-clang/_metadata/prerm
blob: b3783cb233820f89005eb05c6f90e70333d22cca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
LLVMPROGS="ar as bcanalyzer cxxdump cxxfilt diff dlltool dsymutil dwarfdump nm objdump pdbutil profdata ranlib readelf readobj size split strings"
case "$1" in
    remove|deconfigure)
        for prog in ${LLVMPROGS}; do
            update-alternatives --quiet --remove ${prog} /usr/bin/llvm-${prog}
        done
        update-alternatives --quiet --remove cc /usr/bin/clang
        update-alternatives --quiet --remove gcc /usr/bin/clang
        update-alternatives --quiet --remove cpp /usr/bin/clang-cpp
        update-alternatives --quiet --remove c++ /usr/bin/clang++
        update-alternatives --quiet --remove g++ /usr/bin/clang++
        ;;
    upgrade)
        ;;
    failed-upgrade)
        ;;
    *)
        echo "prerm called with unknown argument \`$1'" >&2
        exit 0
        ;;
esac