1b8e80941Smrg#!/bin/sh
2b8e80941Smrg
3b8e80941Smrgif [ -z "$srcdir" -o -z "$abs_builddir" ]; then
4b8e80941Smrg    echo ""
5b8e80941Smrg    echo "Warning: you're invoking the script manually and things may fail."
6b8e80941Smrg    echo "Attempting to determine/set srcdir and abs_builddir variables."
7b8e80941Smrg    echo ""
8b8e80941Smrg
9b8e80941Smrg    # Should point to `dirname Makefile.glsl.am`
10b8e80941Smrg    srcdir=./../../../
11b8e80941Smrg    cd `dirname "$0"`
12b8e80941Smrg    # Should point to `dirname Makefile` equivalent to the above.
13b8e80941Smrg    abs_builddir=`pwd`/../../../
14b8e80941Smrgfi
15b8e80941Smrg
16b8e80941Smrg$PYTHON $srcdir/glsl/glcpp/tests/glcpp_test.py $abs_builddir/glsl/glcpp/glcpp $srcdir/glsl/glcpp/tests --unix --windows --oldmac --bizarro
17