]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - misc/tools/update-shaderlists
move shaderlist.txt into the individual dirs again now that we can
[xonotic/xonotic.git] / misc / tools / update-shaderlists
diff --git a/misc/tools/update-shaderlists b/misc/tools/update-shaderlists
new file mode 100755 (executable)
index 0000000..788d929
--- /dev/null
@@ -0,0 +1,12 @@
+#!/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