[657] | 1 | #!/bin/bash |
---|
| 2 | rm -R samples/refapp |
---|
| 3 | rm -R samples/scripts |
---|
| 4 | rm -R samples/src |
---|
| 5 | rm -R samples/include |
---|
| 6 | mkdir samples/scripts |
---|
| 7 | mkdir samples/refapp |
---|
| 8 | mkdir samples/refapp/scripts |
---|
| 9 | mkdir samples/src |
---|
| 10 | mkdir samples/include |
---|
| 11 | |
---|
| 12 | # Do the project files |
---|
| 13 | /bin/find ../../samples -iname *.dsp -exec cp \{\} samples/scripts \; |
---|
| 14 | /bin/find ../../samples -iname *.vcproj -exec cp \{\} samples/scripts \; |
---|
| 15 | /bin/find ../../samples -iname *_vc8.vcproj.user -exec cp \{\} samples/scripts \; |
---|
| 16 | cp ../../ReferenceApplication/BspCollision/scripts/*.dsp samples/scripts |
---|
| 17 | cp ../../ReferenceApplication/BspCollision/scripts/*.vcproj samples/scripts |
---|
| 18 | cp ../../ReferenceApplication/BspCollision/scripts/*_vc8.vcproj.user samples/scripts |
---|
| 19 | cp ../../ReferenceApplication/ReferenceAppLayer/scripts/*.dsp samples/refapp/scripts |
---|
| 20 | cp ../../ReferenceApplication/ReferenceAppLayer/scripts/*.vcproj samples/refapp/scripts |
---|
| 21 | rm samples/scripts/OgreGUIRenderer.dsp |
---|
| 22 | rm samples/scripts/OgreGUIRenderer.vcproj |
---|
| 23 | rm samples/scripts/OgreGUIRenderer_vc8.vcproj |
---|
| 24 | /bin/find samples/scripts/ -iname *.dsp -exec sed -i -f altersamples.sed \{\} \; |
---|
| 25 | /bin/find samples/scripts/ -iname *.vcproj -exec sed -i -f altersamples.sed \{\} \; |
---|
| 26 | /bin/find samples/scripts/ -iname *_vc8.vcproj.user -exec sed -i -f altersamples.sed \{\} \; |
---|
| 27 | /bin/find samples/refapp/scripts/ -iname *.dsp -exec sed -i -f alterrefapp.sed \{\} \; |
---|
| 28 | /bin/find samples/refapp/scripts/ -iname *.vcproj -exec sed -i -f alterrefapp.sed \{\} \; |
---|
| 29 | |
---|
| 30 | # Combine the include / src folders; easier to do here than in setup |
---|
| 31 | /bin/find ../../samples -iname *.cpp -exec cp \{\} samples/src \; |
---|
| 32 | /bin/find ../../samples -iname *.h -exec cp \{\} samples/include \; |
---|
| 33 | cp ../../ReferenceApplication/BspCollision/src/*.cpp samples/src |
---|
| 34 | |
---|
| 35 | # Copy and alter resources.cfg |
---|
| 36 | cp ../../Samples/Common/bin/Release/resources.cfg samples/ |
---|
| 37 | sed -i -e 's/\.\.\/\.\.\/\.\.\/Media/..\/..\/media/i' samples/resources.cfg |
---|