John Kessenich | d627502 | 2013-11-07 01:48:13 +0000 | [diff] [blame] | 1 | #! /bin/bash |
| 2 | |
| 3 | svn update |
| 4 | |
| 5 | rm -f StandAlone/glslangValidator |
| 6 | rm -f Test/glslangValidator |
| 7 | rm -f glslang/MachineIndependent/lib/libglslang.so |
| 8 | rm -f Install/Linux/libglslang.so |
| 9 | rm -f Install/Linux/glslangValidator |
| 10 | |
| 11 | cd StandAlone |
| 12 | make clean |
| 13 | cd ../glslang/MachineIndependent |
| 14 | make clean |
| 15 | cd ../.. |
| 16 | |
| 17 | # build the StandAlone app and all it's dependencies |
| 18 | make -C StandAlone |
| 19 | |
| 20 | # so we can find the shared library |
| 21 | #LD_LIBRARY_PATH=`pwd`/glslang/MachineIndependent/lib |
| 22 | #export LD_LIBRARY_PATH |
| 23 | |
| 24 | # install |
| 25 | cd Install/Linux |
| 26 | ./install |
John Kessenich | 76ea74a | 2013-12-17 00:28:00 +0000 | [diff] [blame] | 27 | cp glslangValidator ../../Test |
| 28 | LD_LIBRARY_PATH=/usr/local/lib |
| 29 | export LD_LIBRARY_PATH |
John Kessenich | d627502 | 2013-11-07 01:48:13 +0000 | [diff] [blame] | 30 | |
| 31 | # run using test data |
John Kessenich | d627502 | 2013-11-07 01:48:13 +0000 | [diff] [blame] | 32 | cd ../../Test |
| 33 | chmod +x runtests |
| 34 | ./runtests |