X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Flily-version.cc;h=1df780b8e1ec05edf7a5a3a951b0d374f397d5e8;hb=96da6326a3e81ae8a3a580348f3c75b0525e6ccc;hp=909a9b95a5481dbbde04f2764bb5f28fb084d16e;hpb=07d4d05df6479d58c3c5152c07d7c86b94ee98b4;p=lilypond.git diff --git a/lily/lily-version.cc b/lily/lily-version.cc index 909a9b95a5..1df780b8e1 100644 --- a/lily/lily-version.cc +++ b/lily/lily-version.cc @@ -3,33 +3,35 @@ source file of the GNU LilyPond music typesetter - (c) 1999 Jan Nieuwenhuizen + (c) 1999--2007 Jan Nieuwenhuizen */ -#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 () +string +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 () +string +gnu_lilypond_string () { - String str = "GNU LilyPond"; + string str = "GNU LilyPond"; return str; } -String -gnu_lilypond_version_str () +string +gnu_lilypond_version_string () { - String str = gnu_lilypond_str () + " " + version_str (); + string str = gnu_lilypond_string () + " " + version_string (); return str; }