xonotic/misc/tools/update-shaderlists

13 lines
206 B
Bash
Executable File

#!/bin/sh
for X in "$PWD"/data/*/scripts; do
cd "$X"
for X in *.shader; do
if [ -f "$X" ]; then
ls *.shader | sed 's/\.shader$//' > shaderlist.txt
git add shaderlist.txt
break
fi
done
done