----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/