Man Page CCadmin.1




NAME

     CCadmin - clean the templates database; provide  information
     from and updates to the database.


SYNOPSIS

     CCadmin [ -clean=o	] [ -ddir ] [ -info [=symbol [,...]] ]
     [ -V ]


DESCRIPTION

     You can use  the  CCadmin	utility	 to  clean  the	 template
     instantiation  and	source browser database	(this is the same
     as	the obsolete utility ptclean) as well as the  SunWS_cache
     directory.

     CCadmin provides information from the database for	 a  given
     list  of  mangled filenames in the	database. The information
     provided for each filename	includes  header  file	dependen-
     cies,  symbols  instantiated  in  the file, and command line
     options used to compile the file.



OPTIONS

     -clean=o
	  o must be one	of the following:

	  pch	   clean C and C++ precompiled header information
	  CCpch	   clean only C++ precompiled header information
	  ccpch	   clean only C	precompiled header information
	  tmpl	   clean only template instantiations
	  sb	   clean only source browser data
	  all	   clean the entire cache

	  CCadmin -clean  means	 CCadmin  -clean=all.	The  sub-
	  options accumulate so	the commands CCadmin -clean=CCpch
	  -clean=tmpl  have   the   same   meaning   as	  CCadmin
	  -clean=CCpch,tmpl.

     -ddir
	  Use dir as the directory containing the  database.  The
	  default value	of dir is the current directory. Example:
	  If the database directory is /foo/bar/SunWS_cache, use:
	    CCadmin -d/foo/bar

     -flags
	  Show summary of options.

     -info[=symbol[,...]]
	  Provide information from the database	about each symbol
	  in the list. If only -info is	specified, information is
	  printed about	all object files in the	 database.  If	a
	  symbol  list	is specified, information is printed only
	  for those symbols.
	  A symbol can be one of:
	  - object file	name created by	the user (example: t.o)
	  - mangled file name created in the database
	  - a string specifying	a template name. If '<'	or '>' is
	  used in the name, the	name should be enclosed	in quotes
	  to keep these	characters from	being  treated	as  shell
	  redirection symbols.

	  If a template	name is	specified, CCadmin simply does	a
	  string comparison and	prints information about the tem-
	  plate	names starting with that string.

     -V	  Print	version	string.


EXAMPLES

     CCadmin -info
	     lists information about all objects in the	templates
	     database
     CCadmin -info=t.o,EpuXSD5gnAQhdXWFrwohZBoZ3
	     lists information about the specified symbols
     CCadmin -info=st
	     lists information about all template names	 starting
	     with "st"
     CCadmin -info="stack<int"
	     lists information about all template names	 starting
	     with "stack<int"
     CCadmin -info="stack<int,int>::p"
	     lists information about all template names	 starting
	     with "stack<int,int>::p"


FILES

     ./SunWS_config/CC_tmpl_opt
	     Replaces Template.opt
     ./SunWS_cache/CC_state
	     Replaces Dependency.state and CDR.state
     ./SunWS_cache/CC_import/
	     Lists imported template instantiations
     ./SunWS_cache/CC_obj_[0-9@A-Z_a-z]
	     Places objects under two-level hierarchy


SEE ALSO

     CC(1)