svn rev. number

Danny Braniss danny at cs.huji.ac.il
Wed Oct 1 12:37:15 UTC 2008


> On Wednesday 01 October 2008 14:04:20 Danny Braniss wrote:
> > Hi,
> > 	Now that freebsd is under svn, I decided to try what I failed
> > with cvs, and actually using svn/svk/svnsync I have a mirror and a local
> > branch in sync!
> > Since the date reported by uname is not that relevant, is it possible to
> > add the svn-revision # ala build-...? This could make finding problems
> > easier, instead of kernel from 'date' one could say date/revision... just a
> > thought.
> 
> We are doing that - for quite some time now. (see r179637 & r179655).  The 
> requirements are that:
> 
great!
> 1) svnversion is executable in /bin, /usr/bin or /usr/local/bin
> 2) there is a .svn directory in your SRCDIR
> 
small catch, i'm using svk, but i guess I'll look into current's newvers.sh.
and running -stable.

> If that's the case, newvers.sh will add the output of it to uname:
> 
> "FreeBSD fbsd8 8.0-CURRENT FreeBSD 8.0-CURRENT #4 r180876:183019M:..."





More information about the freebsd-hackers mailing list