summaryrefslogtreecommitdiff
path: root/data/llvm-clang/_metadata/prerm
blob: 119c2de8f27cb8c5ec376b2e9b709cb9330da193 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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 gcc /usr/bin/clang
        update-alternatives --quiet --remove cpp /usr/bin/clang-cpp
        update-alternatives --quiet --remove g++ /usr/bin/clang++
        ;;
    upgrade)
        ;;
    failed-upgrade)
        ;;
    *)
        echo "prerm called with unknown argument \`$1'" >&2
        exit 0
        ;;
esac