Merge branch 'master' of https://Governor-Tarkin@bitbucket.org/Governor-Tarkin/swg...
[swg-src.git] / tools / buildtre.btm
blob0686a54c1021af051f42fca8af23c1f70a7ade5e
1 @echo off
2 if not exist "common.cfg" goto error_win32
3 if "%1" == "" goto error_usage
4 if "%2" == "" goto error_usage
5 perl ..\..\tools\buildPatchTreeRsp.pl common.cfg patch_%1_%2.rsp %1..%2
6 ..\..\tools\TreeFileBuilder -r patch_%1_%2.rsp patch_%1_%2.tre
7 copy patch_%1_%2.tre p:\swo\swg_bootleg_builds\tre
8 echo searchTreeX=patch_%1_%2.tre >> p:\swo\swg_bootleg_builds\tre\common_tre.cfg
10 goto end
12 :error_win32
13 echo You must run this from the exe\win32 directory!
14 goto end
16 :error_usage
17 echo usage: BuildTre changelist1 changelist2
19 :end