move shaderlist.txt into the individual dirs again now that we can
authorRudolf Polzer <divverent@alientrap.org>
Thu, 24 Jun 2010 15:41:55 +0000 (17:41 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Thu, 24 Jun 2010 15:41:55 +0000 (17:41 +0200)
data/scripts/shaderlist.txt [deleted file]
misc/tools/update-shaderlists [new file with mode: 0755]

diff --git a/data/scripts/shaderlist.txt b/data/scripts/shaderlist.txt
deleted file mode 100644 (file)
index 73b57b5..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-common
-exosystem
-exx
-trak5x
-trak4x
-facility114x
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