]> git.donarmstrong.com Git - lilypond.git/commitdiff
Added automatic LSR infrastructure.
authorGraham Percival <graham@percival-music.ca>
Sat, 20 Jan 2007 19:45:25 +0000 (11:45 -0800)
committerGraham Percival <graham@percival-music.ca>
Sat, 20 Jan 2007 19:45:25 +0000 (11:45 -0800)
input/GNUmakefile
input/lsr/GNUmakefile [new file with mode: 0644]
input/lsr/advanced/GNUmakefile [new file with mode: 0644]
input/lsr/advanced/SConscript [new file with mode: 0644]
input/lsr/trick/GNUmakefile [new file with mode: 0644]
input/lsr/trick/SConscript [new file with mode: 0644]
input/makelsr.py [new file with mode: 0755]

index 022f9c3f12a1407957ff54ed6c2b42f9fda6d8d4..a8c4d4a26ba4b43290d499e44e8482eb44c47202 100644 (file)
@@ -1,6 +1,6 @@
 depth = ..
 
-SUBDIRS = test regression tutorial mutopia manual
+SUBDIRS = test regression tutorial mutopia manual lsr
 
 examples = typography-demo les-nereides wilhelmus proportional bach-schenker cary
 
diff --git a/input/lsr/GNUmakefile b/input/lsr/GNUmakefile
new file mode 100644 (file)
index 0000000..95cd95a
--- /dev/null
@@ -0,0 +1,7 @@
+depth = ../../
+
+SUBDIRS = advanced trick
+
+LOCALSTEPMAKE_TEMPLATES=ly mutopia
+
+include $(depth)/make/stepmake.make
diff --git a/input/lsr/advanced/GNUmakefile b/input/lsr/advanced/GNUmakefile
new file mode 100644 (file)
index 0000000..6d37cd2
--- /dev/null
@@ -0,0 +1,16 @@
+
+depth = ../../../
+
+STEPMAKE_TEMPLATES=documentation texinfo tex
+LOCALSTEPMAKE_TEMPLATES=lilypond ly lysdoc
+
+## Hmm, would this work?  No -- if we really want examples, move
+## to other dir (input/) comes to mind.
+## examples = font20 ancient-font
+## LOCALSTEPMAKE_TEMPLATES += ly mutopia
+
+EXTRA_DIST_FILES= README
+
+include $(depth)/make/stepmake.make
+
+TITLE=Advanced snippets
diff --git a/input/lsr/advanced/SConscript b/input/lsr/advanced/SConscript
new file mode 100644 (file)
index 0000000..f72bfff
--- /dev/null
@@ -0,0 +1,4 @@
+# -*-python-*-
+
+Import ('env', 'collate')
+collate (title = 'Advanced snippets')
diff --git a/input/lsr/trick/GNUmakefile b/input/lsr/trick/GNUmakefile
new file mode 100644 (file)
index 0000000..8cd520e
--- /dev/null
@@ -0,0 +1,16 @@
+
+depth = ../../../
+
+STEPMAKE_TEMPLATES=documentation texinfo tex
+LOCALSTEPMAKE_TEMPLATES=lilypond ly lysdoc
+
+## Hmm, would this work?  No -- if we really want examples, move
+## to other dir (input/) comes to mind.
+## examples = font20 ancient-font
+## LOCALSTEPMAKE_TEMPLATES += ly mutopia
+
+EXTRA_DIST_FILES= README
+
+include $(depth)/make/stepmake.make
+
+TITLE=Trick snippets
diff --git a/input/lsr/trick/SConscript b/input/lsr/trick/SConscript
new file mode 100644 (file)
index 0000000..3845b7b
--- /dev/null
@@ -0,0 +1,4 @@
+# -*-python-*-
+
+Import ('env', 'collate')
+collate (title = 'Trick snippets')
diff --git a/input/makelsr.py b/input/makelsr.py
new file mode 100755 (executable)
index 0000000..5abbeb9
--- /dev/null
@@ -0,0 +1,39 @@
+#!/usr/bin/python
+import sys
+import os
+import os.path
+#import re
+import shutil
+
+dirs=['advanced','trick']
+
+try:
+       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)
+#      if ~os.path.isdir(destdir):
+#              os.mkdir(destdir)
+
+       file_names=os.listdir(destdir)
+       for file in file_names:
+               if (file[-3:]=='.ly'):
+                       if not(file=='+.ly'):
+                               os.remove( os.path.join(destdir,file) )
+
+       file_names=os.listdir(in_dir + dir)
+       for file in file_names:
+               out_name=file
+               #out_name=re.sub(r'_',r'-',os.path.basename(file))
+               #out_name=re.sub(r'\(', r'', out_name)
+               #out_name=re.sub(r'\)', r'', out_name)
+               #out_name=re.sub(r'\'', r'', out_name)
+               src = os.path.join(srcdir, file)
+               dest = os.path.join(destdir, out_name)
+               #print src + "  " + dest
+               shutil.copyfile(src, dest)
+