On Sun, Dec 19, 2010 at 02:20:21PM -0800, Michael Jennings wrote:
> On Sunday, 19 December 2010, at 22:30:18 (+0100),
> Joerg Sonnenberger wrote:
> 
> > "grep -o" is not portable. Can't you do:
> > 
> >     svnversion -n "${SVN_REPO_PATH:-.}"| sed 's,^\([0-9]*\).*$,\1,'
> 
> The spec files use:
> 
> svnversion | sed 's/[^0-9].*$//' || echo 0000
> 
> which is portable.

One important differences is that it picks up M if you have any local
changes.

Joerg

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to