Manually running the command 4 times every time you want to touch the
scripts is terrible.
---
 tests/spec/glsl-1.10/variable-index-regen.sh | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100755 tests/spec/glsl-1.10/variable-index-regen.sh

diff --git a/tests/spec/glsl-1.10/variable-index-regen.sh 
b/tests/spec/glsl-1.10/variable-index-regen.sh
new file mode 100755
index 0000000..3df8082
--- /dev/null
+++ b/tests/spec/glsl-1.10/variable-index-regen.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+#
+# Run this script with ./variable-index-regen.sh to regenerate all the
+# variable-indexing scripts.
+
+(cd execution/variable-indexing &&
+       ../../../glsl-1.10/variable-index-read.sh 1.10 &&
+       ../../../glsl-1.10/variable-index-write.sh 1.10)
+
+(cd ../glsl-1.20/execution/variable-indexing &&
+       ../../../glsl-1.10/variable-index-read.sh 1.20 &&
+       ../../../glsl-1.10/variable-index-write.sh 1.20)
-- 
2.1.3

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to