mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-17 18:18:06 +02:00
Pretty much all of the scripts are python2+3 compatible. Check and allow using python3, while adjusting the PYTHON2 refs. Note: - python3.4 is used as it's the earliest supported version - python2 chosen prior to python3 v2: use python2 by default Cc: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Acked-by: Eric Engestrom <eric.engestrom@intel.com>
16 lines
571 B
Bash
Executable file
16 lines
571 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if [ -z "$srcdir" -o -z "$abs_builddir" ]; then
|
|
echo ""
|
|
echo "Warning: you're invoking the script manually and things may fail."
|
|
echo "Attempting to determine/set srcdir and abs_builddir variables."
|
|
echo ""
|
|
|
|
# Should point to `dirname Makefile.glsl.am`
|
|
srcdir=./../../../
|
|
cd `dirname "$0"`
|
|
# Should point to `dirname Makefile` equivalent to the above.
|
|
abs_builddir=`pwd`/../../../
|
|
fi
|
|
|
|
$PYTHON $srcdir/glsl/glcpp/tests/glcpp_test.py $abs_builddir/glsl/glcpp/glcpp $srcdir/glsl/glcpp/tests --unix --windows --oldmac --bizarro
|