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

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



Dear Andreas,

You should have a look to : https://wiki.debian.org/debian/watch/
It's quite well explained.

Best regards,
Joseph


On Wed, Feb 5, 2014 at 3:34 PM, gregor herrmann <gregoa@debian.org> wrote:
> 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
>
>
> --
> To UNSUBSCRIBE, email to debian-mentors-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: [🔎] 20140205143450.GC31798@colleen.colgarra.priv.at">http://lists.debian.org/[🔎] 20140205143450.GC31798@colleen.colgarra.priv.at
>


Reply to: