clearmake build script execution and cmd.exe
By default, clearmake invokes cmd.exe to
execute build scripts. It finds cmd.exe in
%SYSTEMROOT%\system32
; if SYSTEMROOT
is not set,
clearmake uses C:\winnt as the default system
root directory. If it cannot find the shell, clearmake exits.
You can override the default shell by using a SHELL make macro (note that you must specify a full path name and include the file name extension). The following anomalies might occur if you use a different shell or if you execute a batch file from a build script:
- clearmake might not recognize failed commands and continue the build with unpredictable results.
- clearmake might display an extra command prompt after a build script command completes successfully.
Note: If clearmake determines that it can execute the build script
directly, it does not use the shell program even if you specify one explicitly. If you
use .bat files in build scripts, you must make them executable (use the
cleartool protect command). To force clearmake
to use the shell program, set the environment variable
CCASE_SHELL_REQUIRED
.