| 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://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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 |
| From: | "Dave Korn" <dave DOT korn AT artimi DOT com> |
| To: | "'cygwin'" <cygwin AT cygwin DOT com> |
| Subject: | RE: suggestions for cygwin developers |
| Date: | Thu, 28 Jul 2005 14:45:53 +0100 |
| MIME-Version: | 1.0 |
| In-Reply-To: | <42E8B7CA.6080602@alltel.net> |
| Message-ID: | <SERRANOEufqd7EbKuZ100000031@SERRANO.CAM.ARTIMI.COM> |
----Original Message----
>From: Ken Dibble
>Sent: 28 July 2005 11:48
> Checking to see if a new version available assumes an internet connection.
> My opinion is that this would play havoc with dial-up users.
Besides, who wants cygwin to phone home? That's waaay too much like
windoze!
> If this is something you want, here is a hack to accomplish it.
> I'm sure there are better, cleaner ways to do this and it will break
> as soon as something in the package list changes, but it's 5 am
> and I am not ready to think yet.
>
> #!/bin/bash
>
> #Igor's whichpkg
> function whichpkg() {
> wget -qO- "http://cygwin.com/cgi-bin2/package-grep.cgi?grep=$1" | \
> sed -ne '/Cygwin Package List/,${s#</\?[^<]*>##g;p}'
> }
>
> LATEST=`whichpkg cygwin | grep "emulation" | tail -1 | awk -F "-"
> '{print $2}'`
> CUR=`uname -a | awk '{print $3}' | awk -F"(" '{print $1}'`
> if [ $CUR != $LATEST ]; then
> echo "new cygwin dll version "$LATEST" available"
> else
> echo "Your cygwin dll is current"
> fi
Here's my hack, which extracts LATEST from the cygwin.com frontpage list
of dll release announcements:
LATEST=`wget -q -O - http://cygwin.com/ | grep "New Cygwin DLL" | sed -e
's/^.*New Cygwin DLL \([0-9.-_]*\).*$/\1/' | head -1`
...after that you'd set CUR and compare them in the same way.
cheers,
DaveK
--
Can't think of a witty .sigline today....
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |