delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/11/02:53:50

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <5.2.0.9.2.20030210215236.02b18e70@pop3.cris.com>
X-Sender: rrschulz AT pop3 DOT cris DOT com
Date: Mon, 10 Feb 2003 23:53:22 -0800
To: cygwin AT cygwin DOT com
From: Randall R Schulz <rrschulz AT cris DOT com>
Subject: Re: setup.exe joblist for downloading
In-Reply-To: <20030211050129.GA24368@redhat.com>
References: <20030211045919 DOT 39476 DOT qmail AT web10106 DOT mail DOT yahoo DOT com>
<20030211045919 DOT 39476 DOT qmail AT web10106 DOT mail DOT yahoo DOT com>
Mime-Version: 1.0

--=====================_136839265==_
Content-Type: text/plain; charset="us-ascii"

Chris,

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>

Example:

% 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 http%3a%2f%2fmirror.mcs.anl.gov%2fcygwin/
-rwxrwxr-x    1 RSchulz  None         1253 Feb 10 23:47 mkcygwget*
-rwxrwxrwx    2 Administ None       171008 Jul  4  2002 setup-2.249.2.5.exe*
-rwxrwxr-x    1 RSchulz  None       206336 Jul  8  2002 setup-2.259.2.4.exe*
-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 http:mirror.mcs.anl.gov/cygwin

% 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 ?
>
>No.
>
>cgf

--=====================_136839265==_
Content-Type: application/octet-stream; name="mkcygwget"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="mkcygwget"

IyEvYmluL2Jhc2gKCgpnZXRCWjI9MQoKCiMgVmFsaWRhdGUgdXNhZ2UgKG1pbmltYWxseSkKaWYg
WyAkIyAtbmUgMSBdOyB0aGVuCgllY2hvICJta2N5Z3dnZXQ6IFVzYWdlICQwIDxtaXJyb3JVUkw+
IiA+JjIKCWV4aXQgMQpmaQoKbWlycm9yVVJMPSIkMSIKCgojIERpc3NlY3QgdGhlIGFyZ3VtZW50
IHRvIHNlcGFyYXRlIHRoZSBob3N0IGFuZCBkaXJlY3RvcnkgcG9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d25sb2FkIHNjcmlwdAooCgllY2hvIC1lICcjIS9iaW4v
c2hcbicKCgllY2hvIC1lICJjZCBcIiR1ZU1pcnJvclwiXG4iCgoJZWNobwkid2dldCBcXCIKCWVj
aG8gLWUgIlx0LXggLW5IIC0tY3V0LWRpcnM9MSBcXCIKCXNlZCAtbiAtZSAiL15pbnN0YWxsOiAv
IHN8Xmluc3RhbGw6IFwoW14gXSpcKSAuKnxcdFwiJG1pcnJvclVSTC9cMVwiIFxcXFx8cCIgIiR1
ZU1pcnJvci9zZXR1cC5pbmkiCgoJZWNobwopID58Y3lnd2dldAoKY2htb2QgK3ggY3lnd2dldAo=

--=====================_136839265==_
Content-Type: text/plain; charset=us-ascii

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
--=====================_136839265==_--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019