Merge branch 'master' of git://git.sv.gnu.org/lilypond
[lilypond.git] / lily / lily-version.cc
blob1df780b8e1ec05edf7a5a3a951b0d374f397d5e8
1 /*
2 lily-version.cc -- implement version strings
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2007 Jan Nieuwenhuizen <janneke@gnu.org>
7 */
9 #include "lily-version.hh"
11 #include "config.hh"
12 #include "version.hh"
14 string
15 version_string ()
17 string str = MAJOR_VERSION "." MINOR_VERSION "." PATCH_LEVEL;
18 string mpl ("." MY_PATCH_LEVEL);
19 if (mpl != ".")
20 str += mpl;
21 return str;
24 string
25 gnu_lilypond_string ()
27 string str = "GNU LilyPond";
28 return str;
31 string
32 gnu_lilypond_version_string ()
34 string str = gnu_lilypond_string () + " " + version_string ();
35 return str;