summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/mpv-config3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/mpv-config b/scripts/mpv-config
index 7c71b27..4538521 100755
--- a/scripts/mpv-config
+++ b/scripts/mpv-config
@@ -1,12 +1,13 @@
#!/bin/sh
set -e
+BUILD="$(pwd)"
+
USER_OPTS="$@"
if test -f "$BUILD"/mpv_options ; then
USER_OPTS="$(cat "$BUILD"/mpv_options) $USER_OPTS"
fi
OPTIONS="$USER_OPTS"
-BUILD="$(pwd)"
cd "$BUILD"/mpv
PKG_CONFIG_PATH="$BUILD"/build_libs/lib/pkgconfig ./waf configure $OPTIONS "$@"