os2snap.cmd 29 KB

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