]> git.tuebingen.mpg.de Git - paraslash.git/commit
Make all commands print git version and improve version string.
authorAndre Noll <maan@systemlinux.org>
Tue, 26 Mar 2013 23:30:49 +0000 (23:30 +0000)
committerAndre Noll <maan@systemlinux.org>
Thu, 13 Jun 2013 16:29:03 +0000 (18:29 +0200)
commit75feacbafa2a1fe258f85963205b8c28a976badc
treebcd477c49d7cc4c865e6c219229f5a46e63d80cf
parentb01605d7062e4d1f005d5aaaaed158d8efe06d79
Make all commands print git version and improve version string.

Currently the format of the first line of the help output varies
between executables, for example:

para_afh git (0.4.12.12.g15a4: spectral gravity)
para_audioc git

This difference comes from the fact that para_afh has its own
->print_help method which uses the VERSION_SINGLE_LINE macro of
version.h while para_audioc relies on gengetopt's help output.

The latter uses the make variable PACKAGE_VERSION which gets
initialized at configure time through the second argument in AC_INIT
of configure.ac. This value is either the version number for or the
string "git".

It's a good thing to have the abbreviated git version encoded in
all executables, so this commit changes the argument of gengetopt's
--set-version to the git version string including the codename. With
the patch applied, the output of all commands looks like this if
--version was given:

para_filter 0.4.12.12.g11d7 (spectral gravity)

To make sure things stay consistent, the patch introduces the
VERSION_SINGLE_LINE macro and changes all commands to use it instead
of open coding the version string.
audiod.c
filter.c
m4/gengetopt/makefile
play.c
recv.c
version.h
write.c