]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.42
authorfred <fred>
Sun, 24 Mar 2002 19:35:11 +0000 (19:35 +0000)
committerfred <fred>
Sun, 24 Mar 2002 19:35:11 +0000 (19:35 +0000)
mi2mu/mi2mu-version.cc [new file with mode: 0644]
mi2mu/version.cc

diff --git a/mi2mu/mi2mu-version.cc b/mi2mu/mi2mu-version.cc
new file mode 100644 (file)
index 0000000..e1b7178
--- /dev/null
@@ -0,0 +1,22 @@
+//
+// version.cc -- implement inexpensive versioning
+//
+// copyright 1997 Jan Nieuwenhuizen <jan@digicash.com>
+#include <stdio.h>
+#include "version.hh"
+
+
+static char *s = "mi2mu " MAJOR_VERSION "." MINOR_VERSION "."  MY_PATCH_LEVEL " #%d";
+
+static const int build=
+#include ".build"
+;
+
+const char * 
+mi2mu_version_sz()
+{
+    static char v[1024];
+    sprintf(v, s, build);
+    return v;
+}
+
index cb58c6b5b2874cd8a8c1e89536cba5d1c63d70d3..d9fe95dac7cb88134f6c2b1ff1e1d2758058b260 100644 (file)
@@ -1,18 +1,13 @@
-//
-// version.cc -- implement inexpensive versioning
-//
-// copyright 1997 Jan Nieuwenhuizen <jan@digicash.com>
-
 #include "mi2mu.hh"
-#include "fversion.hh"
-#include "version.hh"
+
+const char * mi2mu_version_sz();
 
 // should simply have Root class...
 String
-version_str()
+mi2mu_version_str()
 {
-       return String ( "This is mi2mu " ) + VERSIONSTR 
-               + "/FlowerLib " + FVERSIONSTR
+       return String ( "This is " ) + mi2mu_version_sz()
+               + flower_version_sz()
                + " of " +  __DATE__ + " " + __TIME__;
 }