[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Rescue Linux tool svnwcrev from abandoning. Does someone have a copy we can add to github ?

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Sat, 6 Jun 2020 00:44:13 +0000

Roelof Berg wrote on Fri, 05 Jun 2020 16:45 +0200:
> Beautiful, thanks Alfred, then I’ll use it in-line and do not even need a script :)
>
> >> […]echo -n `svn info | grep -e "^URL: " | sed 's/URL: //g’`[…]
> >
> > Or as a one liner with printf and awk saving a few process invocations:
> >
> > #!/bin/bash
> > printf '{"%s"},"%d",""}\n' $(svn info | awk '/^URL:/ {print $2}') $(svn info | awk '/^Revision:/ {print $2}’)

s/svn info/env LC_ALL=C svn info/

to ensure the output is in English as the regexps assume.
Received on 2020-06-06 02:44:36 CEST

This is an archived mail posted to the Subversion Users mailing list.