stk-code_catmod/data/shaders/check.sh
nixt 5113dc3337 SVN messed up data/shaders in my branch. 76 files in local copy, 21 on SF. Re-adding folder to branch.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14686 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-09 13:11:09 +00:00

26 lines
340 B
Bash

#!/bin/sh
#
# Run a syntax check on all the shaders.
#
# The utility glslopt may be gotten from github.com/clbr/glsl-optimizer.
out() {
rm -f *.out
echo Failed: $1
exit 1
}
for vert in *.vert; do
glslopt -v $vert
[ $? -ne 0 ] && out $vert
done
for frag in *.frag; do
glslopt -f $frag
[ $? -ne 0 ] && out $frag
done
rm -f *.out