]> git.donarmstrong.com Git - lilypond.git/commitdiff
Updates for LSR.
authorGraham Percival <graham@percival-music.ca>
Mon, 22 Jan 2007 21:45:39 +0000 (13:45 -0800)
committerGraham Percival <graham@percival-music.ca>
Mon, 22 Jan 2007 21:45:39 +0000 (13:45 -0800)
input/lsr/advanced/+.ly [deleted file]
input/lsr/advanced/AAA-intro-advanced.ly [new file with mode: 0644]
input/lsr/trick/+.ly [deleted file]
input/lsr/trick/AAA-intro-trick.ly [new file with mode: 0644]
input/makelsr.py

diff --git a/input/lsr/advanced/+.ly b/input/lsr/advanced/+.ly
deleted file mode 100644 (file)
index 02d2c32..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-\version "2.10.0"
-%% +.ly: Be the first .ly file for lys-to-tely.py.
-%% Better to make lys-to-tely.py include "introduction.texi" or
-%% other .texi documents too?
-
-\header{
-texidoc = #(string-append "
-@section Introduction
-
-This document shows all kinds of advanced snippets from the
-LilyPond Snippet Repository.
-
-In the web version of this document, you can click on the file name
-or figure for each example to see the corresponding input file.
-
-This document is for LilyPond version 
-" (lilypond-version) ".")
-}
-
-% make sure .png  is generated.
-\lyrics {  "(left blank intentionally)" }
diff --git a/input/lsr/advanced/AAA-intro-advanced.ly b/input/lsr/advanced/AAA-intro-advanced.ly
new file mode 100644 (file)
index 0000000..02d2c32
--- /dev/null
@@ -0,0 +1,21 @@
+\version "2.10.0"
+%% +.ly: Be the first .ly file for lys-to-tely.py.
+%% Better to make lys-to-tely.py include "introduction.texi" or
+%% other .texi documents too?
+
+\header{
+texidoc = #(string-append "
+@section Introduction
+
+This document shows all kinds of advanced snippets from the
+LilyPond Snippet Repository.
+
+In the web version of this document, you can click on the file name
+or figure for each example to see the corresponding input file.
+
+This document is for LilyPond version 
+" (lilypond-version) ".")
+}
+
+% make sure .png  is generated.
+\lyrics {  "(left blank intentionally)" }
diff --git a/input/lsr/trick/+.ly b/input/lsr/trick/+.ly
deleted file mode 100644 (file)
index 4d5254f..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-\version "2.10.0"
-%% +.ly: Be the first .ly file for lys-to-tely.py.
-%% Better to make lys-to-tely.py include "introduction.texi" or
-%% other .texi documents too?
-
-\header{
-texidoc = #(string-append "
-@section Introduction
-
-This document shows all kinds of `tricks and tips' snippets from the
-LilyPond Snippet Repository.
-
-In the web version of this document, you can click on the file name
-or figure for each example to see the corresponding input file.
-
-This document is for LilyPond version 
-" (lilypond-version) ".")
-}
-
-% make sure .png  is generated.
-\lyrics {  "(left blank intentionally)" }
diff --git a/input/lsr/trick/AAA-intro-trick.ly b/input/lsr/trick/AAA-intro-trick.ly
new file mode 100644 (file)
index 0000000..4d5254f
--- /dev/null
@@ -0,0 +1,21 @@
+\version "2.10.0"
+%% +.ly: Be the first .ly file for lys-to-tely.py.
+%% Better to make lys-to-tely.py include "introduction.texi" or
+%% other .texi documents too?
+
+\header{
+texidoc = #(string-append "
+@section Introduction
+
+This document shows all kinds of `tricks and tips' snippets from the
+LilyPond Snippet Repository.
+
+In the web version of this document, you can click on the file name
+or figure for each example to see the corresponding input file.
+
+This document is for LilyPond version 
+" (lilypond-version) ".")
+}
+
+% make sure .png  is generated.
+\lyrics {  "(left blank intentionally)" }
index c902131d04619ae6d5b85bc3a7202beeb93240a9..4a89282953e495e6e07cb19f671a626928253085 100755 (executable)
@@ -4,28 +4,27 @@ import os
 import os.path
 import shutil
 
-dirs=['advanced','trick']
+dirs = ['advanced','trick']
 
 try:
-       in_dir=sys.argv[1]
+       in_dir = sys.argv[1]
 except:
        print "Please specify input_file."
        exit
 
 for dir in dirs:
-       srcdir = os.path.join(in_dir, dir)
-       destdir = os.path.join(os.getcwd(), 'lsr', dir)
+       srcdir = os.path.join (in_dir, dir)
+       destdir = os.path.join (os.getcwd(), 'lsr', dir)
 
-       file_names=os.listdir(destdir)
+       file_names = os.listdir (destdir)
        for file in file_names:
-               if (file[-3:]=='.ly'):
-                       if not(file=='+.ly'):
+               if (file.endswith ('.ly')):
+                       if (file[:3] != 'AAA'):   # or whatever we use to denote the first file
                                os.remove( os.path.join(destdir,file) )
 
-       file_names=os.listdir(in_dir + dir)
+       file_names = os.listdir (in_dir + dir)
        for file in file_names:
-               out_name=file
-               src = os.path.join(srcdir, file)
-               dest = os.path.join(destdir, out_name)
-               shutil.copyfile(src, dest)
+               src = os.path.join (srcdir, file)
+               dest = os.path.join (destdir, file)
+               shutil.copyfile (src, dest)