Merge branch 'master' of git://git.xonotic.org/xonotic/xonotic
[xonotic/xonotic.git] / misc / tools / update-shaderlists
1 #!/bin/sh
2
3 for X in "$PWD"/data/*/scripts; do
4         cd "$X"
5         for X in *.shader; do
6                 if [ -f "$X" ]; then
7                         ls *.shader | sed 's/\.shader$//' > shaderlist.txt
8                         git add shaderlist.txt
9                         break
10                 fi
11         done
12 done