home *** CD-ROM | disk | FTP | other *** search
- /* Edge macro: hn_build
- **
- ** $VER: hn_build_generic.edge 1.5 (16-Feb-93 01:10:12)
- **
- ** Usage: hn_buildproject
- **
- ** Synopsis: Build active compiler project
- ** Active means the project current file belongs to
- ** Generic version, change MAKECOMMAND below to whatever make
- ** program you uses.
- **
- ** Author: Henrik Nordström
- ** Ängsvägen 1
- ** S 756 45 Uppsala
- */
-
- MAKECOMMAND='MAKE'
-
- options results
-
- 'getenvvar _fe_name'
- parse var result filename '.' type
-
- 'getenvvar _fe_user9'
- parse var result projectdir ',' subproject ',' arguments
-
- projectname=subproject
- 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'
-
- address command MAKECOMMAND '>"echo:t:build_'projectname'" subproject
-
- call hn_readerr('t:build_'projectname)
-
- exit(RESULT)
-