diff options
Diffstat (limited to 'scripts/test-libmpv')
-rwxr-xr-x | scripts/test-libmpv | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/test-libmpv b/scripts/test-libmpv new file mode 100755 index 0000000..5ee4d22 --- /dev/null +++ b/scripts/test-libmpv @@ -0,0 +1,15 @@ +#!/bin/sh + +# This script returns whether libmpv is to be built. + +set -e + +BUILD="$(pwd)" + +USER_OPTS="$@" +if test -f "$BUILD"/mpv_options ; then + if cat "$BUILD"/mpv_options | grep -e '--enable-libmpv' > /dev/null ; then + exit 0 + fi +fi +exit 1 |