mirror of
https://github.com/ioquake/ioq3.git
synced 2025-05-30 16:41:31 +00:00
20 lines
522 B
Bash
Executable file
20 lines
522 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if [[ ! -x "./bintoc" ]]
|
|
then
|
|
gcc bintoc.c -o bintoc
|
|
fi
|
|
|
|
find -type f -name "*.vert" | \
|
|
while read f; do glslangValidator -V ${f} -o "Compiled/${f%.*}.vspv"; done
|
|
|
|
find -type f -name "*.frag" | \
|
|
while read f; do glslangValidator -V ${f} -o "Compiled/${f%.*}.fspv"; done
|
|
|
|
|
|
|
|
find -type f -name "*.vspv" | \
|
|
while read f; do ./bintoc ${f} `basename ${f%.*}`_vert_spv > ${f%.*}_vert.c; done
|
|
|
|
find -type f -name "*.fspv" | \
|
|
while read f; do ./bintoc ${f} `basename ${f%.*}`_frag_spv > ${f%.*}_frag.c; done
|