summaryrefslogtreecommitdiff
path: root/build-aux/meson-install-script.sh
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2018-10-28 02:42:53 -0400
committerDave Reisner <dreisner@archlinux.org>2018-11-02 03:16:34 -0400
commitd230ec6f17a2b64ed61936013234414c74e7c29f (patch)
tree397a8d6cba41ee56722309fdeed540e269d2ece5 /build-aux/meson-install-script.sh
parent51db84750ece4de58923d4ce43cb0638ef150f5f (diff)
downloadpacman-d230ec6f17a2b64ed61936013234414c74e7c29f.tar.xz
meson: add a wrapper to bootstrap scripts from within build dir
This doesn't do quite as good of a job of "hiding away" the real script as we did with autotools, but it satisfies the need for being able to run scripts which depend on libmakepkg with the local copy within the repo. We do, however, improve upon the autotools script by ensuring that the bash path used in configuring pacman is the interpreter used to run the underlying script.
Diffstat (limited to 'build-aux/meson-install-script.sh')
-rw-r--r--build-aux/meson-install-script.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/build-aux/meson-install-script.sh b/build-aux/meson-install-script.sh
new file mode 100644
index 00000000..f5a42fca
--- /dev/null
+++ b/build-aux/meson-install-script.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+built_script=$1
+dest_path=$2
+
+install -Dm755 "$built_script" "$DESTDIR/$dest_path"