CodeMatrix implements a command line interface program.
This program can be called from any scripting language
supported by the operating system in use. For details of
the supported commands, consult the
command line interface user guide.
Note that the command line interface program is invoked
by entering cx at an operating system command prompt or
console, however on Windows systems the actual program
executed is cxx.exe, therefore scripts for Windows
operating systems should reference this module.
A script that needs to use transactions needs special
consideration, because each time the command line
interface is invoked a new transaction is created, and
terminated when the program instance ends. For this reason
the script must redirect commands to the processor in a
block, as shown in the following Windows example.
echo begin > ~tmp
echo co -r //cx/*.h >> ~tmp
echo co -r //cx/*.cpp >> ~tmp
echo end >> ~tmp
type ~tmp | cxx
See also:
Using the command line interface
|