summaryrefslogtreecommitdiff
path: root/debian/llvm-X.Y-runtime.prerm.in
blob: 3f16015a2c258deaf940247ae5ae55701f6227eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

if test "$1" = "remove"; then
    if test -x /usr/sbin/update-binfmts; then
        update-binfmts --package llvm-@LLVM_VERSION@-runtime \
            --remove llvm-@LLVM_VERSION@-runtime.binfmt /usr/bin/lli-@LLVM_VERSION@ || true
        if test -f /var/lib/binfmts/llvm-@LLVM_VERSION@.binfmt; then
            # Purge old file
            update-binfmts --package llvm-@LLVM_VERSION@-runtime \
                --remove llvm-@LLVM_VERSION@.binfmt /usr/bin/lli-@LLVM_VERSION@ || true
        fi
    fi
fi

#DEBHELPER#