source: OGRE/trunk/ogrenew/SDK/Win32/copysamples.sh @ 657

Revision 657, 1.8 KB checked in by mattausch, 19 years ago (diff)

added ogre dependencies and patched ogre sources

Line 
1#!/bin/bash
2rm -R samples/refapp
3rm -R samples/scripts
4rm -R samples/src
5rm -R samples/include
6mkdir samples/scripts
7mkdir samples/refapp
8mkdir samples/refapp/scripts
9mkdir samples/src
10mkdir 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 \;
16cp ../../ReferenceApplication/BspCollision/scripts/*.dsp samples/scripts
17cp ../../ReferenceApplication/BspCollision/scripts/*.vcproj samples/scripts
18cp ../../ReferenceApplication/BspCollision/scripts/*_vc8.vcproj.user samples/scripts
19cp ../../ReferenceApplication/ReferenceAppLayer/scripts/*.dsp samples/refapp/scripts
20cp ../../ReferenceApplication/ReferenceAppLayer/scripts/*.vcproj samples/refapp/scripts
21rm samples/scripts/OgreGUIRenderer.dsp
22rm samples/scripts/OgreGUIRenderer.vcproj
23rm 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 \;
33cp ../../ReferenceApplication/BspCollision/src/*.cpp samples/src
34
35# Copy and alter resources.cfg
36cp ../../Samples/Common/bin/Release/resources.cfg samples/
37sed -i -e 's/\.\.\/\.\.\/\.\.\/Media/..\/..\/media/i' samples/resources.cfg
Note: See TracBrowser for help on using the repository browser.