home *** CD-ROM | disk | FTP | other *** search
- /* Edge macro: hn_rumcompiled
- **
- ** $VER: hn_runcompiled.edge 1.3 (16-Feb-93 01:14:04)
- **
- ** Usage: hn_runcompiled [RUN|DEBUG]
- **
- ** Synopsis: Run compiled program
- ** If you don't use SAS/C CPR then change DEBUGGER= to what ever
- ** debugger you prefer.
- **
- ** Author: Henrik Nordström
- ** Ängsvägen 1
- ** S 756 45 Uppsala
- */
-
- DEBUGGER='CPR'
-
- parse arg mode
-
- options results
- 'getenvvar _fe_user8'
- parse var result compilerflags ',' linkoptions ',' outdir ',' arguments
-
- 'getenvvar _fe_path'
- pragma('d',result)
-
- 'getenvvar _fe_name'
- parse var result filename '.' type
-
- select
- when mode='' | mode='RUN' then
- address COMMAND '"'outdir||filename'" 'arguments
- when mode='DEBUG' then
- address COMMAND DEBUGGER '"'outdir||filename'" 'arguments
- otherwise do
- say 'USAGE:hn_runcompiled [RUN|DEBUG]'
- exit(10)
- end
- end
-