X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Flily-version.cc;h=1df780b8e1ec05edf7a5a3a951b0d374f397d5e8;hb=e34621159931fdbc7dff10973c2bc9ca38ab024c;hp=081504324abffcfff379c2167e32f24029b99fce;hpb=94189ec2b8da6d7e89dc619c646a927adead9b19;p=lilypond.git diff --git a/lily/lily-version.cc b/lily/lily-version.cc index 081504324a..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--2001 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; }