www.delorie.com/archives/browse.cgi | search |
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: | <015201c2873c$80167c60$78d96f83@pomello> |
From: | "Max Bowsher" <maxb AT ukf DOT net> |
To: | <cygwin AT cygwin DOT com> |
References: | <718198F862F1D411B10F0002A50A4DB10B827F80 AT e90wwce3 DOT dx DOT deere DOT com> |
Subject: | Re: Alternate Cygwin download methods (was Re: NO huge packages, please!) |
Date: | Fri, 8 Nov 2002 15:35:43 -0000 |
MIME-Version: | 1.0 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2800.1106 |
>>>> From: Max Bowsher [mailto:maxb AT ukf DOT net] >>>> I thought I might as well mention my download method: >>>> I wrote a little script to get a setup.ini file from a mirror, ... >>> >> Polley Christopher W <PolleyChristopherW AT JohnDeere DOT com> wrote: >>> Sounds useful. :-) Care to share it? [I misunderstand and post a link to Michael Chase's clean_setup --Max. ] Polley Christopher W <PolleyChristopherW AT JohnDeere DOT com> wrote: > Right. I had that already, and your options are useful, but I was > referring to your script. Oh, right. Well its just a quick hack. I was intending to re-write it at some point. But since you asked... ########################################################### ####### Be warned: Messy code and lack of error checking ahead! ####### ########################################################### #!/bin/sh sedpat='ba;:q;p;q;:a;s/setup-timestamp: \(.*\)/\1/;tq' currstamp=`sed -ne "$sedpat" setup.ini` echo "Current setup.ini $currstamp" for f in `fgrep -v \# mymirror`; do echo -n "$f" | sed -e 's,[a-z]*://\([^/]*\)/.*,\1,' echo -n " " rm -f setup.bz2 if wget -q "${f}setup.bz2"; then bzip2 -d setup.bz2 newstamp=`sed -ne "$sedpat" setup` echo -n $newstamp if [ $newstamp -gt $currstamp ]; then mv setup setup.ini echo " UPDATED" currstamp="$newstamp" echo "Current setup.ini NOW $currstamp" elif [ $newstamp -eq $currstamp ]; then rm setup echo " CURRENT" else rm setup echo " OLD" fi else echo " ERROR" fi done ########################################################### Max. -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |