Re: wget: ftp-retrieve only latest version?

2001-10-11 Thread Florian Simnacher
Hello out there, thank you for you replies! In principle this perl script does what I want. Of course i do not only want to use it for downloading wget-source-packages. But with a little logic added this script could become a usefull tool for me (well i think i have to start improving my perl k

Re: wget: ftp-retrieve only latest version?

2001-10-10 Thread Vladi Belperchinov-Shabanski
hi! this should do the trick :) ---cut--- #!/usr/bin/perl use strict; my $url = "http://ibiblio.org/pub/gnu/wget/";; my $prog = "wget"; my $latest = (reverse sort `wget $url -O -` =~ /$prog-([\d\.]+)\.tar\.gz/g )[0]; system "wget -c $url$prog-$latest.tar.gz" if $latest; --cut-- P! Vladi.

Re: wget: ftp-retrieve only latest version?

2001-10-10 Thread Mikko Kurki-Suonio
On Wed, 10 Oct 2001, Daniel Stenberg wrote: > > For example in ftp://ftp.gnu.org/pub/gnu/wget there might be > > wget-1.5.tar.gz, wget-1.6.tar.gz, wget-1.7.tar.gz. I would like to "say" > > to wget: retrieve wget-someversion.tar.gz and wget fetches only the > > latest version (in this example: wg

Re: wget: ftp-retrieve only latest version?

2001-10-10 Thread Daniel Stenberg
On Wed, 10 Oct 2001, Florian Simnacher wrote: > is it possible to make wget retrieve only the latest version of a given > *.tar.gz source package? > > For example in ftp://ftp.gnu.org/pub/gnu/wget there might be > wget-1.5.tar.gz, wget-1.6.tar.gz, wget-1.7.tar.gz. I would like to "say" > to wget:

wget: ftp-retrieve only latest version?

2001-10-10 Thread Florian Simnacher
Hello out there, is it possible to make wget retrieve only the latest version of a given *.tar.gz source package? For example in ftp://ftp.gnu.org/pub/gnu/wget there might be wget-1.5.tar.gz, wget-1.6.tar.gz, wget-1.7.tar.gz. I would like to "say" to wget: retrieve wget-someversion.tar.gz and w