This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Setup version in setup.log


It would make it easier to track some of the problems with setup.exe if it
wrote it's version as part of the startup message in setup.log.  Tonight I
discovered the opengl libraries in c:\cygwin\usr\lib\; I think I was using
setup.exe before 2.55 when I installed opengl, but I am not really sure.

I still haven't shaken my company's disclaimer loose, but this patch is only
three lines, so hopefully you can accept it without the disclaimer.
--
Mac :})
Give a hobbit a fish and he'll eat fish for a day.
Give a hobbit a ring and he'll eat fish for an age.

ChangeLog:

2001-05-27  Michael Chase mchase@ix.netcom.com

    * main.cc (WinMain): Add setup version to starting setup.log entry

Patch:

$ diff -u -p old/main.cc new/main.cc
--- old/main.cc Wed Sep  6 20:09:30 2000
+++ new/main.cc Sun May 27 23:30:22 2001
@@ -37,6 +37,7 @@ static char *cvsid = "\n%%% $Id: main.cc
 #include "find.h"
 #include "mount.h"
 #include "log.h"
+#include "version.h"

 #include "port.h"

@@ -57,7 +58,8 @@ WinMain (HINSTANCE h,

   next_dialog = IDD_SPLASH;

-  log (LOG_TIMESTAMP, "Starting cygwin install");
+  log (LOG_TIMESTAMP, "Starting cygwin install version %s",
+    version[0] ? version : "[unknown]");

   char cwd[_MAX_PATH];
   GetCurrentDirectory (sizeof (cwd), cwd);




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]