afickonfig - a tool to manage Afick's config files |
afickonfig - a tool to manage Afick's config files
afickonfig
is to change parameters in afick's config file, in a batch way.
It can add, replace, remove any components (macro, alias, directives, rules)
It was designed to work with same options names as afick (directives).
Note : in the current version, it can checks some arguments syntax before applying,
The idea came from the ``postconf'' utility from postfix.
afickonfig.pl [options] [action] [macros] [alias] [directives] [rules]
afick use posix syntax, which allow many possibilities :
options are used to control afickconfig
actions are used to change afick's configuration
macros are to be set in afick configuration format (see afick.conf(5)) : '@@define macro value'
aliases are to be set in afick configuration format (see afick.conf(5)) : 'newrule = attributes'
directives are to be set in afick configuration format (see afick.conf(5)) : 'directive := value'
rules are to be set in afick configuration format (see afick.conf(5)) : 'file alias'
you can also use
if no config file on command line, afick try to open /etc/afick.conf (Unix) or windows.conf (Windows) as default config
for config file syntax see afick.conf(5)
afickonfig may
To use this program, you must just run it with same afick command line options :
afickonfig.pl -c afick.conf --timing --norunnig_files --debug=1 --archive=afick_archive
or the same in configuration file syntax :
afickonfig.pl -c afick.conf 'timing := 1' ' running_files := no' 'debug:=1 'archive:=afick_archive'
and a mix of all types
afickonfig.pl -c afick.conf --timing 'debug:=1' '@@define BATCH 0' 'newrule = p+u+g' '/tmp newrule'
remove lines
afickonfig -c afick.conf 'debug:=' '@@define BATCH' 'newrule=' '/tmp'
The exit status is the number of real changes
this program only use perl and its standard modules.
Copyright (c) 2002,2003,2004 Eric Gerbier All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
Eric Gerbier
you can report any bug or suggest to gerbier@users.sourceforge.net
afickonfig - a tool to manage Afick's config files |