home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
the25.zip
/
thesrc251.zip
/
makedist.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1998-07-21
|
1KB
|
58 lines
/*
* Make a distribution of THE
* Required for those platforms that use GNU make:
* DOSDJP
* OS2EMX - Regina
* DOSEMX
*/
Parse Arg ver verdot platform src reg
If ver = '' Then Call usage
'mkdir tmp'
'cd tmp'
'del /Y *.*'
'copy ..\the.exe .'
'copy' src || '\THE_Help.txt .'
'copy' src || '\demo.txt .'
'copy' src || '\*.the .'
'copy' src || '\COPYING .'
'copy' src || '\HISTORY .'
'copy' src || '\TODO .'
'copy' src || '\README .'
select
when platform = 'DOSDJG' then do
if reg = '' then call usage
'copy' src || '\dosgo32.diz file_id.diz'
'copy' reg || '\go32.exe .'
int = ''
suffix = 'djg'
end
when platform = 'DOSEMX' then do
if src = '' then call usage
'copy' src || '\dosvcpi.diz file_id.diz'
int = ''
suffix = 'vcp'
end
when platform = 'OS2EMX' then do
if reg = '' then call usage
'copy' src || '\os2.diz file_id.diz'
'copy' reg || '\regina.dll .'
int = 'R'
suffix = '_os2'
end
otherwise call usage
end
'f:\usr\bin\the -b -p' src || '\fix.diz -a "' || ver verdot int 'Regina" file_id.diz'
'zip the' || ver || int || suffix '*'
'cd ..'
Return
usage:
Say 'makedist version versiondot platform src reg'
Say 'where:'
Say ' version - 25'
Say ' versiondot - 2.5'
Say ' platform - one of DOSDJG DOSEMX OS2EMX'
Say ' src - source of THE'
Say ' reg - directory where regina.dll or go32.exe is'
Exit 1