[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Fwd: Re: Bug#694418: ITP: fits ... help needed for watch file

On Thu, 03 Jan 2013 18:08:58 +0100, Florian Rothmaier wrote:

> My watch file currently looks as follows:
> version=3
> opts=downloadurlmangle=s:$:fits_src.jar: \
> http://heasarc.gsfc.nasa.gov/docs/heasarc/fits/java/v([\d\.]+)\/v([\d\.]+).*
> Instead of the source file "fits_src.jar", a binary file "v1.10.0" is downloaded
> (see below). How do I use "downloadurlmangle" and "filenamemangle" here in the
> correct way?

The following seems to work; no idea if this is the best solution:

opts="downloadurlmangle=s:$:fits_src.jar: ,\
filenamemangle=s:^v([\d\.]+).*$:fits_src-$1.jar:" \

 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer  -  http://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe

Attachment: signature.asc
Description: Digital signature

Reply to: