summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-04-18 20:09:54 +0200
committerwm4 <wm4@nowhere>2014-04-18 20:09:54 +0200
commit0bc60eb9e32b66430954a9c978c6eb4f1fa4f02d (patch)
treeac39f94607a2f626c552f752f4b7069489faf975
parenta460a64c61eea321012638d06b9f27511984e296 (diff)
downloadmpv-build-0bc60eb9e32b66430954a9c978c6eb4f1fa4f02d.tar.bz2
mpv-build-0bc60eb9e32b66430954a9c978c6eb4f1fa4f02d.tar.xz
Fix previous commit
Was untested, is still untested.
-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 "$@"