]> git.donarmstrong.com Git - lilypond.git/blobdiff - ly/init.ly
*** empty log message ***
[lilypond.git] / ly / init.ly
index fd0a20c87978f824b0e060856aae03a7e466f660..50a64fc31ba71255f13f60b94601da71306eaf07 100644 (file)
@@ -1,10 +1,39 @@
-% Toplevel initialisation file. 
+%% Toplevel initialisation file. 
 
-foo = \tempo 4 = 100 ;
-       
-\version "1.3.59";
+#(define-public midi-debug  #f)
 
 
-\include "declarations.ly";
+\version "2.4.0"
+
+\include "declarations-init.ly"
+
+
+#(ly:set-option 'new-relative)
+#(define toplevel-scores '())
+#(define $globalheader #f)
+#(define version-seen? #f)
 
 \maininput
+%% there is a problem at the end of the input file
+
+%%
+%% Above and below comments compensate for the parser's look-ahead.
+%%
+
+#(if (and (ly:get-option 'old-relative)
+      (defined? 'input-file-name)
+      (not (ly:get-option 'old-relative-used)))
+  (ly:warn (string-append
+           "\n"
+           input-file-name ": old relative compatibility was not used."
+       )))%% there is a problem at the end of the input file
+
+#(if (not version-seen?)
+  (ly:warn "No \\version included in input file.\nAdd\n\n\t\\version \"~a\"\n\nfor future compatibility" (lilypond-version)))
+  
+
+
+#(if (pair? toplevel-scores)
+  (ly:parser-print-book parser
+   (apply ly:make-book $defaultpaper $globalheader (reverse toplevel-scores))))
+