2010-05-10 16:21:10 -07:00
|
|
|
#!/bin/sh
|
2010-05-25 13:09:03 -07:00
|
|
|
|
2018-04-24 18:49:21 +01:00
|
|
|
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
|
|
|
|
|
|
2018-08-24 11:14:15 +01:00
|
|
|
$PYTHON2 $srcdir/glsl/glcpp/tests/glcpp_test.py $abs_builddir/glsl/glcpp/glcpp $srcdir/glsl/glcpp/tests --unix --windows --oldmac --bizarro
|