delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/11/10/02:12:39

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
Date: Wed, 9 Nov 2005 23:10:55 -0800 (PST)
From: "Peter A. Castro" <doctor AT fruitbat DOT org>
To: cygwin AT cygwin DOT com
Subject: Re: Old versions of setup.exe
In-Reply-To: <43721FE4.3E48369D@dessent.net>
Message-ID: <Pine.LNX.4.58.0511092304450.2840@ming.fruitbat.org>
References: <SERRANOtIIZS2TRqf690000022c AT SERRANO DOT CAM DOT ARTIMI DOT COM> <Pine DOT LNX DOT 4 DOT 63 DOT 0511082221230 DOT 10783 AT gremlin DOT fruitbat DOT org> <Pine DOT GSO DOT 4 DOT 63 DOT 0511090929500 DOT 26451 AT slinky DOT cs DOT nyu DOT edu> <43721FE4 DOT 3E48369D AT dessent DOT net>
MIME-Version: 1.0
X-IsSubscribed: yes

On Wed, 9 Nov 2005, Brian Dessent wrote:

> Igor Pechtchanski wrote:
>
> > 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.
>
> In that case:
>
> upx -d setup.exe -o setup.tmp >/dev/null && \
>    strings setup.tmp | grep setup-version | cut -d ' ' -f 3 && \
>    rm setup.tmp

UPX!  What a cool little util.  I had no idea that setup.exe was being
supplied as a compressed exe (I guess I've been skimming my email a
little too lightly and missed that little bit of trivia :).

setup.exe expands from 305k to 846k!  Wow!

Ok, so this gives me the ability to automate the archiving of setup.exe as
well.   Cool!  The Time Machine will start archiving setup.exe too.

Thanks Brian & Igor (and you too Dave)!

> Brian

-- 
Peter A. Castro <doctor AT fruitbat DOT org> or <Peter DOT Castro AT oracle DOT com>
	"Cats are just autistic Dogs" -- Dr. Tony Attwood

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019