depth = ..
-SUBDIRS = test regression tutorial mutopia manual
+SUBDIRS = test regression tutorial mutopia manual lsr
examples = typography-demo les-nereides wilhelmus proportional bach-schenker cary
--- /dev/null
+depth = ../../
+
+SUBDIRS = advanced trick
+
+LOCALSTEPMAKE_TEMPLATES=ly mutopia
+
+include $(depth)/make/stepmake.make
--- /dev/null
+
+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
--- /dev/null
+# -*-python-*-
+
+Import ('env', 'collate')
+collate (title = 'Advanced snippets')
--- /dev/null
+
+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
--- /dev/null
+# -*-python-*-
+
+Import ('env', 'collate')
+collate (title = 'Trick snippets')
--- /dev/null
+#!/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)
+