OSDN Git Service

nv50: Remove nv0_ir_from_sm4.*
[android-x86/external-mesa.git] / src / gallium / state_trackers / d3d1x / d3d1xshader / gen-header.sh
1 #!/bin/bash
2 for i in "$@"; do
3         n=$(basename "$i" .txt|sed -e 's/s$//')
4         if test "$n" == "shortfile"; then continue; fi
5         echo "enum sm4_$n"
6         echo "{"
7         while read j; do
8                 echo $'\t'"SM4_${n}_$j",
9         done < "$i" |tr '[a-z]' '[A-Z]'|tr ' ' '_'
10         echo $'\t'"SM4_${n}_COUNT"|tr '[a-z]' '[A-Z]'
11         echo "};"
12         echo
13 done