From: Graham Percival Date: Mon, 22 Jan 2007 21:45:39 +0000 (-0800) Subject: Updates for LSR. X-Git-Tag: release/2.11.14-1~58^2~3 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=2c27e40a2c674835ec637ae9cfba9f659b8ec698;p=lilypond.git Updates for LSR. --- diff --git a/input/lsr/advanced/+.ly b/input/lsr/advanced/+.ly deleted file mode 100644 index 02d2c32247..0000000000 --- a/input/lsr/advanced/+.ly +++ /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 index 0000000000..02d2c32247 --- /dev/null +++ b/input/lsr/advanced/AAA-intro-advanced.ly @@ -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 index 4d5254f8b9..0000000000 --- a/input/lsr/trick/+.ly +++ /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 index 0000000000..4d5254f8b9 --- /dev/null +++ b/input/lsr/trick/AAA-intro-trick.ly @@ -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)" } diff --git a/input/makelsr.py b/input/makelsr.py index c902131d04..4a89282953 100755 --- a/input/makelsr.py +++ b/input/makelsr.py @@ -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)