home *** CD-ROM | disk | FTP | other *** search
- /*
- ** $VER: Build.ttx 2.1 (17.8.93)
- ** By Kenneth Yarnall. This code may be freely distributed.
- **
- ** Submits a build for the project in the directory of the file in the
- ** current TTX window. If scmsg is not running, it is started, the variable
- ** ENV:sc/projdir is set to point to the current directory, and scmsg is
- ** asked to build the project.
- **
- */
- Options RESULTS
-
- /* Get the file path+name safely, then split off the path */
-
- path = 'Rexx:TTX_SASC/SafeGetFileName'()
-
- path = 'Rexx:TTX_SASC/GetPathPart'(path)
-
- /* Get the current screen name from TTX, to use when opening SCMsg */
-
- GetScreenInfo
- Parse VAR RESULT . '"' pubscrname '"'
-
- Call 'Rexx:TTX_SASC/StartSCMsg.ttx' pubscrname
-
- /*
- ** If we are here, scmsg is running, and we have a path. Set the environment
- ** variable sc/projdir to point to that path.
- */
-
- if ~Exists('ENV:sc') then
- Address COMMAND 'makedir ENV:sc'
-
- Address COMMAND 'setenv sc/projdir ' || path
-
- /* Tell scmsg to go at it */
- GetPort
- port = RESULT
-
- Address SC_SCMSG
- 'abort'
- 'newbld'
- 'build'
-
- exit 0
-