home *** CD-ROM | disk | FTP | other *** search
- /* OberonC - Compiliert Oberon Programme */
-
- options results
-
- if ~show('L','rexxsupport.library') then
- call addlib('rexxsupport.library',0,-30)
-
- 'top first'
- 'find MODULE' ; 'wright'
- 'scanf %[~;]'
- 'chfilename $scanf.mod'
-
- 'getval $filename'
- filename = result
-
- opts = ''
-
- IF open('file','env:.OCopt','R') THEN DO
- copts = readln('file')
- close('file')
- END;
-
- 'if m (top first find :Date. right wright remeol ('||date() time()||'))'
- 'if m saveold'
-
- call close 'STDERR'
- call open 'STDERR','NIL:','W'
- call close 'STDIN'
- call close 'STDOUT'
- call open 'STDOUT','CON:25/15/640/256/RexxCon','RW'
- call pragma '*','STDOUT'
-
- address command 'oberon >* <*' copts filename
-
- if rc ~= 0 then do
- close('STDOUT')
- 'rx1 OberonErr first'
- end; else
- close('STDOUT')
-
-
-