X-Spam-Check-By: sourceware.org Date: Tue, 20 Jun 2006 10:00:46 -0400 (EDT) From: Igor Peshansky Reply-To: cygwin AT cygwin DOT com To: Dave Korn cc: cygwin AT cygwin DOT com Subject: RE: Suggestion: add "setup.exe" version number to Cygwin home page In-Reply-To: <00be01c6945d$00463bb0$a501a8c0@CAM.ARTIMI.COM> Message-ID: References: <00be01c6945d$00463bb0$a501a8c0 AT CAM DOT ARTIMI DOT COM> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Tue, 20 Jun 2006, Dave Korn wrote: > On 19 June 2006 21:18, Buchbinder, Barry (NIH/NIAID) wrote: > > > Daniel Friedman wrote: > >> It would be nice to learn the latest version of the Cygwin setup > >> program "setup.exe" without having to download and install it. > >> > >> Hence I respectfully suggest adding a statement of form "Latest > >> Cygwin setup.exe version is 2.510.2.2" to http://www.cygwin.com, e.g. > >> right below the also-helpful "Latest Cygwin DLL release version > >> is 1.5.19-4" statement. > >> > >> Thanks, > >> --daniel > > > > It's my experience that this is not really necessary. setup.ini > > contains timestamp and version information. When setup.exe has been > > updated, the version on the local system informs the user that a newer > > version of setup.exe is available. (I would guess that if one is > > updating using the automated, command line options one will not be so > > informed. Of course, that may not be a problem since many of the > > improvements are in the UI.) > > Alternatively, you can find out the latest setup.exe version anytime you > want like this:- > > pushd >/dev/null /tmp && wget 2>/dev/null `cat > /etc/setup/last-mirror`/setup.bz2 && ( bunzip2 -c setup.bz2 | grep > setup-version | cut -f2 -d' ' ) && popd >/dev/null wget -qO- `cat /etc/setup/last-mirror`/setup.bz2 | \ grep setup-version | cut -f2 -f' ' # :-p But only if your last mirror was up-to-date, and this is probably just as bad in terms of network traffic as downloading the actual setup.exe from cygwin.com, which was what the OP's complained about. Besides, you can grep setup.exe itself for the version (the one on cygwin.com, that is). Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte." "But no -- you are no fool; you call yourself a fool, there's proof enough in that!" -- Rostand, "Cyrano de Bergerac" -- 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/