From cc79e83f84efde6842c402a5d1c8d909709e93e7 Mon Sep 17 00:00:00 2001 From: Graham Percival Date: Fri, 4 May 2007 17:42:30 -0700 Subject: [PATCH] Thinko in buildscripts/makelsr.py and correction for said thinko. --- buildscripts/makelsr.py | 15 +++++++-------- input/tolsr/expressive/GNUmakefile | 2 -- input/tolsr/parts/GNUmakefile | 2 -- input/tolsr/text/GNUmakefile | 2 -- 4 files changed, 7 insertions(+), 14 deletions(-) diff --git a/buildscripts/makelsr.py b/buildscripts/makelsr.py index bc79cf8839..ac206a2ea4 100755 --- a/buildscripts/makelsr.py +++ b/buildscripts/makelsr.py @@ -23,12 +23,13 @@ def copy_dir_with_test(srcdir, destdir): return file_names = os.listdir (srcdir) for file in file_names: - src = os.path.join (srcdir, file) - dest = os.path.join (destdir, file) - copy_with_warning(src, dest) - s = os.system('lilypond -dsafe -dbackend=svg -o /tmp/lsrtest ' + dest) - if s: - notsafe.append(dest) + if (file.endswith ('.ly')): + src = os.path.join (srcdir, file) + dest = os.path.join (destdir, file) + copy_with_warning(src, dest) + s = os.system('lilypond -dsafe -dbackend=svg -o /tmp/lsrtest ' + dest) + if s: + notsafe.append(dest) for dir in dirs: @@ -45,7 +46,6 @@ for dir in dirs: if (file.endswith ('.ly')): if (file[:3] != 'AAA'): os.remove( os.path.join(destdir,file) ) - ## copy in new files from LSR download copy_dir_with_test( srcdir, destdir ) ## copy in new files in source tree @@ -62,4 +62,3 @@ print "Unsafe files printed in lsr-unsafe.txt: CHECK MANUALLY!" print " xargs git-diff < lsr-unsafe.txt" print - diff --git a/input/tolsr/expressive/GNUmakefile b/input/tolsr/expressive/GNUmakefile index 432f8c1c4f..3819fda13a 100644 --- a/input/tolsr/expressive/GNUmakefile +++ b/input/tolsr/expressive/GNUmakefile @@ -1,5 +1,3 @@ -%% Do not edit this file; it is auto-generated from LSR! - depth = ../../../ STEPMAKE_TEMPLATES=documentation texinfo tex diff --git a/input/tolsr/parts/GNUmakefile b/input/tolsr/parts/GNUmakefile index 432f8c1c4f..3819fda13a 100644 --- a/input/tolsr/parts/GNUmakefile +++ b/input/tolsr/parts/GNUmakefile @@ -1,5 +1,3 @@ -%% Do not edit this file; it is auto-generated from LSR! - depth = ../../../ STEPMAKE_TEMPLATES=documentation texinfo tex diff --git a/input/tolsr/text/GNUmakefile b/input/tolsr/text/GNUmakefile index 432f8c1c4f..3819fda13a 100644 --- a/input/tolsr/text/GNUmakefile +++ b/input/tolsr/text/GNUmakefile @@ -1,5 +1,3 @@ -%% Do not edit this file; it is auto-generated from LSR! - depth = ../../../ STEPMAKE_TEMPLATES=documentation texinfo tex -- 2.39.5