next up previous contents index
Next: The MegaWave2 Compiler Up: Introduction Previous: The MegaWave2 philosophy: basic   Contents   Index


MegaWave2 Macros

A MegaWave2 macro is a Bourne shell script with a normalized header. It can call a set of MegaWave2 modules (in command mode), in order to repeat a sequence of actions automatically. It can also be a system's macro which is an utility to manage MegaWave2.

For example, the macro cmw2 calls the MegaWave2 Compiler, the macro mwdoclatex compiles the documentation of a module using LATEX, .... Please refer to Section 5 for a list of all available system's macros. You can get an updated list of these macros by running mwsysmaclist or mwdoc s from the command line.

Notice that you can create your own macros (called user's macros). You may want, for example, to put in a macro a sequence of calls to some modules you frequently use. In the first versions of MegaWave2, the user's macros were put into the directory $MY_MEGAWAVE2/shell. Since the version 1.04 of the software, user's macros are managed in the same way as modules. There are public user's macros as well as private user's macros. The public user's macros are put into the same directories as the sources of the public modules, that is subdirectories of $MEGAWAVE2/src, while private user's macros are in the subdirectories of $MY_MEGAWAVE2/src. Please refer to Section 6 to learn more about user's macros.


next up previous contents index
Next: The MegaWave2 Compiler Up: Introduction Previous: The MegaWave2 philosophy: basic   Contents   Index
mw 2004-05-05