home *** CD-ROM | disk | FTP | other *** search
- /* Edge macro: hn_runproject
- **
- ** $VER: hn_runproject.edge 1.4 (04-Mar-93 23:50:21)
- **
- ** Usage: hn_runproject
- **
- ** Synopsis: Run selected project
- ** 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_user9'
- parse var result projectdir ',' projectname ',' arguments
-
- if projectname=="" then do
- /* Get project name from path */
- projectname=strip(projectdir,'T','/')
- st=lastpos('/',projectname)
- if st==0 then st=lastpos(':',projectname)
- projectname=substr(projectname,st+1)
- end
-
- call pragma('d',projectdir)
-
- select
- when mode='' | mode='RUN' then
- address COMMAND projectname arguments
- when mode='DEBUG' then
- address COMMAND DEBUGGER projectname arguments
- otherwise do
- say 'Unknown RUNMODE: "'mode'"'
- exit(10)
- end
- end
- exit(RC)
-