Re: scheme48 watch file

2007-11-26 Thread Trent W. Buck
[CC'd to mentors; please also CC replies directly to me as I'm not
subscribed to that list.]

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=411425
http://www.s48.org/1.7/scheme48-1.7.tgz
http://mentors.debian.net/debian/pool/main/s/scheme48/

Regarding

 Please add a debian/watch file.

...I haven't been able to work out how to do this, because
http://s48.org/ has a link to 1.7/download.html instead of to 1.7/ --
this means that the naïve

http://s48.org/(?:[[:digit:].]+)/scheme48-([[:digit:].]+).tgz

doesn't work, because it can't find any href at s48.org matching
(?:[[:digit:].]+)/?$.  For the same reason, this fails

http://s48.org/(?:[[:digit:].]+)/download.html scheme48-([[:digit:].]+).tgz

Any suggestions on this issue would be appreciated.


signature.asc
Description: Digital signature


Re: scheme48 watch file

2007-11-26 Thread Daniel Leidert

Am Montag, den 26.11.2007, 20:30 +1100 schrieb Trent W. Buck:
 [CC'd to mentors; please also CC replies directly to me as I'm not
 subscribed to that list.]
 
 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=411425
 http://www.s48.org/1.7/scheme48-1.7.tgz
 http://mentors.debian.net/debian/pool/main/s/scheme48/
 
 Regarding
 
  Please add a debian/watch file.
 
 ...I haven't been able to work out how to do this, because
 http://s48.org/ has a link to 1.7/download.html instead of to 1.7/ --
 this means that the naïve
 
 http://s48.org/(?:[[:digit:].]+)/scheme48-([[:digit:].]+).tgz
 
 doesn't work, because it can't find any href at s48.org matching
 (?:[[:digit:].]+)/?$.  For the same reason, this fails
 
 http://s48.org/(?:[[:digit:].]+)/download.html 
 scheme48-([[:digit:].]+).tgz
 
 Any suggestions on this issue would be appreciated.

Attached. Maybe one has a simpler file.

Regards, Daniel
version=3
opts=downloadurlmangle=s/([^\/]+)\/download.html$/$1\/scheme48-$1.tgz/,filenamemangle=s/([^\/]+)\/download.html/scheme48-$1.tgz/
 \
  http://s48.org/index.html \
  ([\d\.]+)/download.html

# http://s48.org/1.7/download.html/scheme48-download.html.tgz


Re: scheme48 watch file

2007-11-26 Thread Trent W. Buck
On Mon, Nov 26, 2007 at 03:08:12PM +, Daniel Leidert wrote:
 Please add a debian/watch file.

 version=3
 opts=downloadurlmangle=s/([^\/]+)\/download.html$/$1\/scheme48-$1.tgz/,filenamemangle=s/([^\/]+)\/download.html/scheme48-$1.tgz/
  \
   http://s48.org/index.html \
   ([\d\.]+)/download.html

Thanks, this works.


signature.asc
Description: Digital signature


Re: scheme48 watch file

2007-11-26 Thread Eric Cooper
On Mon, Nov 26, 2007 at 08:30:56PM +1100, Trent W. Buck wrote:
 ...I haven't been able to work out how to do this, because
 http://s48.org/ has a link to 1.7/download.html instead of to 1.7/

Here's a version that works, using the downloadurlmangle option:

  version=3
  
opts=downloadurlmangle=s{s48.org/(.*)/download.html}{s48.org/$1/scheme-$1.tgz} \
  http://s48.org/index.html  (.*)/download.html

You could probably tighten up the (.*) regexps, but the idea is to
use one pattern to detect the version, and then munge that URL to get
to the actual tarball.

-- 
Eric Cooper e c c @ c m u . e d u


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: scheme48 watch file

2007-11-26 Thread Daniel Leidert

Am Montag, den 26.11.2007, 10:31 -0500 schrieb Eric Cooper:
 On Mon, Nov 26, 2007 at 08:30:56PM +1100, Trent W. Buck wrote:
  ...I haven't been able to work out how to do this, because
  http://s48.org/ has a link to 1.7/download.html instead of to 1.7/
 
 Here's a version that works, using the downloadurlmangle option:
 
   version=3
   
 opts=downloadurlmangle=s{s48.org/(.*)/download.html}{s48.org/$1/scheme-$1.tgz}
  \
   http://s48.org/index.html  (.*)/download.html
 
 You could probably tighten up the (.*) regexps, but the idea is to
 use one pattern to detect the version, and then munge that URL to get
 to the actual tarball.

This will download the tarball but name it download.html. You further
need a filenamemangle bsides the downloadurlmangle.

Regards, Daniel


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]