home *** CD-ROM | disk | FTP | other *** search
- /* OberonLink - Linkt Oberon-Programme */
-
- parse arg filename opts .
-
- call close 'STDERR'
- call open 'STDERR','NIL:','W'
- call close 'STDIN'
- call close 'STDOUT'
- call open 'STDOUT','CON:0/0/640/256/RexxCon','RW'
- call pragma '*','STDOUT'
-
- l = lastpos('.mod',filename)
- if l ~= (length(filename)-3) then exit
- linkname = left(filename,l)
-
- open('file','env:OProject','R')
- project = readln('file')
- close('file')
-
- IF open('file','env:'||project||'.OLopt','R') THEN DO
- opts = readln('file')
- close('file')
- END;
-
- address command 'OLink' opts wthname
-
- delay(100)
- close('STDOUT')
- exit
-
-