Index
CBM User Guide Scripts rwbuild

Invoking rwclean


With the release of the June, 1998 Software Parts Manager CD, rwclean is deprecated. With the changes to CBM in this release, object files are now easy to locate in the workspace's buildloc directory, so the functions of rwclean can more easily be accomplished using make clean or 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:

  1. Make <spm_root_dir>\scripts (<spm_root_dir>/scripts on Unix platforms) your working directory.
  2. Enter 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).

Note: Do not put spaces between the argument flags and their associated values.

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.

CBM User Guide Scripts rwbuild
Index