This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: setup.exe joblist for downloading


Au contraire!

Richard, inspired by your inquiry, I whipped up a little something. It's 
not well tested, but it should provide a starting point. It generates a 
script that uses wget to retrieve all the binary tarballs to the same 
place that Setup.exe would. As written, it will not retrieve source 
tarballs. It accepts only a single mirror URL, which must use either the 
HTTP or the FTP scheme.

The biggest shortcoming of this script is its inability to distinguish 
the current from the previous versions--it retrieves both.

There are other assumptions in this script: E.g., it assume that only 
':' and '/' are special and require URL encoding when converting the 
mirror URL to a directory name. There are probably others, too.

There is currently code to retrieve either the BZip2-compressed 
"setup.ini" file or the plain text one. The choice is conditioned on the 
variable "getBZ2," which if non-empty will get the compressed file. 
There's no way to control this variable other than to edit the script. I 
don't know if the compressed "setup.ini" files are universally available 
or not, but I'm guessing they are.

Here's how you use it:

mkcygwget: Usage: mkcygwget <mirrorURL>


% cd /e/Cygnus/Install

% ls
total 1317
-rwxrwxr-x    1 RSchulz  None        33195 Feb 10 23:47 cygwget*
drwxrwxrwx+   3 Administ None         4096 Feb 10 23:47
-rwxrwxr-x    1 RSchulz  None         1253 Feb 10 23:47 mkcygwget*
-rwxrwxrwx    2 Administ None       171008 Jul  4  2002 setup-*
-rwxrwxr-x    1 RSchulz  None       206336 Jul  8  2002 setup-*
-rwxrwxrwx    2 Administ None       171008 Jul  4  2002 setup.exe*
-rw-rw-rw-    1 Administ None       599075 Feb 10 08:52 setup.log
-rw-rw-rw-    1 Administ None       130835 Feb 10 08:52 setup.log.full
% mkcygwget

% cygwget
  [ many hours later, for us unfortunate dial-in modem users ]


Though wget is directed to download all the binary tarballs, most 
mirrors support modification time stamps and that should prevent 
redundant downloads. Note, too, that Setup's use of a ".tmp" file
during download is not reproduced.

I hope you find this helpful.

Randall Schulz

At 21:01 2003-02-10, Christopher Faylor wrote:
>On Mon, Feb 10, 2003 at 08:59:19PM -0800, Richard Deeley wrote:
>>My hope here was that there might be an option to get a joblist
>>out of setup.exe which I could then parse and send to a third
>>party downloader (such as GetRight). Is there such an option ?

Attachment: mkcygwget
Description: Binary data

Unsubscribe info:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]