cdmtConvert -- convert list of relative pathnames to CDMT input files


cdmtConvert [-f] [-inputDir directory] [-defaultPerms] [-version version]
[-exportMacro macroName] packageCode*.files


cdmtConvert reads in a list of relative pathnames generated with find(C), and converts them to CDMT input files. The developer can use these input files unmodified as input to cdmtParse or customize the input files before using them. For each package, the developer redirects the output of find to a file called packageCode.file, where packageCode is the package code of the package.

The cdmtConvert utility:

To convert a list of filenames to CDMT input files, run find and cdmtConvert from the top-level directory containing the files in the product. For example:

find . -print > /tmp/product.files
cdmtConvert /tmp/product.files

By default, cdmtConvert treats all files in the *.files file as access type SHARED and not exported:

In the example above, cdmtConvert loads in the files /tmp/product.CLIENT and /tmp/product.export, if they exist.

Specify any subpackages by listing them after the parent package and enclosing the entire list in braces. For example:

cdmtConvert {WServer.files WServerExamples.files WServerMan.files}

In this example, the WServer product contains the subpackages WServerExamples and WServerMan. The first package in the list, WServer.files is the component, or root, package. The package code for the root package is used as the component code.

Use braces to group a package and its subpackages. To denote subpackages of subpackages, use braces recursively.

cdmtConvert accepts the following options:

do not prompt user when removing previous files and directories

-inputDir directory
specify the directory to put the generated CDMT input files

ignore the file permissions on the actual files. Use default values set in the *.cmpnt file.

-version version
specify the version of the product and components

-exportMacro macroName
specify the name of a macro to precede all export paths. This allows ``late binding'' of the actual export location.

Exit values

If execution was successful, cdmtConvert exits with a value of 0. If execution failed, cdmtConvert exits with a non-zero number.



See also

cdmt.config(CDMT), cdmtParse(CDMT), find(C)

``Creating custom-installable software distributions'' in Developer's Topics

Standards conformance

cdmtConvert is not part of any currently supported standard; it is an extension of AT&T System V provided by The Santa Cruz Operation, Inc.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003