]> git.donarmstrong.com Git - lilypond.git/blob - lily/lily-version.cc
1df780b8e1ec05edf7a5a3a951b0d374f397d5e8
[lilypond.git] / lily / lily-version.cc
1 /*
2   lily-version.cc -- implement version strings
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1999--2007 Jan Nieuwenhuizen <janneke@gnu.org>
7 */
8
9 #include "lily-version.hh"
10
11 #include "config.hh"
12 #include "version.hh"
13
14 string
15 version_string ()
16 {
17   string str = MAJOR_VERSION "." MINOR_VERSION "." PATCH_LEVEL;
18   string mpl ("." MY_PATCH_LEVEL);
19   if (mpl != ".")
20     str += mpl;
21   return str;
22 }
23
24 string
25 gnu_lilypond_string ()
26 {
27   string str = "GNU LilyPond";
28   return str;
29 }
30
31 string
32 gnu_lilypond_version_string ()
33 {
34   string str = gnu_lilypond_string () + " " + version_string ();
35   return str;
36 }
37