DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

gencc(CP)


gencc -- create a front-end to the cc command

Syntax

gencc

Description

The gencc command is an interactive command designed to create a front-end to the cc(CP) command. Since hard-coded path names have been eliminated from cc, it is possible to move pieces of the compilation system to new locations without recompiling the system. The new locations of moved pieces can be specified through the cc option -Y. However, it is inconvenient to supply -Y options with every invocation of cc. Further, if a system administrator moves pieces of the compilation system, such movement should be invisible to users.

The front-end which gencc generates is a one-line shell script which calls cc with the proper -Y options. The front-end will also pass all user-supplied options to cc.

gencc prompts for the location of each tool and directory which can be respecified by cc's -Y option. If no location is specified, it assumes that that piece of the system has not been relocated. After all the locations have been prompted for, gencc creates the front-end to the cc command.

gencc creates the front-end in the current working directory and gives the file the name cc. Thus, gencc cannot be run in the same directory containing the actual cc command. If the system administrator has redistributed the compilation system the actual cc command should be placed somewhere (for example, /lib) which is not typically in a user's PATH. This will prevent users from accidentally invoking the cc command without using the front-end.

Exit values

The gencc command returns an exit value of 0 if no error occurred, otherwise it returns a non-zero value.

Notes

The gencc command does not produce any warnings if a tool or directory does not exist at the specified location. Also, gencc does not actually move any files to new locations.

Files


./cc
front-end to cc

See also

cc(CP)

Standards conformance

gencc is an extension of AT&T System V that is maintained by The SCO Group.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003