Commit a2f5292c authored by Emil Velikov's avatar Emil Velikov Committed by Emil Velikov

glsl/glcpp/tests: reinstate srcdir/abs_builddir blurb

Bring back the "detection" of the said variables, to allow
standalone execution.

Fixes: db8cd8e3 ("glcpp/tests: Convert shell scripts to a python
Cc: Dylan Baker <>
Signed-off-by: Emil Velikov's avatarEmil Velikov <>
Reviewed-by: Dylan Baker's avatarDylan Baker <>
parent 87cebace
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`
cd `dirname "$0"`
# Should point to `dirname Makefile` equivalent to the above.
$PYTHON2 $srcdir/glsl/glcpp/tests/ $abs_builddir/glsl/glcpp/glcpp $srcdir/glsl/glcpp/tests --unix --windows --oldmac --bizarro
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment