home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: Graphics
/
Graphics.zip
/
os2apipm.zip
/
CMD
/
ADAOBJ.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1996-07-23
|
618b
|
21 lines
/* compile GNAT */ parse arg fn
'@echo off'
call adastart
i=pos('.',fn); if i>0 then fnm=left(fn,i-1);
else do; fnm=fn; fn=fn || '.adb'; end
fnl=fnm || '.lst'
say 'Gnat compilation started time:' time() 'file ' fn ;
comp = 'gcc -c -gnatl -Zomf -Zsys -Zmt ' || fn || ' > ' || fnl
comp
rcomp=rc
'@echo on'
say 'Gnat compilation ended time :' time() 'rc=' rcomp
if rcomp>0 then do
say 'Error rc=' rcomp ' Listing in file ' fnl ; pull otb
tedit fnl ;
say 'Listing delete y/n' ; pull otb
if otb='y' | otb='Y' then 'del' fnl
end
else '@del' fnl
exit