Re: [PATCH] support --version command line for common binaries

Stipe Tolj <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization tolj.org system architecture
Message-ID <[email protected]>
Stipe Tolj schrieb:
> Hi list,
> 
> please find attached a simple patch, that allows to use
> 
>   $ <kannel binary> --version
> 
> to dump the full Kannel version string to stdout.
> 
> I moved the version dumping related functions from gw/shared.[ch] to
> gwlib/utils.[ch] and embedded the '--version' in get_and_set_debugs(), so there
> is need of change in the binary main functions itself.
> 
> Please have a review and vote. As this is just a simple "feature add", I'll
> commit if there is no objection, which I don't expect ;)

committed to CVS HEAD, with Alex's suggestion in moving the log-level to 
INFO while dumping to the logs.

Stipe

-- 
-------------------------------------------------------------------
Kölner Landstrasse 419
40589 DÃŒsseldorf, NRW, Germany

tolj.org system architecture      Kannel Software Foundation (KSF)
http://www.tolj.org/              http://www.kannel.org/

mailto:st_{at}_tolj.org           mailto:stolj_{at}_kannel.org
-------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.