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

Olivier Smedts olivier at gid0.org
Sat Oct 22 15:39:05 UTC 2011


2011/10/22 Garrett Cooper <yanegomi at gmail.com>:
>
> $(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
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
[...]

-- 
Olivier Smedts                                                 _
                                        ASCII ribbon campaign ( )
e-mail: olivier at gid0.org        - against HTML email & vCards  X
www: http://www.gid0.org    - against proprietary attachments / \

  "Il y a seulement 10 sortes de gens dans le monde :
  ceux qui comprennent le binaire,
  et ceux qui ne le comprennent pas."


More information about the freebsd-current mailing list