2 @rem This file is to be used on includePaths.rsp files to check the validity of included folders
7 @rem echo %slIncludeFile
8 if not exist "%slIncludeFile" (echo %slIncludeFile not found & goto end)
10 set slFileLine=%@TRIM[%@LINE[%slIncludeFile, 0]]
11 set slInclude=%@INSTR[1, 8, %slFileLine]
12 if "%slInclude" == "#include" goto process
13 if "%slInclude" == "#ifndef" p4 edit %slIncludeFile
14 if "%slInclude" == "#error o" p4 delete %slIncludeFile
18 set slFileLine2=%@INSTR[17, 100, %slFileLine]
19 set slLineLength=%@LEN[%slFileLine2]
20 set slLine=%@LEFT[%slLineLength, %slFileLine2]
21 set slLine=%@REPLACE[/,\,%slLine]
22 set slLine=%@TRIM[%slLine]
24 if not exist "%slLine" (if not "%slLine" == "" (echo %2/%slIncludeFile & echo x "%slLine" & p4 %slMode %slIncludeFile))
28 echo skipping %slIncludeFile {%slInclude} [%slFileLine]
31 @rem cleanup variables