
Index
CBM User Guide
Scripts
rwbuild
With the release of the June, 1998 Software Parts Manager CD,rwcleanis deprecated. With the changes to CBM in this release, object files are now easy to locate in the workspace'sbuildlocdirectory, so the functions ofrwcleancan more easily be accomplished usingmake cleanor other native tools of your environment.
CBM does not by default delete the object files (.o or .obj) created by the build. You must do this yourself using rwclean or other tools (see above).
The script rwclean cannot be invoked directly. Invocation must be through the control script rwspm. To invoke rwclean in this way:
<spm_root_dir>\scripts (<spm_root_dir>/scripts on Unix platforms) your working directory. rwspm -c [-a] -p<path to build location>.
The relevant command line flags to rwspm are:
-a Optional, requires -c. Removes only object files
and template-related build files. The directory
specified by -p is not removed.
-c Remove directory specified by -p, unless -a
is also set.
-p<path> Path to a buildloc directory or one of its
subdirectories. This is the directory that will
be removed (-c) or cleaned (-c -a).
An example of the -p argument would be <workspace>/buildloc/tlsnnnnu (<workspace>\buildloc\tlsnnnnw on Windows platforms).
In the absence of the -a flag, rwclean removes entire directory trees. However, rwclean only removes a directory that is named buildloc or is a subdirectory of a directory named buildloc, which provides some degree of safety.
With the -a flag, rwclean operates on the target directory selectively, removing object files and template-related build directories.
Note that the default scope of rwclean is the directory specified by the -p argument and all of its subdirectories.