[pacman-dev] makepkg svn version discovery fails if the log message begins with r
Mark Constable
markc at renta.net
Sun Feb 3 09:33:33 EST 2008
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=f950c2630798e03bbee314c4a3f2749d1293a2b3
This is what I use...
svn log -r HEAD $_svntrunk | \
sed -n '/^r[0-9]* /s/^r\([0-9]*\) .*$/\1/p'
--markc
More information about the pacman-dev
mailing list