discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Recommended minimum information when submitting bugs...


From: Nicola Pero
Subject: Re: Recommended minimum information when submitting bugs...
Date: Mon, 1 Nov 2004 04:46:39 +0000 (GMT)

> > Given that this information isn't updated for every bug which is 
> > fixed, how can
> > I rely on the version number alone?  You will never remove the human 
> > factor.
> > How can I know that someone is running a release or a CVS version?   I 
> > suppose
> > we could have a constant that would be filled in when the user does a 
> > pull from
> > CVS or something and have this value printed.
> >
> 
> gdb does this somehow.  Perhaps I'll have to figure that out.

Well that shouldn't be too difficult.

Eg, the following quick patch adds the function
'gnustep_gui_version_last_change ()' to gnustep-gui, which returns the
date/time/author of the last change compiled into the library as reported
by the ChangeLog.  The make rules should keep that updated.


Index: Headers/Additions/GNUstepGUI/GSVersion.h.in
===================================================================
RCS file: 
/cvsroot/gnustep/gnustep/core/gui/Headers/Additions/GNUstepGUI/GSVersion.h.in,v
retrieving revision 1.1
diff -u -r1.1 GSVersion.h.in
--- Headers/Additions/GNUstepGUI/GSVersion.h.in 31 Jul 2003 23:52:08 -0000      
1.1
+++ Headers/Additions/GNUstepGUI/GSVersion.h.in 1 Nov 2004 04:42:36 -0000
@@ -3,10 +3,10 @@
 
    Define version of GNUstep GUI Library
 
-   Copyright (C) 2001 Free Software Foundation, Inc.
+   Copyright (C) 2001 - 2004 Free Software Foundation, Inc.
 
    Author:  Nicola Pero <nicola@brainstorm.co.uk>
-   Date: 2001
+   Date: 2001 - 2004
    
    This file is part of the GNUstep GUI Library.
 
@@ -33,4 +33,7 @@
 #define GNUSTEP_GUI_MINOR_VERSION    @GNUSTEP_GUI_MINOR_VERSION@
 #define GNUSTEP_GUI_SUBMINOR_VERSION @GNUSTEP_GUI_SUBMINOR_VERSION@
 
+@class NSString;
+NSString *gnustep_gui_version_last_change ();
+
 #endif /* GNUSTEP_GUI_VERSION */
Index: Source/GNUmakefile
===================================================================
RCS file: /cvsroot/gnustep/gnustep/core/gui/Source/GNUmakefile,v
retrieving revision 1.131
diff -u -r1.131 GNUmakefile
--- Source/GNUmakefile  7 Sep 2004 14:39:13 -0000       1.131
+++ Source/GNUmakefile  1 Nov 2004 04:42:36 -0000
@@ -198,8 +198,8 @@
 GSPrinting.m \
 GSPrintOperation.m \
 GSEPSPrintOperation.m \
-GSPDFPrintOperation.m
-
+GSPDFPrintOperation.m \
+ChangeLogVersion.m
 
 # Turn off NSMenuItem warning that NSMenuItem conforms to <NSObject>,
 # but does not implement <NSObject>'s methods itself (it inherits
Index: Source/GNUmakefile.postamble
===================================================================
RCS file: /cvsroot/gnustep/gnustep/core/gui/Source/GNUmakefile.postamble,v
retrieving revision 1.16
diff -u -r1.16 GNUmakefile.postamble
--- Source/GNUmakefile.postamble        6 Oct 2004 03:34:46 -0000       1.16
+++ Source/GNUmakefile.postamble        1 Nov 2004 04:42:36 -0000
@@ -73,7 +73,7 @@
 
 # Things to do after cleaning
 after-clean::
-       rm -f libgnustep-gui.def
+       rm -f libgnustep-gui.def ChangeLogVersion.m
 
 # Things to do before distcleaning
 # before-distclean::
@@ -119,3 +119,12 @@
        nm $^ | grep '^........ [TR] _' | sed 's/[^_]*_//' > _tmp.def
        cat _tmp.def | grep "_class_name_" >> $@
        rm -rf _tmp.def
+
+ChangeLogVersion.m: ../ChangeLog
+       (echo "#include <Foundation/NSString.h>"; \
+       echo "NSString *gnustep_gui_version_last_change ()"; \
+       echo "{"; \
+       echo -n "  return @\""; \
+       head -1 ../ChangeLog | tr -d '\n'; \
+       echo "\";"; \
+       echo "}") > ChangeLogVersion.m





reply via email to

[Prev in Thread] Current Thread [Next in Thread]