3 Feb
2008
3 Feb
'08
4:33 p.m.
On 03 Feb 2008 18:57, Xavier wrote:
the following is a patch that forces sed to test only the second line of the log. while this works, it will break if the log header is reformatted in the future.
- newpkgver=$(svn log $_svntrunk --limit 1 -q | sed -n 's/^r\([0-9]* \) .*$/\1/p') + newpkgver=$(svn log $_svntrunk --limit 1 -q | sed -n '2s/^r\([0-9]* \) .*$/\1/p')
Yes, stonecrest already reported this on irc one week ago, here is the patch I proposed which has been merged : http://projects.archlinux.org/git/?p=pacman.git;a=commit;h=f950c2630798e03bb...
This is what I use... svn log -r HEAD $_svntrunk | \ sed -n '/^r[0-9]* /s/^r\([0-9]*\) .*$/\1/p' --markc