[Nix-dev] Re: Auto package update script v3

Tobias Hunger tobias.hunger at gmx.de
Thu Feb 24 10:34:37 CET 2011


On Tuesday 22 February 2011 17:32:40 Ludovic Courtès wrote:

> OK.  How does it determine whether a file corresponds to a newer
> version?
> 
> What about schemes like ftp://foo.bar/package/vX.Y/package-X.Y.Z.tar.gz?
> (Gnupdate doesn’t support it yet.)

Uscan can do all kinds of cool tricks to figure out version numbers. You
basically provide it with a (set of) regexps to figure out the version number. 
It even works with sqlite style version numbers (sqlite 3.7.5 is 03070500 on 
the server).

Check http://manpages.debian.net/cgi-bin/man.cgi?query=uscan for details.

Best Regards,
Tobias




More information about the nix-dev mailing list