Batch file to create a clean copy of starter.fps
by Neil Marshall · in Torque Game Engine · 10/07/2005 (8:55 am) · 6 replies
I just created this batch file to create a copy of the example folder with all the crap cut out. I just do a basic copy of the \data folder though, so you will still have to keep that clean yourself.
:: copy the main set of files over to the stand alone directory. mkdir standalone\ copy example\torqueDemo.exe standalone\ copy example\glu2d3d.dll standalone\ copy example\main.cs standalone\ copy example\openAL32.dll standalone\ copy example\opengl2d3d.dll standalone\ :: Common folder mkdir standalone\common mkdir standalone\common\client mkdir standalone\common\server mkdir standalone\common\help mkdir standalone\common\lighting mkdir standalone\common\UI mkdir standalone\common\UI\cache copy example\common\*.dso standalone\common copy example\common\client\*.dso standalone\common\client copy example\common\server\*.dso standalone\common\server copy example\common\help\*.hfl standalone\common\help copy example\common\lighting\*.png standalone\common\lighting copy example\common\UI\*.png standalone\common\UI copy example\common\UI\*.dso standalone\common\UI copy example\common\UI\cache\*.gft standalone\common\UI\cache :: Starter.fps mkdir standalone\starter.fps mkdir standalone\starter.fps\client mkdir standalone\starter.fps\client\scripts mkdir standalone\starter.fps\client\ui mkdir standalone\starter.fps\server mkdir standalone\starter.fps\server\scripts copy example\starter.fps\*.dso standalone\starter.fps copy example\starter.fps\client\*.dso standalone\starter.fps\client copy example\starter.fps\client\scripts\*.dso standalone\starter.fps\client\scripts copy example\starter.fps\client\ui\*.dso standalone\starter.fps\client\ui copy example\starter.fps\client\ui\*.jpg standalone\starter.fps\client\ui copy example\starter.fps\client\ui\*.png standalone\starter.fps\client\ui copy example\starter.fps\client\ui\*.hfl standalone\starter.fps\client\ui copy example\starter.fps\server\*.dso standalone\starter.fps\server copy example\starter.fps\server\scripts\*.dso standalone\starter.fps\server\scripts :: Do a dirty copy of the data folder. mkdir standalone\starter.fps\data xcopy /s example\starter.fps\data standalone\starter.fps\data
#2
10/07/2005 (9:39 am)
But if you do *.* You also copy linking files, which add tons of size. I think he knew about it, if you look down he uses wildcards.
#3
Neil doesn't want to copy everything.
He just wants what is needed to make the final version of the game, to be able to distribute it.
He doesn't wan the *.cs files and other development files.
10/07/2005 (9:42 am)
Theo,Neil doesn't want to copy everything.
He just wants what is needed to make the final version of the game, to be able to distribute it.
He doesn't wan the *.cs files and other development files.
#4
Hehe, it's funny, I was going to correct Neil and mention that it should be "cp" not "copy", but then I realized I've spent too much time with BSD so I'll just be quiet now :P
10/07/2005 (9:42 am)
@Theo: Last I checked, copy doesn't have a recursive option. You always had to use xcopy... or, is that like, a new thing in Windows XP/2000 that I never use (because who uses the console in Windows anyway??)Hehe, it's funny, I was going to correct Neil and mention that it should be "cp" not "copy", but then I realized I've spent too much time with BSD so I'll just be quiet now :P
#5
10/07/2005 (10:15 am)
The other advantage to doing it manually is that you can create random backup directories for quicktests and they won't pollute your "release" build.
#6
10/07/2005 (10:57 am)
Yeah I do an xcopy on the data folder. I guess I could do an xcopy for *.dso that might remove a few lines.
Torque Owner Theo Brinkman