]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/lily-version.cc
*** empty log message ***
[lilypond.git] / lily / lily-version.cc
index 909a9b95a5481dbbde04f2764bb5f28fb084d16e..bba3de2fd0cacb3547062f2fdd3c5ed7a908a36f 100644 (file)
@@ -3,33 +3,35 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c)  1999 Jan Nieuwenhuizen <janneke@gnu.org>
+  (c) 1999--2004 Jan Nieuwenhuizen <janneke@gnu.org>
 */
 
-#include "config.h"
-#include "version.hh"
 #include "lily-version.hh"
 
-#define VERSION MAJOR_VERSION "." MINOR_VERSION "."  PATCH_LEVEL "." MY_PATCH_LEVEL
+#include "config.hh"
+#include "version.hh"
 
 String
-version_str ()
+version_string ()
 {
-  String str = VERSION;
+  String str = MAJOR_VERSION "." MINOR_VERSION "."  PATCH_LEVEL;
+  String mpl ("." MY_PATCH_LEVEL);
+  if (mpl != ".")
+    str += mpl;
   return str;
 }
 
 String 
-gnu_lilypond_str ()
+gnu_lilypond_string ()
 {
   String str = "GNU LilyPond";
   return str;
 }
 
 String 
-gnu_lilypond_version_str ()
+gnu_lilypond_version_string ()
 {
-  String str = gnu_lilypond_str () + " " + version_str ();
+  String str = gnu_lilypond_string () + " " + version_string ();
   return str;
 }