Re: Wanted: Watch file with version encoded in download dir
Hi gregor,
On Wed, Feb 05, 2014 at 03:34:50PM +0100, gregor herrmann wrote:
> > 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)
Thanks, commited to
svn://anonscm.debian.org/debian-med/trunk/packages/spades/trunk/
(but I needed "" around the opts)
> Maybe there's a more elegant version than using two *mangles ...
I failed with a single mangle ... that's why I was asking. :-)
Thanks a lot for the quick help
Andreas.
--
http://fam-tille.de
Reply to: