X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Flily-version.cc;h=598943c2b3c22c2bcc3bc09d730caaf4211070f3;hb=57c350f45c7c18577bf81433373c5483e86ca54c;hp=909a9b95a5481dbbde04f2764bb5f28fb084d16e;hpb=07d4d05df6479d58c3c5152c07d7c86b94ee98b4;p=lilypond.git diff --git a/lily/lily-version.cc b/lily/lily-version.cc index 909a9b95a5..598943c2b3 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--2008 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; }