these bat files will cycle through all ssl files in the directory and compile them all,put compile.bat in the directory that has the ssl files you want to compile(works from any directory),change CompilerDirectory= to the directory that has your compiler files in it,change wcc386 entry to your pre-compiler
compile.bat
p.bat
these were written in win7
figured maybe some other people will find them useful
Nirran
compile.bat
Code:
set CurrentDirectory=%CD\%
set CompilerDirrectory=C:\Game Files\Fallout 2\Scripting\sFall\compile\
for %%X in (*.ssl) do (
call "%CompilerDirrectory%p.bat" %%X
)
p.bat
Code:
if not exist %1 goto DONE
del %CurrentDirrectory%temp.c
del %CurrentDirrectory%temp.i
del %CurrentDirrectory%temp.ssl
del %CurrentDirrectory%temp.int
del %CurrentDirrectory%temp.err
del %CurrentDirrectory%errors.log
copy %1 %CurrentDirrectory%temp.c
"%CompilerDirrectory%wcc386" %CurrentDirrectory%temp.c /pc /fo=temp.i /w4
copy %CurrentDirrectory%temp.i %CurrentDirrectory%temp.ssl
"%CompilerDirrectory%compile.exe" %CurrentDirrectory%temp.ssl
IF errorlevel 1 goto PAUSE
copy "%CurrentDirrectory%temp.int" "%CompilerDirrectory%"
rename "%CompilerDirrectory%temp.int" %1
for %%X in (*.ssl) do (
rename "%CompilerDirrectory%*.ssl" *.int
)
copy "%CompilerDirrectory%*.int" %CurrentDirrectory%
del "%CompilerDirrectory%*.int"
del %CurrentDirrectory%temp.c
del %CurrentDirrectory%temp.i
del %CurrentDirrectory%temp.ssl
del %CurrentDirrectory%temp.int
del %CurrentDirrectory%temp.err
del %CurrentDirrectory%errors.log
goto DONE
:PAUSE
pause
:DONE
these were written in win7
figured maybe some other people will find them useful
Nirran