From 2055c57436a6d35f4165f63a2189248fd651c093 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Danis?= Date: Thu, 9 Sep 2021 11:24:02 +0200 Subject: [PATCH] meson: Allow access to WP tools in uninstalled shell If WirePlumber is built as a subproject this calls the wireplumber's `wp-uninstalled.sh` command to be able to run PW and WP commands from the uninstalled shell. --- pw-uninstalled.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pw-uninstalled.sh b/pw-uninstalled.sh index 0a07a2016..e328dbd9c 100755 --- a/pw-uninstalled.sh +++ b/pw-uninstalled.sh @@ -52,5 +52,10 @@ export ALSA_PLUGIN_DIR="${BUILDDIR}/pipewire-alsa/alsa-plugins" export PW_UNINSTALLED=1 export PKG_CONFIG_PATH="${BUILDDIR}/meson-uninstalled/:${PKG_CONFIG_PATH}" -# FIXME: find a nice, shell-neutral way to specify a prompt -${SHELL} +if [ -d "${BUILDDIR}/subprojects/wireplumber" ]; then + # FIXME: find a nice, shell-neutral way to specify a prompt + "${SCRIPT_DIR}"/subprojects/wireplumber/wp-uninstalled.sh -b"${BUILDDIR}"/subprojects/wireplumber "${SHELL}" +else + # FIXME: find a nice, shell-neutral way to specify a prompt + ${SHELL} +fi