Merge branch 'master' of https://Governor-Tarkin@bitbucket.org/Governor-Tarkin/swg...
[swg-src.git] / tools / ScanRsps.btm
blobfd3153efa7df8ead00e91755c47730db0eb1f352
1 @echo off
2 pushd ..\src\engine
3 set i=shared
4 gosub scanSub1
5 set i=client
6 gosub scanSub1
7 set i=server
8 gosub scanSub1
9 popd
11 pushd ..\src\game
12 set i=shared
13 gosub scanSub1
14 set i=client
15 gosub scanSub1
16 set i=server
17 gosub scanSub1
18 popd
20 goto end
22 :scanSub1
23 pushd %i
24 for /a:d j in (*) do (if "%@TRIM[%@LEFT[2, %j]]" != "." (gosub scanSub2))
25 popd
26 return
28 :scanSub2
29 pushd %j
30 for /a:d k in (*) do (if "%@TRIM[%@LEFT[2, %k]]" != "." (gosub scanSub3))
31 popd
32 return
34 :scanSub3
35 if not isdir %k\build\win32 goto missing
36 pushd %k\build\win32
38 :found
39 echo ----------
40 if not exist "includePaths.rsp" goto missingp
41 call ScanRsp includePaths.rsp %i/%j/%k/build/win32
42 popd
43 return
45 :missing
46 echo missing includePaths.rsp in %i/%j/%k/build/win32
47 return
49 :missingp
50 echo missing includePaths.rsp in %i/%j/%k/build/win32
51 popd
52 return
54 :end