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

Re: Wanted: Watch file with version encoded in download dir



On Wed, 05 Feb 2014 15:21:01 +0100, Andreas Tille wrote:

> does anybody have an idea how to write a working watch file for
>    http://spades.bioinf.spbau.ru/release3.0.0/
> where the version is encoded in the download dir and the download file
> or do I have no better option than writing upstream a kind mail (which I
> would do anyway but it would be nice to know whether there is a
> workaround)?

The following seems to work for me:

version=3
opts=\
downloadurlmangle=s{release([\d.]+)/}{release${1}/SPAdes-${1}-Linux.tar.gz},\
filenamemangle=s{release([\d.]+)/}{SPAdes-${1}-Linux.tar.gz} \
http://spades.bioinf.spbau.ru/ release([\d.]+)/

(and produce a file named ../SPAdes-3.0.0-Linux.tar.gz)


Maybe there's a more elegant version than using two *mangles ...


Cheers,
gregor

-- 
 .''`.  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
   `-   BOFH excuse #451:  astropneumatic oscillations in the water-cooling 


Reply to: