Re: sys/conf/newvers.sh vs. subversion-1.7

From: Nali Toja <nalitoja_at_gmail.com>
Date: Sat, 22 Oct 2011 16:04:34 +0000
Olivier Smedts <olivier_at_gid0.org> writes:

>>
>> $(svn info | awk '/^Revision:/ {print $2}')
>>
>> is what I use in my installkernel wrapper script. Granted, I didn't know
>> about svnversion some time later, but it appears that svnversion broke some
>> things by consolidating the .svn directories as Chris shows above with the
>> 'exported' line.
>
> Won't work for localized builds :
> $ echo $LANG
> fr_FR.ISO8859-15
> $ pwd
> /usr/src
> $ $(svn info | awk '/^Revision:/ {print $2}')
> $ svn info

While you can try to set LC_MESSAGES to `C' locale
subversion also supports XML output

  $ echo $(svn info --xml | awk -F\" '/revision/ && ++i > 1 { print $2 }')
  226629

Unlike `svnversion' it doesn't show whether the checked out
sources are `M' (modified) or not. Not that I found it useful
compared to `svn st -q' though.

> Chemin : .
> Chemin racine de la copie de travail : /usr/src
> URL : http://svn.freebsd.org/base/stable/9
> Racine du dépôt : http://svn.freebsd.org/base
> UUID du dépôt : ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
> Révision : 226629
> [...]
Received on Sat Oct 22 2011 - 14:07:22 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:19 UTC