@echo off

cd \work
mkdir torout
cd torout
mkdir tornado
cd tornado
mkdir doc

cd \work\tornado\make
bpc -b alpha.pas
bpc -b cdate.pas
cdate
del cdate.exe

cd \work\tornado
bpc -b -ddebug tornado.pas
cd resource
call 4alpha

REM Копируем outgoing версию.

copy tornado.exe         \work\torout\tornado
copy tornado.msg         \work\torout\tornado
copy tornado.rus         \work\torout\tornado
copy tornado.eng         \work\torout\tornado
copy tornado.ovr         \work\torout\tornado
copy *.lng               \work\torout\tornado
copy doc\whatsnew.doc    \work\torout\tornado\doc
copy doc\tornado.doc     \work\torout\tornado\doc

mkdir \WORK\INST
cd \work\torout\tornado
\work\tornado\make\alpha.exe
del \work\tornado\make\alpha.exe
cd \work\tornado

cd \work
rmdir \work\torout\tornado
rmdir \work\torout
call \work\kill.bat