X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Flily-version.cc;h=c15c76e6287845d411fb243e653931308d8df7b1;hb=cd97f3fa5b1275595307e89b5b070f833adb573a;hp=5dcfcdcac5dd1b68a0923ff2d0558bc86465fb89;hpb=75be12aa75a535af753d6125bfc03da3ee303b36;p=lilypond.git diff --git a/lily/lily-version.cc b/lily/lily-version.cc index 5dcfcdcac5..c15c76e628 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--2006 Jan Nieuwenhuizen */ -#include "config.hh" -#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; }