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

cgf

2002-03-19  Christopher Faylor  <[EMAIL PROTECTED]>

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

Index: Makefile.in
===================================================================
RCS file: /cvs/uberbaum/winsup/cinstall/Makefile.in,v
retrieving revision 2.51
retrieving revision 2.51.2.1
diff -u -p -r2.51 -r2.51.2.1
--- Makefile.in 2002/02/18 13:53:06     2.51
+++ Makefile.in 2002/03/19 17:35:43     2.51.2.1
@@ -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

Reply via email to