Mail Archives: cygwin-apps/2002/03/19/13:08:44

Mailing-List: contact cygwin-apps-help AT cygwin DOT com; run by ezmlm
Sender: cygwin-apps-owner AT cygwin DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT cygwin DOT com>
List-Archive: <>
List-Post: <mailto:cygwin-apps AT cygwin DOT com>
List-Help: <mailto:cygwin-apps-help AT cygwin DOT com>, <>
Delivered-To: mailing list cygwin-apps AT cygwin DOT com
Date: Tue, 19 Mar 2002 12:52:25 -0500
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin-apps AT cygwin DOT com
Subject: [PATCH] Reinstate version number magic in for setup.exe
Message-ID: <>
Reply-To: cygwin-apps AT cygwin DOT com
Mail-Followup-To: cygwin-apps AT cygwin DOT com
Mime-Version: 1.0
User-Agent: Mutt/

Checked into branch and trunk.  I uploaded a new version of setup.exe to, too, since this was affecting setup.ini creation.


2002-03-19  Christopher Faylor  <cgf AT redhat DOT com>

        * (setup_version.c): Add back magic which allows detection
        of setup.exe version number.

RCS file: /cvs/uberbaum/winsup/cinstall/,v
retrieving revision 2.51
retrieving revision
diff -u -p -r2.51 -r2.51.2.1
---	2002/02/18 13:53:06	2.51
+++	2002/03/19 17:35:43
@@ -212,7 +212,9 @@ setup_version.c : $(srcdir)/ChangeLog Ma
 	V=`grep '^\$$Revision.*' $(srcdir)/ChangeLog \
 	| sed -e 's/\$$Revision:* *//' \
 	  -e 's/ *$$.*//'` ;\
-	echo "const char *version = \"$$V\";" > version.tmp ;\
+	(echo '#define VERSION_PREFIX "%%% setup-version"';\
+        echo 'static const char version_store[] = VERSION_PREFIX " '$$V'";';\
+        echo 'const char *version = version_store + sizeof (VERSION_PREFIX);') > version.tmp;\
 	mv version.tmp setup_version.c
 %.o: %.rc

- Raw text -

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