Merge branch 'master' of https://Governor-Tarkin@bitbucket.org/Governor-Tarkin/swg...
[swg-src.git] / tools / sd.btm
blob945e519a4acc5543a1a511afb08cdb9de1d7f189
1 @echo off
3 :LABEL_process
4 set INPATH=%_CWD
5 if "%@INDEX[%INPATH,\dsrc\]" != "-1" goto LABEL_data
6 if "%@INDEX[%INPATH,\data\]" != "-1" goto LABEL_dsrc
7 @rem echo %INPATH
8 @rem echo %@INDEX[%INPATH,\dsrc\]
9 @rem echo %@INDEX[%INPATH,\data\]
10 goto LABEL_end
12 :LABEL_data
13 set OUTPATH=%@REPLACE[\dsrc\,\data\,%INPATH]
14 cd %OUTPATH
15 goto LABEL_end
17 :LABEL_dsrc
18 set OUTPATH=%@REPLACE[\data\,\dsrc\,%INPATH]
19 cd %OUTPATH
20 goto LABEL_end
22 :LABEL_end