source: opengl-game/compile.sh@ cb6fabb

feature/imgui-sdl
Last change on this file since cb6fabb was cb6fabb, checked in by Dmitry Portnoy <dportnoy@…>, 3 years ago

Update the build instructions and makefile to work with OSX again

  • Property mode set to 100755
File size: 369 bytes
RevLine 
[187b0f5]1# TODO: Figure out why calling this from a makefile gives an error about shopt not being found
2
[4befb76]3OS=$(uname)
4
[c8c6da8]5shopt -s nullglob
6shopt -s extglob
7
8FILES=./!(*.spv)
9
10for f in $FILES
11do
12 shaderName=$(echo $f | sed 's/\.\/\(.*\)\..*/\1/')
13 shaderType=$(echo $f | sed 's/\.\/.*\.\(.*\)/\1/')
14 fOut="$shaderName-$shaderType.spv"
15
[187b0f5]16 glslangValidator -V $f -o $fOut
[c8c6da8]17done
Note: See TracBrowser for help on using the repository browser.