summaryrefslogtreecommitdiff
path: root/debian/llvm-X.Y-runtime.postinst.in
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2017-10-15 15:41:01 +0300
committerIgor Pashev <pashev.igor@gmail.com>2017-10-15 15:41:01 +0300
commit7a2b43796a4c38cf98fe05e8e4ec985318b2721b (patch)
treeb0f5611276e10646b654f7d5ed12c6e6060353be /debian/llvm-X.Y-runtime.postinst.in
downloadllvm-toolchain-5.0-debian.tar.gz
Imported llvm-toolchain-5.0 (1:5.0-4)debian/5.0-4debian
Diffstat (limited to 'debian/llvm-X.Y-runtime.postinst.in')
-rw-r--r--debian/llvm-X.Y-runtime.postinst.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/debian/llvm-X.Y-runtime.postinst.in b/debian/llvm-X.Y-runtime.postinst.in
new file mode 100644
index 0000000..987b3ea
--- /dev/null
+++ b/debian/llvm-X.Y-runtime.postinst.in
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+if test "$1" = "configure"; then
+ if test -x /usr/sbin/update-binfmts; then
+ update-binfmts --import llvm-@LLVM_VERSION@-runtime.binfmt || true
+ fi
+fi
+
+#DEBHELPER#