summaryrefslogtreecommitdiff
path: root/debian/llvm-X.Y-runtime.prerm.in
diff options
context:
space:
mode:
Diffstat (limited to 'debian/llvm-X.Y-runtime.prerm.in')
-rw-r--r--debian/llvm-X.Y-runtime.prerm.in18
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/llvm-X.Y-runtime.prerm.in b/debian/llvm-X.Y-runtime.prerm.in
new file mode 100644
index 0000000..3f16015
--- /dev/null
+++ b/debian/llvm-X.Y-runtime.prerm.in
@@ -0,0 +1,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#
+