Debian Codegraph @

makegcc.cmd

raw
1 /**/
2 Parse arg ver .
3 If ver = '' Then
4 Do
5 Say 'Must supply version: eg 382'
6 Exit
7 End
8 SRC = Translate(Value('REGINA_SRCDIR',,'OS2ENVIRONMENT'),'\','/')
9 here = Directory()
10 If Translate( here ) \= Translate( src ) Then
11 Do
12 Say 'Must be run from' src 'directory!'
13 Exit 1
14 End
15 'cd gcc'
16 'mkdir dist'
17 'cd dist'
18 'del /Y *.*'
19 'copy ..\regina.exe'
20 'copy ..\pmregina.exe'
21 'copy ..\rexx.exe'
22 'copy ..\rxstack.exe'
23 'copy ..\rxqueue.exe'
24 'copy ..\execiser.exe'
25 'copy ..\threader.exe'
26 'copy ..\regina.dll'
27 'copy ..\rexx.a'
28 'copy ..\rexx.lib'
29 'copy ..\regina.a'
30 'copy ..\regina.lib'
31 'copy ..\rxtest1.dll'
32 'copy ..\rxtest2.dll'
33 'copy ..\regutil.dll'
34 'copy' SRC || '\COPYING-LIB'
35 'copy' SRC || '\rexxsaa.h'
36 'copy' SRC || '\README.3?'
37 'copy' SRC || '\README.3??'
38 'copy' SRC || '\BUGS'
39 'copy' SRC || '\README.OS2 README'
40 'copy' SRC || '\README_SAFE'
41 'mkdir demo'
42 'copy' SRC || '\demo\*.rexx demo'
43 'copy ..\rexx.dll demo'
44 'copy ..\rexxapi.dll demo'
45 'mkdir nls'
46 'copy ..\*.mtb nls'
47 'mkdir doc'
48 'copy ..\..\doc\*.pdf doc'
49 'zip -r Regina' || ver || 'os2.zip *'
50 'cd ..\..'