]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/auxiliar/makelsr.py
Doc helper script should use ~/lilypond-git/
[lilypond.git] / scripts / auxiliar / makelsr.py
index be4e7daff3a2bfd15b16aef6d6c5d69e737110a6..adf8681638f72781bbb915979403ff47ad613668 100755 (executable)
@@ -21,13 +21,19 @@ If a snippet is present in both directories, the one
 from %(NEW_LYS)s is preferred.
 ''' % vars ()
 
-LY_HEADER_LSR = '''%% Do not edit this file; it is automatically
+LY_HEADER_LSR = '''%% DO NOT EDIT this file manually; it is automatically
 %% generated from LSR http://lsr.dsi.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
 %% This file is in the public domain.
 '''
 
-LY_HEADER_NEW = '''%% Do not edit this file; it is automatically
+LY_HEADER_NEW = '''%% DO NOT EDIT this file manually; it is automatically
 %% generated from %s
+%% Make any changes in Documentation/snippets/new/
+%% and then run scripts/auxiliar/makelsr.py
+%%
 %% This file is in the public domain.
 ''' % NEW_LYS
 
@@ -62,6 +68,8 @@ else:
 # which convert-ly to use
 if os.path.isfile("out/bin/convert-ly"):
     conv_path='out/bin/'
+elif os.path.isfile("build/out/bin/convert-ly"):
+    conv_path='build/out/bin/'
 else:
     conv_path=''
 convert_ly=conv_path+'convert-ly'
@@ -163,7 +171,7 @@ def copy_ly (srcdir, name, tags):
     s = escape_backslashes_in_header (s)
     open (dest, 'w').write (s)
 
-    e = os.system (convert_ly+(" -e '%s'" % dest))
+    e = os.system (convert_ly+(" -d -e '%s'" % dest))
     if e:
         unconverted.append (dest)
     if os.path.exists (dest + '~'):