Common Configuration Parser 0.4.0

CCP is a program that reads configuration files and upgrades them.

  Add it to your Download Basket!

 Add it to your Watch List!


Rate it!
send us
an update
GPL (GNU General Public License) 
Eskild Hustvedt
ROOT \ Utilities
Common Configuration Parser is a program that reads configuration files and upgrades them.

It takes a oldfile (typically the old configuration file currently in use) and a newfile (typically the default new configuration file) and optionally a template (a file which tells ccp how the generated configuration file should look like.

It is generated on-the-fly if a template isn't supplied, so it is usually not needed). CCP first reads all the configuration options and values in the new file, then in the old file, then it either generates the template or reads the supplied template file, finally it merges the files into one - creating a new configuration file that has the changes that was made to the old file but also the new options that is included in the new file.

CCP is completely independent of the program that created the configuration file, and can be used for many different purposes. For instance it can be used to merge changes between an old user-edited configuration file and a .rpmnew file generated by rpm when a rpm was upgraded.

A good usage example is this:

You've got an rpm-based system, you upgrade a package, and then get a .rpmnew config file because you had made some changes to the original configuration file. The package should (in rpm %post) be able to upgrade the configuration file automatically for you, so that there are no .rpmnew files lying around.

What's New in This Release:

This release adds support for different --types.
It adds support for ini-files. --paranoid, --noorphans, and --no-uncomment have been deprecated by --set ParanoidMode, --set NoOrphans, and --set NoTemplateUncommenting.
Minor changes to the --bug output.
A bug that could cause certain options not to work in autogenerated templates has been fixed.

Last updated on January 31st, 2006

#configuration parser #reads configuration files #upgrades configuration files #common #configuration #parser #upgrades

Add your review!