Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Wed, 9 Nov 2005 09:32:02 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: "Peter A. Castro" cc: Dave Korn , cygwin AT cygwin DOT com Subject: RE: Old versions of setup.exe In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 8 Nov 2005, Peter A. Castro wrote: > On Tue, 8 Nov 2005, Dave Korn wrote: > > > Peter A. Castro wrote: > > > > > Unfortunately, the Cygwin Time Machine hasn't been archiving setup.exe > > > (at least not consistently). The top of /pub/cygwin/ always has the > > > latest setup.exe (and setup.ini), but the Time Machine hasn't been > > > archiving it because there's no automatic way to extract the version > > > number from it. > > > > Well, ... > > > > dk AT espanola /tmp> strings setup.exe | grep setup-version | cut -d ' ' -f 3 > > 2.521 > > dk AT espanola /tmp> > > Hmmm... that doesn't seem to work for me on linux.... :( > And, it doesn't work for me on Cygwin either?! > This is what I get: > > % strings -a w:/webserver/ftp/pub/cygwin/setup.exe | grep -i setup > name="RedHat.Cygwin.Setup" > > This is the latest setup.exe from the cygwin website too. I'm at a loss > as to why it works for you and not me. Dave's running this command on a self-compiled version of setup. The setup on the Cygwin site is compressed with upx, which mangles all strings (except the PE header). So, one way to get version information into setup is to use the "Version:" tag in the PE header (or whatever it's called), but that will only work for the newest setup versions -- the older ones will have the "unextractable version" problem. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! If there's any real truth it's that the entire multidimensional infinity of the Universe is almost certainly being run by a bunch of maniacs. /DA -- 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/