summaryrefslogtreecommitdiff
path: root/tools/install-compat-scripts.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/install-compat-scripts.sh')
-rwxr-xr-xtools/install-compat-scripts.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/install-compat-scripts.sh b/tools/install-compat-scripts.sh
new file mode 100755
index 0000000..0d8b3ad
--- /dev/null
+++ b/tools/install-compat-scripts.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+#
+# This does not honor $bindir properly, because we cannot get to it
+# here. Does anyone build to something but prefix/bin?
+#
+bindir="${DESTDIR}/${MESON_INSTALL_PREFIX}/bin"
+mkdir -p "$bindir"
+cp "${MESON_SOURCE_ROOT}/tools/libinput-list-devices.compat" "${bindir}/libinput-list-devices"
+cp "${MESON_SOURCE_ROOT}/tools/libinput-debug-events.compat" "${bindir}/libinput-debug-events"