summaryrefslogtreecommitdiffstats
path: root/scripts/test-libmpv
blob: 5ee4d22f83eae502b21f64a075466d8aa079b156 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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