os2snap.cmd 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763
  1. @echo off
  2. rem *** $Id$
  3. rem *** Batch file for creating of FPC snapshot for OS/2.
  4. rem *** FPCDIR variable must be set to your base FPC directory and
  5. rem *** must _not_ contain forward slashes (only backslashes allowed).
  6. rem *** Your compiler (PPC386.EXE per default) and AS.EXE must be somewhere
  7. rem *** on PATH (unless you set path to them explicitly using FPCTOOLS
  8. rem *** variable, which must end with \ if present). However, be sure which
  9. rem *** version of AS.EXE, etc. gets called if several such files exist.
  10. rem *** One of the following parameters may be specified: rtl, compiler,
  11. rem *** both, cycle and snapshot ("snapshot" being the default), optionally
  12. rem *** followed by parameters "debug" (causing debugging symbols not to be
  13. rem *** stripped from the created compiler), "release" (code optimization,
  14. rem *** debug info stripped out, no SNAPSHOT.TXT file generated), and
  15. rem *** "verbose" (compiler messages are shown). Parameters "debug" and
  16. rem *** "release" are mutually exclusive (the later one is used if both are
  17. rem *** present). Parameter "ppas" forces only PPAS script to be created by
  18. rem *** the compiler and called manually afterwards. This might help to
  19. rem *** resolve LD crashes due to low stack (e.g. under WinXX). Parameter
  20. rem *** "continue" disables the standard cleanup (deleting possible
  21. rem *** previously compiled versions), so compilation can continue after
  22. rem *** previous unsuccessful attempt. All the parameters _must_ be in
  23. rem *** lowercase to be recognized correctly, unless running under 4os2
  24. rem *** or compatible (e.g. 4nt under WinNT).
  25. rem *** Meaning of basic parameters:
  26. rem *** rtl .......... RTL only, _no_ snapshot created
  27. rem *** compiler ..... compiler only, _no_ snapshot created
  28. rem *** both ......... both RTL and compiler, _no_ snapshot created
  29. rem *** snapshot ..... both RTL and compiler, snapshot _is_ created
  30. rem *** cycle ........ RTL and compiler compiled, the resulting compiler
  31. rem *** is then copied to %FPCTOOLS% (BIN\OS2 by default)
  32. rem *** backing up possible previous version to ppc386.x),
  33. rem *** the whole procedure is started again (RTL is compiled
  34. rem *** with the new compiler version this time) and after
  35. rem *** another cycle (to make sure the new compiler works
  36. rem *** correctly) the snapshot is finally created
  37. rem *** PPC386.EXE is used for the compilation, unless a different compiler
  38. rem *** name is specified in FPCCOMPILER variable. In any case, the
  39. rem *** compiler should reside in the same directory as the other required
  40. rem *** tools (AS.EXE, LD.EXE, etc.).
  41. rem *** Environment variable OTHEROPTS may be used to specify additional
  42. rem *** switches (e.g. setting level of verbosity, etc.).
  43. rem *** Environment variable FPCLOG can specify a file for error logging
  44. rem *** (full path needed). Please, note, that the previous contents of
  45. rem *** file will be overwritten each time the batch file is run.
  46. rem *** Environment variable VERBOSEOPT may be used to specify level of
  47. rem *** verbosity used with "verbose" parameter (-va by default, i.e. show
  48. rem *** everything). Another way would be specifying this in OTHEROPTS
  49. rem *** variable (see above) and not using "verbose" at all.
  50. rem *** Environment variable FPCSNAPPATH may be used to specify path, where
  51. rem *** the compiled files should be placed and possibly the ZIP file
  52. rem *** created.
  53. set FPCERRLOG=%FPCLOG%
  54. if .%FPCERRLOG% == . set FPCERRLOG=CON
  55. echo *"Makefile" for OS/2: > %FPCERRLOG%
  56. echo *Setting up environment ... >> %FPCERRLOG%
  57. rem Check whether FPCDIR exists
  58. if .%FPCDIR% == . goto ErrorDir
  59. if exist %FPCDIR% goto DirOK
  60. if exist %FPCDIR%\. goto DirOK
  61. if exist %FPCDIR%\makefile goto DirOK
  62. if exist %FPCDIR%\COMPILER\pp.pas goto DirOK
  63. if exist %FPCDIR%\SOURCE\makefile goto DirOK
  64. if exist %FPCDIR%\SOURCE\COMPILER\pp.pas goto DirOK
  65. if exist %FPCDIR%\SRC\makefile goto DirOK
  66. if exist %FPCDIR%\SRC\COMPILER\pp.pas goto DirOK
  67. goto ErrorDir
  68. :DirOK
  69. rem Set path to the source files
  70. if exist %FPCDIR%\SOURCE goto SrcExists
  71. if exist %FPCDIR%\SOURCE\. goto SrcExists
  72. if exist %FPCDIR%\SOURCE\makefile goto SrcExists
  73. if exist %FPCDIR%\SOURCE\COMPILER\pp.pas goto SrcExists
  74. if exist %FPCDIR%\SRC goto Src2Exists
  75. if exist %FPCDIR%\SRC\. goto Src2Exists
  76. if exist %FPCDIR%\SRC\makefile goto Src2Exists
  77. if exist %FPCDIR%\SRC\COMPILER\pp.pas goto Src2Exists
  78. set FPCSRC=%FPCDIR%
  79. goto SnapDir
  80. :SrcExists
  81. set FPCSRC=%FPCDIR%\SOURCE
  82. goto SnapDir
  83. :Src2Exists
  84. set FPCSRC=%FPCDIR%\SRC
  85. :SnapDir
  86. set FPCSNAP=%FPCSNAPPATH%
  87. if .%FPCSNAP% == . set FPCSNAP=%FPCSRC%\SNAPSHOT
  88. if exist %FPCSNAP% goto SnapExists
  89. echo *Creating directories for the snapshot ... >> %FPCERRLOG%
  90. mkdir %FPCSNAP% >> %FPCERRLOG%
  91. if exist %FPCSNAP% goto SnapExists
  92. echo *Error: Cannot create the directory %FPCSNAP%!!
  93. goto End
  94. :SnapExists
  95. if exist %FPCSNAP%\BIN goto BinExists
  96. echo *Creating directories for the snapshot (binaries) ... >> %FPCERRLOG%
  97. mkdir %FPCSNAP%\BIN >> %FPCERRLOG%
  98. if exist %FPCSNAP%\BIN goto BinExists
  99. echo *Error: Cannot create the directory %FPCSNAP%\BIN!!
  100. goto End
  101. :BinExists
  102. set FPCSNAPBIN=%FPCSNAP%\BIN\OS2
  103. if exist %FPCSNAPBIN% goto BinOS2Exists
  104. echo *Creating directories for the snapshot (binaries for OS/2) ... >> %FPCERRLOG%
  105. mkdir %FPCSNAPBIN% >> %FPCERRLOG%
  106. if exist %FPCSNAPBIN% goto BinOS2Exists
  107. echo *Error: Cannot create the directory %FPCSNAPBIN%!!
  108. goto End
  109. :BinOS2Exists
  110. set FPCSNAPMSG=%FPCSNAP%\MSG
  111. if exist %FPCSNAPMSG% goto MsgExists
  112. echo *Creating directories for the snapshot (messages) ... >> %FPCERRLOG%
  113. mkdir %FPCSNAPMSG% >> %FPCERRLOG%
  114. if exist %FPCSNAPMSG% goto MsgExists
  115. echo *Error: Cannot create the directory %FPCSNAPMSG%!!
  116. goto End
  117. :MsgExists
  118. if exist %FPCSNAP%\UNITS goto UnitsExists
  119. echo *Creating directories for the snapshot (units) ... >> %FPCERRLOG%
  120. mkdir %FPCSNAP%\UNITS >> %FPCERRLOG%
  121. if exist %FPCSNAP%\UNITS goto UnitsExists
  122. echo *Error: Cannot create the directory %FPCSNAP%\UNITS!!
  123. goto End
  124. :UnitsExists
  125. if exist %FPCSNAP%\UNITS\OS2 goto UnitsOS2Exists
  126. echo *Creating directories for the snapshot (units for OS/2) ... >> %FPCERRLOG%
  127. mkdir %FPCSNAP%\UNITS\OS2 >> %FPCERRLOG%
  128. if exist %FPCSNAP%\UNITS\OS2 goto UnitsOS2Exists
  129. echo *Error: Cannot create the directory %FPCSNAP%\UNITS\OS2!!
  130. goto End
  131. :UnitsOS2Exists
  132. set FPCSNAPRTL=%FPCSNAP%\UNITS\OS2\RTL
  133. if exist %FPCSNAPRTL% goto OS2RTLExists
  134. echo *Creating directories for the snapshot (units for OS/2 RTL) ... >> %FPCERRLOG%
  135. mkdir %FPCSNAPRTL% >> %FPCERRLOG%
  136. if exist %FPCSNAPRTL% goto OS2RTLExists
  137. echo *Error: Cannot create the directory %FPCSNAPRTL%!!
  138. goto End
  139. :OS2RTLExists
  140. set FPCSNAPDOC=%FPCSNAP%\DOC
  141. if exist %FPCSNAPDOC% goto SetOpts
  142. echo *Creating directories for the snapshot (documentation) ... >> %FPCERRLOG%
  143. mkdir %FPCSNAPDOC% >> %FPCERRLOG%
  144. if exist %FPCSNAPDOC% goto SetOpts
  145. echo *Error: Cannot create the directory %FPCSNAPDOC%!!
  146. goto End
  147. :SetOpts
  148. rem Path to file with options
  149. set OS2OPTF=%FPCSRC%\OS2SNAP.OPT
  150. rem Path for the OS/2 RTL
  151. set OS2RTL=%FPCSRC%\RTL\OS2
  152. rem Path for OS/2 RTL parts compiled from common sources
  153. set OS2RTLC=%FPCSRC%\RTL\INC
  154. rem Path for OS/2 RTL parts compiled from processor dependent sources
  155. set OS2RTLP=%FPCSRC%\RTL\I386
  156. rem Path for OS/2 RTL parts for Object Pascal extensions
  157. set OS2RTLO=%FPCSRC%\RTL\OBJPAS
  158. rem Path to the compiler source
  159. set COMPSPATH=%FPCSRC%\COMPILER
  160. rem Option to skip the default configuration file
  161. set SKIPCFG=-n
  162. rem Common options for OS/2 target
  163. set OS2OPT1=-TOS2
  164. set OS2OPT2=-dGDB
  165. set OS2OPT3=-dI386
  166. set OS2OPT4=-Sg
  167. rem "Release" options (optimizations, strip debug symbols)
  168. set RELEASEOPT1=-OG3p3
  169. set RELEASEOPT2=-Xs
  170. set DORELEASE=
  171. rem "Debug" options (add debug symbols, do all code generation checks)
  172. set DEBUGOPT1=-g
  173. set DEBUGOPT2=-Crtoi
  174. rem "Verbose" options
  175. if .%VERBOSEOPT% == . set VERBOSEOPT=-va
  176. set DOVERBOSE=
  177. rem Place for debug or release options, empty by default
  178. set CURRENTOPT1=
  179. set CURRENTOPT2=
  180. rem Stack size for the compiler
  181. rem set STACKOPT=-Cs64500
  182. set STACKOPT=-Cs256000
  183. rem Path to object files
  184. set OS2OBJP=-Fo%OS2RTL%
  185. rem Path to units
  186. set OS2UNITP=-Fu%FPCSNAPRTL%
  187. rem Path to compiler units
  188. set COMPUNITP=-Fu%COMPSPATH%
  189. rem Path to compiler include files
  190. set COMPINCP=-Fi%COMPSPATH%
  191. rem Path to compiler object files
  192. set COMPOBJP=-Fo%COMPSPATH%
  193. rem Target path for RTL units
  194. set OS2UNITT=-FU%FPCSNAPRTL%
  195. rem Fake target path for executables for RTL compilation (path for PPAS)
  196. set OS2UNITE=-FE%FPCSNAPRTL%
  197. rem Target path for executables
  198. set OS2EXET=-FE%FPCSNAPBIN%
  199. rem Path to include files
  200. set OS2INCP=-Fi%OS2RTL%;%OS2RTLC%;%OS2RTLO%;%OS2RTLP%
  201. rem PPAS step disabled by default
  202. set FORCEPPAS=
  203. rem Name of the PPAS script
  204. set PPASNAME=PPAS.CMD
  205. rem Default compiler for the first compilation
  206. set CYCLE=0
  207. rem Do the cleanup by default
  208. set CONT=
  209. if not .%CYCLE% == .0 goto EnvErr
  210. set COMPILER=%FPCCOMPILER%
  211. if .%FPCCOMPILER% == . goto SetCompiler
  212. goto PrgFound
  213. :SetCompiler
  214. set COMPILER=PPC386.EXE
  215. :PrgFound
  216. echo *Searching for tools ... >> %FPCERRLOG%
  217. set REALTOOLS=%FPCTOOLS%
  218. if %FPCTOOLS%. == . goto SetupTools
  219. goto ToolsOK
  220. :SetupTools
  221. if exist %FPCDIR%\BIN\OS2\%COMPILER% goto Tools1
  222. if exist %FPCDIR%\BIN\OS2\%COMPILER%.EXE goto Tools1
  223. goto NoTools1
  224. :Tools1
  225. if exist %FPCDIR%\BIN\OS2\AS.EXE goto Tools1OK
  226. echo *Warning: %COMPILER% found, but AS.EXE isn't in the same directory! >> %FPCERRLOG%
  227. goto NoTools1
  228. :Tools1OK
  229. set REALTOOLS=%FPCDIR%\BIN\OS2\
  230. goto ToolsOK
  231. :NoTools1
  232. if exist %FPCDIR%\BIN\%COMPILER% goto Tools2
  233. if exist %FPCDIR%\BIN\%COMPILER%.EXE goto Tools2
  234. goto NoTools2
  235. :Tools2
  236. if exist %FPCDIR%\BIN\AS.EXE goto Tools2OK
  237. echo *Warning: %COMPILER% found, but AS.EXE isn't in the same directory! >> %FPCERRLOG%
  238. goto NoTools2
  239. :Tools2OK
  240. set REALTOOLS=%FPCDIR%\BIN\
  241. goto ToolsOK
  242. :NoTools2
  243. echo *Warning: Cannot locate your %COMPILER% and AS.EXE, make sure they're on PATH! >> %FPCERRLOG%
  244. :ToolsOK
  245. echo *Checking parameters >> %FPCERRLOG%
  246. set PARAMS=%1
  247. if .%PARAMS% == . set PARAMS=snapshot
  248. if not %@EVAL[0] == 0 goto ParLoop
  249. set PARAMS=%@LOWER[%PARAMS%]
  250. :ParLoop
  251. shift
  252. if .%1 == . goto NoPars
  253. if %@EVAL[0] == 0 goto Shl1
  254. if %1 == debug set CURRENTOPT1=%DEBUGOPT1%
  255. if %1 == debug set CURRENTOPT2=%DEBUGOPT2%
  256. if %1 == release set CURRENTOPT1=%RELEASEOPT1%
  257. if %1 == release set CURRENTOPT2=%RELEASEOPT2%
  258. if %1 == release set DORELEASE=1
  259. if %1 == verbose set DOVERBOSE=1
  260. if %1 == ppas set FORCEPPAS=1
  261. if %1 == continue set CONT=1
  262. goto ParLoop
  263. :Shl1
  264. if %@LOWER[%1] == debug set CURRENTOPT1=%DEBUGOPT1%
  265. if %@LOWER[%1] == debug set CURRENTOPT2=%DEBUGOPT2%
  266. if %@LOWER[%1] == release set CURRENTOPT1=%RELEASEOPT1%
  267. if %@LOWER[%1] == release set CURRENTOPT2=%RELEASEOPT2%
  268. if %@LOWER[%1] == release set DORELEASE=1
  269. if %@LOWER[%1] == verbose set DOVERBOSE=1
  270. if %@LOWER[%1] == ppas set FORCEPPAS=1
  271. if %@LOWER[%1] == continue set CONT=1
  272. goto ParLoop
  273. :NoPars
  274. if %PARAMS% == clean goto CleanRTL
  275. if %PARAMS% == both goto CleanRTL
  276. if %PARAMS% == snapshot goto CleanRTL
  277. if %PARAMS% == rtl goto CleanRTL
  278. if %PARAMS% == cycle goto CleanRTL
  279. if %PARAMS% == compiler goto CleanCompiler
  280. echo *Error: Unknown parameter - %PARAMS% >> %FPCERRLOG%
  281. goto End
  282. :CleanRTL
  283. if .%CONT% == .1 goto ContClRTL
  284. if %@EVAL[0] == 0 goto JPCleanRTL
  285. echo *Cleaning up the RTL (error messages are OK here) ... >> %FPCERRLOG%
  286. del %OS2OPTF% >> %FPCERRLOG%
  287. del %OS2RTL%\*.ppo >> %FPCERRLOG%
  288. del %OS2RTL%\*.oo2 >> %FPCERRLOG%
  289. del %OS2RTL%\ppas.bat >> %FPCERRLOG%
  290. del %OS2RTL%\ppas.cmd >> %FPCERRLOG%
  291. del %OS2RTL%\link.res >> %FPCERRLOG%
  292. del %FPCSNAPRTL%\*.ppo >> %FPCERRLOG%
  293. del %FPCSNAPRTL%\*.oo2 >> %FPCERRLOG%
  294. del %FPCSNAPRTL%\ppas.bat >> %FPCERRLOG%
  295. del %FPCSNAPRTL%\ppas.cmd >> %FPCERRLOG%
  296. del %FPCSNAPRTL%\link.res >> %FPCERRLOG%
  297. goto ContClRTL
  298. :JPCleanRTL
  299. echo *Cleaning up the RTL ... >> %FPCERRLOG%
  300. del %OS2OPTF% >& nul >> %FPCERRLOG%
  301. del %OS2RTL%\*.ppo >& nul >> %FPCERRLOG%
  302. del %OS2RTL%\*.oo2 >& nul >> %FPCERRLOG%
  303. del %OS2RTL%\ppas.bat >& nul >> %FPCERRLOG%
  304. del %OS2RTL%\ppas.cmd >& nul >> %FPCERRLOG%
  305. del %OS2RTL%\link.res >& nul >> %FPCERRLOG%
  306. del %FPCSNAPRTL%\*.ppo >& nul >> %FPCERRLOG%
  307. del %FPCSNAPRTL%\*.oo2 >& nul >> %FPCERRLOG%
  308. del %FPCSNAPRTL%\ppas.bat >& nul >> %FPCERRLOG%
  309. del %FPCSNAPRTL%\ppas.cmd >& nul >> %FPCERRLOG%
  310. del %FPCSNAPRTL%\link.res >& nul >> %FPCERRLOG%
  311. :ContClRTL
  312. if %PARAMS% == rtl goto Branches
  313. :CleanCompiler
  314. if .%CONT% == .1 goto ContClComp
  315. if %@EVAL[0] == 0 goto JPCleanComp
  316. echo *Cleaning up the compiler (error messages are OK here) ... >> %FPCERRLOG%
  317. del %OS2OPTF% >> %FPCERRLOG%
  318. del %COMPSPATH%\*.ppo >> %FPCERRLOG%
  319. del %COMPSPATH%\*.oo2 >> %FPCERRLOG%
  320. del %COMPSPATH%\pp >> %FPCERRLOG%
  321. del %COMPSPATH%\pp.exe >> %FPCERRLOG%
  322. del %COMPSPATH%\ppc386.exe >> %FPCERRLOG%
  323. del %COMPSPATH%\ppas.bat >> %FPCERRLOG%
  324. del %COMPSPATH%\ppas.cmd >> %FPCERRLOG%
  325. del %COMPSPATH%\link.res >> %FPCERRLOG%
  326. del %FPCSNAPBIN%\*.ppo >> %FPCERRLOG%
  327. del %FPCSNAPBIN%\*.oo2 >> %FPCERRLOG%
  328. del %FPCSNAPBIN%\pp >> %FPCERRLOG%
  329. del %FPCSNAPBIN%\pp.exe >> %FPCERRLOG%
  330. del %FPCSNAPBIN%\ppc386.exe >> %FPCERRLOG%
  331. del %FPCSNAPBIN%\ppas.bat >> %FPCERRLOG%
  332. del %FPCSNAPBIN%\ppas.cmd >> %FPCERRLOG%
  333. del %FPCSNAPBIN%\link.res >> %FPCERRLOG%
  334. goto ContClComp
  335. :JPCleanComp
  336. echo *Cleaning up the compiler ... >> %FPCERRLOG%
  337. del %OS2OPTF% >& nul >> %FPCERRLOG%
  338. del %COMPSPATH%\*.ppo >& nul >> %FPCERRLOG%
  339. del %COMPSPATH%\*.oo2 >& nul >> %FPCERRLOG%
  340. del %COMPSPATH%\pp >& nul >> %FPCERRLOG%
  341. del %COMPSPATH%\pp.exe >& nul >> %FPCERRLOG%
  342. del %COMPSPATH%\ppc386.exe >& nul >> %FPCERRLOG%
  343. del %COMPSPATH%\ppas.bat >& nul >> %FPCERRLOG%
  344. del %COMPSPATH%\ppas.cmd >& nul >> %FPCERRLOG%
  345. del %COMPSPATH%\link.res >& nul >> %FPCERRLOG%
  346. del %FPCSNAPBIN%\*.ppo >& nul >> %FPCERRLOG%
  347. del %FPCSNAPBIN%\*.oo2 >& nul >> %FPCERRLOG%
  348. del %FPCSNAPBIN%\pp >& nul >> %FPCERRLOG%
  349. del %FPCSNAPBIN%\pp.exe >& nul >> %FPCERRLOG%
  350. del %FPCSNAPBIN%\ppc386.exe >& nul >> %FPCERRLOG%
  351. del %FPCSNAPBIN%\ppas.bat >& nul >> %FPCERRLOG%
  352. del %FPCSNAPBIN%\ppas.cmd >& nul >> %FPCERRLOG%
  353. del %FPCSNAPBIN%\link.res >& nul >> %FPCERRLOG%
  354. :ContClComp
  355. if %PARAMS% == compiler goto Branches
  356. if %PARAMS% == both goto Branches
  357. :CleanSnapshot
  358. if .%CONT% == .1 goto ContClSnap
  359. if %@EVAL[0] == 0 goto JPCleanSnap
  360. echo *Deleting the old snapshot (error messages are OK here) ... >> %FPCERRLOG%
  361. del %FPCSNAPDOC%\*.txt >> %FPCERRLOG%
  362. del %FPCSNAPDOC%\*.htm* >> %FPCERRLOG%
  363. del %FPCSNAPDOC%\copying.* >> %FPCERRLOG%
  364. del %FPCSNAPMSG%\*.msg >> %FPCERRLOG%
  365. del %FPCSNAP%\baseemx.zip >> %FPCERRLOG%
  366. goto ContClSnap
  367. :JPCleanSnap
  368. echo *Deleting the old snapshot ... >> %FPCERRLOG%
  369. del %FPCSNAP%\baseemx.zip >& nul >> %FPCERRLOG%
  370. del %FPCSNAPDOC%\*.txt >& nul >> %FPCERRLOG%
  371. del %FPCSNAPDOC%\*.htm* >& nul >> %FPCERRLOG%
  372. del %FPCSNAPDOC%\copying.* >& nul >> %FPCERRLOG%
  373. del %FPCSNAPMSG%\*.msg >& nul >> %FPCERRLOG%
  374. :ContClSnap
  375. if %PARAMS% == clean goto End
  376. :Branches
  377. if %PARAMS% == both goto RTL1
  378. if %PARAMS% == snapshot goto RTL1
  379. if %PARAMS% == compiler goto Compiler
  380. if %PARAMS% == rtl goto RTL1
  381. if %PARAMS% == cycle goto RTL1
  382. echo *Error: Unknown parameter - %PARAMS% >> %FPCERRLOG%
  383. goto End
  384. :RTL1
  385. echo *Creating file with all the needed options and paths for RTL ... >> %FPCERRLOG%
  386. echo %SKIPCFG% > %OS2OPTF%
  387. echo %OS2OPT1% >> %OS2OPTF%
  388. echo %OS2OPT2% >> %OS2OPTF%
  389. echo %OS2OPT3% >> %OS2OPTF%
  390. echo %OS2OPT4% >> %OS2OPTF%
  391. echo %OS2OBJP% >> %OS2OPTF%
  392. echo %OS2UNITP% >> %OS2OPTF%
  393. echo %OS2INCP% >> %OS2OPTF%
  394. echo %OS2UNITT% >> %OS2OPTF%
  395. echo %OS2UNITE% >> %OS2OPTF%
  396. echo -FD%REALTOOLS% >> %OS2OPTF%
  397. if not .%CURRENTOPT1% == . echo %CURRENTOPT1% >> %OS2OPTF%
  398. if not .%CURRENTOPT2% == . echo %CURRENTOPT2% >> %OS2OPTF%
  399. if not .%FPCLOG% == . echo -Fe%FPCERRLOG% >> %OS2OPTF%
  400. if not .%FORCEPPAS% == . echo -a >> %OS2OPTF%
  401. if not .%FORCEPPAS% == . echo -s >> %OS2OPTF%
  402. if .%DOVERBOSE% == .1 echo %VERBOSEOPT% >> %OS2OPTF%
  403. if not .%DOVERBOSE% == .1 goto CompS1
  404. echo *Start of basic options used for compilation >> %FPCERRLOG%
  405. type %OS2OPTF% >> %FPCERRLOG%
  406. echo *End of basic options used for compilation >> %FPCERRLOG%
  407. if not .%OTHEROPTS% == . echo *User specified options: %OTHEROPTS% >> %FPCERRLOG%
  408. :CompS1
  409. echo *Assembling the helpers ... >> %FPCERRLOG%
  410. %REALTOOLS%\as -o %FPCSNAPRTL%\prt0.oo2 %OS2RTL%\prt0.as >> %FPCERRLOG%
  411. %REALTOOLS%\as -o %FPCSNAPRTL%\prt1.oo2 %OS2RTL%\prt1.as >> %FPCERRLOG%
  412. %REALTOOLS%\as -o %FPCSNAPRTL%\code2.oo2 %OS2RTL%\code2.as >> %FPCERRLOG%
  413. %REALTOOLS%\as -o %FPCSNAPRTL%\code3.oo2 %OS2RTL%\code3.as >> %FPCERRLOG%
  414. echo *Compiling the system unit ... >> %FPCERRLOG%
  415. %REALTOOLS%%COMPILER% @%OS2OPTF% -Us %OTHEROPTS% %OS2RTL%\SYSOS2.PAS
  416. if .%FORCEPPAS% == .1 echo *Calling the PPAS script >> %FPCERRLOG%
  417. if .%FORCEPPAS% == .1 call %FPCSNAPRTL%\%PPASNAME% >> %FPCERRLOG%
  418. echo *Compiling unit ObjPas ... >> %FPCERRLOG%
  419. %REALTOOLS%%COMPILER% @%OS2OPTF% %OTHEROPTS% %OS2RTLO%\OBJPAS.PP
  420. if .%FORCEPPAS% == .1 echo *Calling the PPAS script >> %FPCERRLOG%
  421. if .%FORCEPPAS% == .1 call %FPCSNAPRTL%\%PPASNAME% >> %FPCERRLOG%
  422. echo *Compiling unit Objects ... >> %FPCERRLOG%
  423. %REALTOOLS%%COMPILER% @%OS2OPTF% %OTHEROPTS% %OS2RTLC%\OBJECTS.PP
  424. if .%FORCEPPAS% == .1 echo *Calling the PPAS script >> %FPCERRLOG%
  425. if .%FORCEPPAS% == .1 call %FPCSNAPRTL%\%PPASNAME% >> %FPCERRLOG%
  426. echo *Compiling unit Strings ... >> %FPCERRLOG%
  427. %REALTOOLS%%COMPILER% @%OS2OPTF% %OTHEROPTS% %OS2RTLC%\STRINGS.PP
  428. if .%FORCEPPAS% == .1 echo *Calling the PPAS script >> %FPCERRLOG%
  429. if .%FORCEPPAS% == .1 call %FPCSNAPRTL%\%PPASNAME% >> %FPCERRLOG%
  430. echo *Compiling unit HeapTrace ... >> %FPCERRLOG%
  431. %REALTOOLS%%COMPILER% @%OS2OPTF% %OTHEROPTS% %OS2RTLC%\HEAPTRC.PP
  432. if .%FORCEPPAS% == .1 echo *Calling the PPAS script >> %FPCERRLOG%
  433. if .%FORCEPPAS% == .1 call %FPCSNAPRTL%\%PPASNAME% >> %FPCERRLOG%
  434. echo *Compiling unit DosCalls ... >> %FPCERRLOG%
  435. %REALTOOLS%%COMPILER% @%OS2OPTF% %OTHEROPTS% %OS2RTL%\DOSCALLS.PAS
  436. if .%FORCEPPAS% == .1 echo *Calling the PPAS script >> %FPCERRLOG%
  437. if .%FORCEPPAS% == .1 call %FPCSNAPRTL%\%PPASNAME% >> %FPCERRLOG%
  438. echo *Compiling unit DOS ... >> %FPCERRLOG%
  439. %REALTOOLS%%COMPILER% @%OS2OPTF% %OTHEROPTS% %OS2RTL%\DOS.PAS
  440. if .%FORCEPPAS% == .1 echo *Calling the PPAS script >> %FPCERRLOG%
  441. if .%FORCEPPAS% == .1 call %FPCSNAPRTL%\%PPASNAME% >> %FPCERRLOG%
  442. echo *Compiling unit CPU ... >> %FPCERRLOG%
  443. %REALTOOLS%%COMPILER% @%OS2OPTF% %OTHEROPTS% %OS2RTLP%\CPU.PP
  444. if .%FORCEPPAS% == .1 echo *Calling the PPAS script >> %FPCERRLOG%
  445. if .%FORCEPPAS% == .1 call %FPCSNAPRTL%\%PPASNAME% >> %FPCERRLOG%
  446. echo *Compiling unit MMX ... >> %FPCERRLOG%
  447. %REALTOOLS%%COMPILER% @%OS2OPTF% %OTHEROPTS% %OS2RTLP%\MMX.PP
  448. if .%FORCEPPAS% == .1 echo *Calling the PPAS script >> %FPCERRLOG%
  449. if .%FORCEPPAS% == .1 call %FPCSNAPRTL%\%PPASNAME% >> %FPCERRLOG%
  450. echo *Compiling unit SysUtils ... >> %FPCERRLOG%
  451. %REALTOOLS%%COMPILER% @%OS2OPTF% %OTHEROPTS% %OS2RTL%\SYSUTILS.PP
  452. if .%FORCEPPAS% == .1 echo *Calling the PPAS script >> %FPCERRLOG%
  453. if .%FORCEPPAS% == .1 call %FPCSNAPRTL%\%PPASNAME% >> %FPCERRLOG%
  454. echo *Compiling unit VarUtils (doesn't exist in 1.0.x - won't be found then) ... >> %FPCERRLOG%
  455. %REALTOOLS%%COMPILER% @%OS2OPTF% %OTHEROPTS% %OS2RTL%\VARUTILS.PP
  456. if .%FORCEPPAS% == .1 echo *Calling the PPAS script >> %FPCERRLOG%
  457. if .%FORCEPPAS% == .1 call %FPCSNAPRTL%\%PPASNAME% >> %FPCERRLOG%
  458. echo *Compiling unit TypInfo ... >> %FPCERRLOG%
  459. %REALTOOLS%%COMPILER% @%OS2OPTF% %OTHEROPTS% %OS2RTLO%\TYPINFO.PP
  460. if .%FORCEPPAS% == .1 echo *Calling the PPAS script >> %FPCERRLOG%
  461. if .%FORCEPPAS% == .1 call %FPCSNAPRTL%\%PPASNAME% >> %FPCERRLOG%
  462. echo *Compiling unit CRT ... >> %FPCERRLOG%
  463. %REALTOOLS%%COMPILER% @%OS2OPTF% %OTHEROPTS% %OS2RTL%\CRT.PAS
  464. if .%FORCEPPAS% == .1 echo *Calling the PPAS script >> %FPCERRLOG%
  465. if .%FORCEPPAS% == .1 call %FPCSNAPRTL%\%PPASNAME% >> %FPCERRLOG%
  466. echo *Compiling unit Printer ... >> %FPCERRLOG%
  467. %REALTOOLS%%COMPILER% @%OS2OPTF% %OTHEROPTS% %OS2RTL%\PRINTER.PAS
  468. if .%FORCEPPAS% == .1 echo *Calling the PPAS script >> %FPCERRLOG%
  469. if .%FORCEPPAS% == .1 call %FPCSNAPRTL%\%PPASNAME% >> %FPCERRLOG%
  470. echo *Compiling unit Math ... >> %FPCERRLOG%
  471. %REALTOOLS%%COMPILER% @%OS2OPTF% %OTHEROPTS% %OS2RTLO%\MATH.PP
  472. if .%FORCEPPAS% == .1 echo *Calling the PPAS script >> %FPCERRLOG%
  473. if .%FORCEPPAS% == .1 call %FPCSNAPRTL%\%PPASNAME% >> %FPCERRLOG%
  474. echo *Compiling unit UComplex ... >> %FPCERRLOG%
  475. %REALTOOLS%%COMPILER% @%OS2OPTF% %OTHEROPTS% %OS2RTLC%\UCOMPLEX.PP
  476. if .%FORCEPPAS% == .1 echo *Calling the PPAS script >> %FPCERRLOG%
  477. if .%FORCEPPAS% == .1 call %FPCSNAPRTL%\%PPASNAME% >> %FPCERRLOG%
  478. echo *Compiling unit GetOpts ... >> %FPCERRLOG%
  479. %REALTOOLS%%COMPILER% @%OS2OPTF% %OTHEROPTS% %OS2RTLC%\GETOPTS.PP
  480. if .%FORCEPPAS% == .1 echo *Calling the PPAS script >> %FPCERRLOG%
  481. if .%FORCEPPAS% == .1 call %FPCSNAPRTL%\%PPASNAME% >> %FPCERRLOG%
  482. echo *Compiling unit LineInfo ... >> %FPCERRLOG%
  483. %REALTOOLS%%COMPILER% @%OS2OPTF% %OTHEROPTS% %OS2RTLC%\LINEINFO.PP
  484. if .%FORCEPPAS% == .1 echo *Calling the PPAS script >> %FPCERRLOG%
  485. if .%FORCEPPAS% == .1 call %FPCSNAPRTL%\%PPASNAME% >> %FPCERRLOG%
  486. echo *Compiling unit DynLibs (doesn't exist in 1.0.x - won't be found then) ... >> %FPCERRLOG%
  487. %REALTOOLS%%COMPILER% @%OS2OPTF% %OTHEROPTS% %OS2RTLC%\DYNLIBS.PP
  488. if .%FORCEPPAS% == .1 echo *Calling the PPAS script >> %FPCERRLOG%
  489. if .%FORCEPPAS% == .1 call %FPCSNAPRTL%\%PPASNAME% >> %FPCERRLOG%
  490. echo *Compiling unit KbdCalls ... >> %FPCERRLOG%
  491. %REALTOOLS%%COMPILER% @%OS2OPTF% %OTHEROPTS% %OS2RTL%\KBDCALLS.PAS
  492. if .%FORCEPPAS% == .1 echo *Calling the PPAS script >> %FPCERRLOG%
  493. if .%FORCEPPAS% == .1 call %FPCSNAPRTL%\%PPASNAME% >> %FPCERRLOG%
  494. echo *Compiling unit MouCalls ... >> %FPCERRLOG%
  495. %REALTOOLS%%COMPILER% @%OS2OPTF% %OTHEROPTS% %OS2RTL%\MOUCALLS.PAS
  496. if .%FORCEPPAS% == .1 echo *Calling the PPAS script >> %FPCERRLOG%
  497. if .%FORCEPPAS% == .1 call %FPCSNAPRTL%\%PPASNAME% >> %FPCERRLOG%
  498. echo *Compiling unit VioCalls ... >> %FPCERRLOG%
  499. %REALTOOLS%%COMPILER% @%OS2OPTF% %OTHEROPTS% %OS2RTL%\VIOCALLS.PAS
  500. if .%FORCEPPAS% == .1 echo *Calling the PPAS script >> %FPCERRLOG%
  501. if .%FORCEPPAS% == .1 call %FPCSNAPRTL%\%PPASNAME% >> %FPCERRLOG%
  502. echo *Compiling unit MonCalls ... >> %FPCERRLOG%
  503. %REALTOOLS%%COMPILER% @%OS2OPTF% %OTHEROPTS% %OS2RTL%\MONCALLS.PAS
  504. if .%FORCEPPAS% == .1 echo *Calling the PPAS script >> %FPCERRLOG%
  505. if .%FORCEPPAS% == .1 call %FPCSNAPRTL%\%PPASNAME% >> %FPCERRLOG%
  506. echo *Compiling unit Ports ... >> %FPCERRLOG%
  507. %REALTOOLS%%COMPILER% @%OS2OPTF% %OTHEROPTS% %OS2RTL%\PORTS.PAS
  508. if .%FORCEPPAS% == .1 echo *Calling the PPAS script >> %FPCERRLOG%
  509. if .%FORCEPPAS% == .1 call %FPCSNAPRTL%\%PPASNAME% >> %FPCERRLOG%
  510. echo *Compiling PM units ... >> %FPCERRLOG%
  511. %REALTOOLS%%COMPILER% @%OS2OPTF% %OTHEROPTS% %OS2RTL%\OS2DEF.PAS
  512. %REALTOOLS%%COMPILER% @%OS2OPTF% %OTHEROPTS% %OS2RTL%\PMWIN.PAS
  513. if .%FORCEPPAS% == .1 echo *Calling the PPAS script >> %FPCERRLOG%
  514. if .%FORCEPPAS% == .1 call %FPCSNAPRTL%\%PPASNAME% >> %FPCERRLOG%
  515. %REALTOOLS%%COMPILER% @%OS2OPTF% %OTHEROPTS% %OS2RTL%\PMBITMAP.PAS
  516. if .%FORCEPPAS% == .1 echo *Calling the PPAS script >> %FPCERRLOG%
  517. if .%FORCEPPAS% == .1 call %FPCSNAPRTL%\%PPASNAME% >> %FPCERRLOG%
  518. %REALTOOLS%%COMPILER% @%OS2OPTF% %OTHEROPTS% %OS2RTL%\PMGPI.PAS
  519. if .%FORCEPPAS% == .1 echo *Calling the PPAS script >> %FPCERRLOG%
  520. if .%FORCEPPAS% == .1 call %FPCSNAPRTL%\%PPASNAME% >> %FPCERRLOG%
  521. echo *Compiling MMOS2 units ... >> %FPCERRLOG%
  522. %REALTOOLS%%COMPILER% @%OS2OPTF% %OTHEROPTS% %OS2RTL%\DIVE.PAS
  523. if .%FORCEPPAS% == .1 echo *Calling the PPAS script >> %FPCERRLOG%
  524. if .%FORCEPPAS% == .1 call %FPCSNAPRTL%\%PPASNAME% >> %FPCERRLOG%
  525. if .%FORCEPPAS% == .1 echo * Deleting the PPAS script >> %FPCERRLOG%
  526. if .%FORCEPPAS% == .1 del %FPCSNAPRTL%\%PPASNAME% >> %FPCERRLOG%
  527. if %PARAMS% == rtl goto End
  528. :Compiler
  529. echo *Creating file with all the needed options and paths for the compiler ... >> %FPCERRLOG%
  530. echo %SKIPCFG% > %OS2OPTF%
  531. echo %OS2OPT1% >> %OS2OPTF%
  532. echo %OS2OPT2% >> %OS2OPTF%
  533. echo %OS2OPT3% >> %OS2OPTF%
  534. echo %OS2OPT4% >> %OS2OPTF%
  535. echo %OS2OBJP% >> %OS2OPTF%
  536. echo %OS2UNITP% >> %OS2OPTF%
  537. echo -FD%REALTOOLS% >> %OS2OPTF%
  538. echo %COMPUNITP% >> %OS2OPTF%
  539. echo %COMPINCP% >> %OS2OPTF%
  540. echo %COMPOBJP% >> %OS2OPTF%
  541. echo %STACKOPT% >> %OS2OPTF%
  542. echo %OS2EXET% >> %OS2OPTF%
  543. if not .%CURRENTOPT1% == . echo %CURRENTOPT1% >> %OS2OPTF%
  544. if not .%CURRENTOPT2% == . echo %CURRENTOPT2% >> %OS2OPTF%
  545. if not .%FPCLOG% == . echo -Fe%FPCERRLOG% >> %OS2OPTF%
  546. if not .%FORCEPPAS% == . echo -a >> %OS2OPTF%
  547. if not .%FORCEPPAS% == . echo -s >> %OS2OPTF%
  548. if .%DOVERBOSE% == .1 echo %VERBOSEOPT% >> %OS2OPTF%
  549. if not .%DOVERBOSE% == .1 goto CompS2
  550. echo *Start of basic options used for compilation >> %FPCERRLOG%
  551. type %OS2OPTF% >> %FPCERRLOG%
  552. echo *End of basic options used for compilation >> %FPCERRLOG%
  553. if not .%OTHEROPTS% == . echo *User specified options: %OTHEROPTS% >> %FPCERRLOG%
  554. :CompS2
  555. echo *Compiling the compiler ... >> %FPCERRLOG%
  556. %REALTOOLS%%COMPILER% @%OS2OPTF% %OTHEROPTS% %COMPSPATH%\FPC.PAS
  557. if .%FORCEPPAS% == .1 echo *Calling the PPAS script >> %FPCERRLOG%
  558. if .%FORCEPPAS% == .1 call %FPCSNAPBIN%\%PPASNAME% >> %FPCERRLOG%
  559. if .%FORCEPPAS% == .1 echo * Deleting the PPAS script >> %FPCERRLOG%
  560. if .%FORCEPPAS% == .1 del %FPCSNAPBIN%\%PPASNAME% >> %FPCERRLOG%
  561. if .%FORCEPPAS% == .1 del %FPCSNAPBIN%\link.res >> %FPCERRLOG%
  562. %REALTOOLS%%COMPILER% @%OS2OPTF% %OTHEROPTS% %COMPSPATH%\PP.PAS
  563. if .%FORCEPPAS% == .1 echo *Calling the PPAS script >> %FPCERRLOG%
  564. if .%FORCEPPAS% == .1 call %FPCSNAPBIN%\%PPASNAME% >> %FPCERRLOG%
  565. if .%FORCEPPAS% == .1 echo * Deleting the PPAS script >> %FPCERRLOG%
  566. if .%FORCEPPAS% == .1 del %FPCSNAPBIN%\%PPASNAME% >> %FPCERRLOG%
  567. if .%FORCEPPAS% == .1 del %FPCSNAPBIN%\link.res >> %FPCERRLOG%
  568. :Comp2
  569. ren %FPCSNAPBIN%\pp.exe ppc386.exe >> %FPCERRLOG%
  570. if exist %FPCSNAPBIN%\ppc386.exe goto OKCompiler
  571. if not exist %FPCSNAPBIN%\pp goto C2Cont
  572. if exist %FPCSNAPBIN%\ppas.bat goto PPasBat
  573. if exist %FPCSNAPBIN%\ppas.cmd goto PPasCmd
  574. :C2Cont
  575. echo *Error: The compiler wasn't compiled!! >> %FPCERRLOG%
  576. goto End
  577. :PPasCmd
  578. echo *Automatic binding failed, trying again ... >> %FPCERRLOG%
  579. call %FPCSNAPBIN%\ppas.cmd
  580. del %FPCSNAPBIN%\ppas.cmd >> %FPCERRLOG%
  581. goto Comp2
  582. :PPasBat
  583. echo *Automatic binding failed, trying again ... >> %FPCERRLOG%
  584. call %FPCSNAPBIN%\ppas.bat
  585. del %FPCSNAPBIN%\ppas.bat >> %FPCERRLOG%
  586. goto Comp2
  587. :OKCompiler
  588. if %PARAMS% == compiler goto End
  589. if %PARAMS% == both goto End
  590. if %PARAMS% == cycle goto Cycle
  591. goto CopyFiles
  592. :Cycle
  593. rem Another loop?
  594. if .%CYCLE% == .2 goto CopyFiles
  595. echo *Backing up previous compiler version to ppc386.%CYCLE% ... >> %FPCERRLOG%
  596. copy %REALTOOLS%ppc386.exe %REALTOOLS%ppc386.%CYCLE% >> %FPCERRLOG%
  597. echo *Copying the newly created compiler to %REALTOOLS% ... >> %FPCERRLOG%
  598. copy %FPCSNAPBIN%\ppc386.exe %REALTOOLS%. >> %FPCERRLOG%
  599. if .%CYCLE% == .1 goto Cycle2
  600. set COMPILER=PPC386.EXE
  601. set CYCLE=1
  602. goto NoPars
  603. :Cycle2
  604. set CYCLE=2
  605. goto NoPars
  606. :CopyFiles
  607. echo *Copying the message files ... >> %FPCERRLOG%
  608. copy %COMPSPATH%\*.msg %FPCSNAPMSG% >> %FPCERRLOG%
  609. echo *Copying the documentation ... >> %FPCERRLOG%
  610. copy %FPCSRC%\INSTALL\DOC\*.txt %FPCSNAPDOC% >> %FPCERRLOG%
  611. copy %FPCSRC%\INSTALL\DOC\*.htm* %FPCSNAPDOC% >> %FPCERRLOG%
  612. copy %FPCSRC%\INSTALL\DOC\copying.* %FPCSNAPDOC% >> %FPCERRLOG%
  613. if .%DORELEASE% == .1 goto CopyDone
  614. echo *Creating the snapshot readme file ... >> %FPCERRLOG%
  615. set FPCSNAPTXT=%FPCSNAPDOC%\snapshot.txt
  616. echo This is a FPC snapshot for OS/2. It contains compilation of the most current >> %FPCSNAPTXT%
  617. echo developers' sources as of time of its creation. It contains the latest fixes >> %FPCSNAPTXT%
  618. echo but might contain some new bugs as well, since it's less tested than regular >> %FPCSNAPTXT%
  619. echo releases. Please, send your error reports to [email protected] >> %FPCSNAPTXT%
  620. echo mailing list (and don't forget to mention the fact you're not subscribed to >> %FPCSNAPTXT%
  621. echo the list in your e-mail, if it's the case). >> %FPCSNAPTXT%
  622. echo The snapshot has the same structure as the release ZIP files, so it may be >> %FPCSNAPTXT%
  623. echo installed using the normal installer (INSTALL.EXE and INSTALL.DAT must be >> %FPCSNAPTXT%
  624. echo in the same directory) or directly unzipped into your FPC tree. >> %FPCSNAPTXT%
  625. :CopyDone
  626. if %@EVAL[0] == 0 goto Pack
  627. echo *Warning: Packing in this environment might fail. >> %FPCERRLOG%
  628. echo *Should you encounter any problems, make sure the current directory, i.e. >> %FPCERRLOG%
  629. cd >> %FPCERRLOG%
  630. echo *is on the same drive as %FPCSNAP%. >> %FPCERRLOG%
  631. cd %FPCSNAP%
  632. :Pack
  633. echo *Packing the snapshot ... >> %FPCERRLOG%
  634. if %@EVAL[0] == 0 goto SHL2
  635. goto Cmd2
  636. :Shl2
  637. pushd
  638. cdd %FPCSNAP%
  639. :Cmd2
  640. rem ZIP.EXE must be on the PATH
  641. zip -9r baseemx bin\os2\*.exe doc\* msg\* units\os2\rtl\*.ppo units\os2\rtl\*.oo2 units\os2\rtl\*.ao2 units\os2\rtl\*.rst >> %FPCERRLOG%
  642. if exist baseemx.zip goto ZipOK
  643. echo *Error: The ZIP file hasn't been created!! >> %FPCERRLOG%
  644. :ZipOK
  645. if %@EVAL[0] == 0 popd
  646. echo *Done. >> %FPCERRLOG%
  647. goto End
  648. :ErrorDir
  649. echo *Error: Environment variable FPCDIR must point to your base FPC directory!!! >> %FPCERRLOG%
  650. goto End
  651. $Log$
  652. Revision 1.5 2000-12-03 18:40:56 hajny
  653. * fpc.pas added
  654. Revision 1.4 2000/10/14 19:46:58 hajny
  655. * fix for continue parameter
  656. Revision 1.3 2000/10/08 18:44:36 hajny
  657. + DynLibs added
  658. Revision 1.2 2000/10/07 11:47:54 hajny
  659. * updates for 1.1, etc.
  660. Revision 1.1 2000/07/14 10:09:29 michael
  661. + Moved from base
  662. Revision 1.1 2000/07/13 06:31:26 michael
  663. + Initial import
  664. Revision 1.18 2000/06/26 17:31:12 hajny
  665. * workaround for MS command shell limitation
  666. Revision 1.17 2000/05/21 16:09:42 hajny
  667. * os2def.pas added
  668. Revision 1.16 2000/05/14 16:46:09 hajny
  669. * cmd.exe compatibility problem fixed
  670. Revision 1.15 2000/04/03 17:42:46 hajny
  671. + LineInfo added
  672. Revision 1.14 2000/03/28 19:30:50 hajny
  673. * another change of order
  674. Revision 1.13 2000/03/16 19:43:36 hajny
  675. * fix for COMMAND.COM, order, etc.
  676. Revision 1.12 2000/03/12 18:29:40 hajny
  677. * wrong order corrected
  678. Revision 1.11 2000/03/12 13:42:00 hajny
  679. * cosmetic change for easier synchronization
  680. Revision 1.10 2000/03/12 13:37:24 hajny
  681. * support for calling PPAS script, compiler stack increased
  682. Revision 1.9 2000/03/05 19:13:25 hajny
  683. * new snapshot structure
  684. Revision 1.8 2000/01/29 16:24:01 hajny
  685. * logging enhanced, verbose support, error for non-4dos fixed
  686. Revision 1.7 2000/01/26 22:34:36 hajny
  687. * support for error logging added
  688. Revision 1.6 2000/01/16 18:44:21 hajny
  689. * got rid of PPC386.CFG dependency
  690. Revision 1.3 1999/10/01 09:00:21 hajny
  691. + PMGPI and DIVE added
  692. Revision 1.2 1999/09/15 07:31:49 hajny
  693. + some units added, OTHEROPTS variable support
  694. :End