Re: watch nasty hack
Am Sonntag, den 06.12.2009, 18:01 +0100 schrieb Jaromír Mikeš:
> Hello mentors,
>
> I having watch file like this:
> http://www.kokkinizita.net/linuxaudio/downloads/index.html jconvolver-(.*)\.tar\.bz2
>
> to monitor jconvolver-0.8.4.tar.bz2 , but watch file monitoring
> jconvolver-reverbs.tar.bz2 as well and suggesting it as update.
>
> If modify watch file like this:
> http://www.kokkinizita.net/linuxaudio/downloads/index.html jconvolver-(0.*)\.tar\.bz2
>
> This hack is not probably the best solution in case of 1.0.0 release it will probably stop works.
> Anybody knows better solution?
You expect digits and dots in the version: jconvolver-([\d.]+)\.tar\.bz2.
This might of course miss release candidates. But you can add them later
if necessary. I suggest you read some manual about regular expressions
or pcrepattern(3).
Regards, Daniel
Reply to: