I think he means:
$ wget -O- http://svn.savannah.gnu.org/svn/apl/trunk/ | fgrep Revision | sed -r
's/.*Revision ([0-9]+).*/\1/' | head -n1
or
$ Revision=$(wget -O- http://svn.savannah.gnu.org/svn/apl/trunk/ | fgrep
Revision | sed -r 's/.*Revision ([0-9]+).*/\1/' | head -n1)
$ echo $Revision
1348
On 2020-09-22 15:33, Peter Teeson wrote:
Thanks for your reply but I don’t understand what you mean by ‘scrape that’
On Sep 22, 2020, at 2:21 PM, Callahan, Brian Robert <[email protected]
<mailto:[email protected]>> wrote:
http://svn.savannah.gnu.org/svn/apl/trunk/
<http://svn.savannah.gnu.org/svn/apl/trunk/>
Will be in the page title. I'd say scrape that since it's easy to do so.
~Brian
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Brian Robert Callahan, Ph.D.
Lecturer, ITWS@RPI
Office: Amos Eaton 132
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
*From:*Bug-apl [[email protected]
<mailto:[email protected]>] on behalf of Peter Teeson
[[email protected] <mailto:[email protected]>]
*Sent:*Tuesday, September 22, 2020 2:17 PM
*To:*[email protected] <mailto:[email protected]>
*Subject:*How find GNUAPL svn repository revision number
I’ve searched and read for the answer but come up dry.
I’m on macOS High Sierra
Assume I have svn co'd …trunk to a local working copy
I want to write a*_bash script_*to
compare the local working copy revision number
vs
the svn://svn.savannah.gnu.org/apl/trun <x-msg://2/UrlBlockedError.aspx>
repository revision number.
I know how to find out the revision number of my local working copy
using svnversion or svn info if i need more data.
My question:
But I don’t know how to script to get the revision number
of the svn://svn.savannah.gnu.org/apl/trun <x-msg://2/UrlBlockedError.aspx>
Please help….
Thanks
Peter