home *** CD-ROM | disk | FTP | other *** search
- /* Edge macro: hn_build
- **
- ** $VER: hn_build_sc6.edge 1.5 (17-Feb-93 13:46:47)
- **
- ** Usage: hn_build
- **
- ** Synopsis: Build current compiler project
- ** SAS/C 6 version
- **
- ** Author: Henrik Nordström
- ** Ängsvägen 1
- ** S 756 45 Uppsala
- */
-
- options results
-
- 'getenvvar _fe_name'
- parse var result filename '.' type
-
- 'getenvvar _fe_user9'
- parse var result projectdir ',' projectname ',' arguments
- subname=projectname
-
- 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
-
- /* set directory */
- call pragma('d',projectdir)
-
- 'savechanges'
-
- /* start scmsg */
- if ~show(p,'SC_SCMSG') then do
- address command 'run <>nil: scmsg rexxonly'
- address command 'waitforport SC_SCMSG'
- end
-
- /* FORCE sc ERRREXX compilerflag */
- address command 'scopts ERRREXX'
-
- /* Clear scmsg from errors... */
- address SC_SCMSG clear
-
- if subname="" then
- address command 'smake >"echo:t:build_'projectname'"'
- else address command 'smake >"echo:t:build_'projectname'" "'subname'"'
-
- call hn_readerr('t:build_'projectname)
- exit(0)
-