SVN version not correctly displaying
Kevin Hilton
kevhilton at gmail.com
Fri May 23 14:31:17 CEST 2008
$ svn info configure.ac
Path: configure.ac
Name: configure.ac
URL: svn://cvs.gnupg.org/gnupg/branches/STABLE-BRANCH-1-4/configure.a
Repository Root: svn://cvs.gnupg.org/gnupg
Repository UUID: 8a63c251-dffc-0310-8ec6-d64dca2275b1
Revision: 4765
Node Kind: file
Schedule: normal
Last Changed Author: wk
Last Changed Rev: 4753
Last Changed Date: 2008-04-30 06:46:35 -0500 (Wed, 30 Apr 2008)
Text Last Updated: 2008-05-08 00:28:46 -0500 (Thu, 08 May 2008)
Checksum: 1c05726d57e4533f00678401269d3603
The version part is discovered here (as you know):
m4_define([svn_revision], m4_esyscmd([echo $((svn info 2>/dev/null \
|| echo 'Revision: 0')|sed -n '/^Revision:/ s/[^0-9]//gp'|head -1)| \
tr -d '\n']))
Im not certain about the m4 declarations, but the script logic:
echo $((svn info 2>/dev/null || echo 'Revision: 0')|sed -n
'/^Revision:/ s/[^0-9]//gp'|head -1)| tr -d '\n']
Works OK on the command line and produces the desired svn number.
More information about the Gnupg-users
mailing list