apply-config - Process input template files based upon configuration settings.


NAME

apply-config - Process input template files based upon configuration settings.


SYNOPSIS

  apply-config [options] [dir ...]


DESCRIPTION

This program processes input template files and expands variables referenced to values specified in <mharc-root>/lib/config.sh.

Template files are designated by the .in filename extentions. For a given file, if file.in.dist exists and file.in does not, file.in.dist will be copied to file.in before processing.

Variable references in template files are denoted as follows:

  @@VARIABLE_NAME@@

If the specified variable name is defined, the reference will be replaced with the empty string.


OPTIONS

Any non-option arguments are treated as directories to recursively scan for template files. If no directories are specified, then $SW_ROOT is used as defined in <mharc-root>/lib/config.sh.

-clean
Remove all files that have a .in version. This option is useful to clean up all files generated from templates.

-distclean
Remove all files that have a .in version and remove all .in files that have a .in.dist version. This option is useful to clean up all files for generating a distribution bundle.

WARNING: Use this option with care since it will delete all customized versions of .in templates. This option is mainly for use by mharc developers.

-debug
Print out alot of information on what is going on. This options prints out more information than -verbose.

-n
Just echo what would be done, but do not do it.

-verbose
Echo out status on any operation that modifies files.


FILES

<mharc-root>/lib/config.sh
Configuration file defining variables values.


VERSION

$Id: apply-config,v 1.15 2002/10/17 03:14:31 ehood Exp $


AUTHOR

Earl Hood, earl@earlhood.com

This program is part of the mharc archiving system and comes with ABSOLUTELY NO WARRANTY and may be copied only under the terms of the GNU General Public License, which may be found in the mhArc distribution.

 apply-config - Process input template files based upon configuration settings.