summaryrefslogtreecommitdiffstats
path: root/debian/libklibc-dev.preinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/libklibc-dev.preinst')
-rw-r--r--debian/libklibc-dev.preinst11
1 files changed, 11 insertions, 0 deletions
diff --git a/debian/libklibc-dev.preinst b/debian/libklibc-dev.preinst
new file mode 100644
index 0000000..9694ab2
--- /dev/null
+++ b/debian/libklibc-dev.preinst
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+BASEDIR=/usr/lib/klibc/include/
+# these are shipped symlinks to linux-libc-dev and not directories
+if [ -d ${BASEDIR}linux ] || [ -d ${BASEDIR}asm ]; then
+ rm -rf ${BASEDIR}linux ${BASEDIR}asm*
+fi