9 Commits

Author SHA1 Message Date
Peter Hutterer
083e10a75d wp-uninstalled: fix a few shellcheck complaints 2021-10-26 13:06:46 +10:00
George Kiagiadakis
bc0b43ac4d wp-uninstalled.sh: print the build directory to avoid confusion
Now that the build directory is found automatically, if it so
happens that you have more than one build dir in your tree,
'make run' may not run the version that you expect...
2021-10-15 14:00:42 +03:00
Peter Hutterer
4c5bf21a96 wp-uninstalled: error with usage information if no command is given 2021-10-15 08:14:03 +00:00
Peter Hutterer
c2b06feef2 wp-uninstalled: exit with status code 1, not -1
-1 usually wraps around to 255, let's use the more universal 1.
2021-10-15 08:14:03 +00:00
Peter Hutterer
7970e4c75b wp-uninstalled: try to find the build directory
Search for the first build.ninja file and only if that fails default to
the current build/.
2021-10-15 08:14:03 +00:00
Peter Hutterer
52aaf96179 wp-uninstalled: build this script with the meson dirs filled in
./builddir/wp-uninstalled.sh can now be called without a -b argument,
it'll automatically set the full paths. This is useful when building as
a subproject.

meson has a limitation: the configure_file() object is just a file
wrapper object. Wrap this into a custom_target() whose return value has
a full_path() method. This way, pipewire can use
wireplumber_uninstalled.full_path() without having to build the
directory structure itself.
2021-10-15 08:14:03 +00:00
Peter Hutterer
e9b1ab41ee wp-uninstalled: rename SCRIPT_DIR to SOURCEDIR
As suggested in !237
2021-10-15 08:14:03 +00:00
George Kiagiadakis
b8979e7434 wp-uninstalled.sh: don't shift after -b, there's a generic shift below 2021-06-16 19:45:36 +03:00
George Kiagiadakis
3b144fa9ca Add a wp-uninstalled.sh script for easily running programs uninstalled
Similar to pw-uninstalled.sh, but without an interactive shell
2021-04-26 09:59:33 +03:00