home *** CD-ROM | disk | FTP | other *** search
- /* Edge macro: hn_build
- **
- ** $VER: hn_build_sc5.edge 1.5 (16-Feb-93 00:32:20)
- **
- ** Usage: hn_build
- **
- ** Synopsis: Build active compiler project
- ** SAS/C 5 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'
-
- if subname="" then
- address command 'lc:lmk >"echo:t:build_'projectname'"'
- else address command 'lc:lmk >"echo:t:build_'projectname'" "'subname'"'
-
- call hn_readerr('t:build_'projectname)
- exit(RESULT)
-