+2006-05-31 Han-Wen Nienhuys <hanwen@lilypond.org>
+
+ * buildscripts/output-distance.py (ComparisonData.compare_trees):
+ fixes. Don't follow symlinks.
+ (ComparisonData.create_html_result_page): remove previous results.
+
+ * scripts/lilypond-book.py (PREAMBLE_LY): spacing fixes.
+
2006-05-31 Jan Nieuwenhuizen <janneke@gnu.org>
* config.make.in (datadir): Add datarootdir to silence autoconf.
def compare_trees (self, dir1, dir2):
self.compare_directories (dir1, dir2)
- (root, files, dirs) = os.walk (dir1).next ()
+ (root, dirs, files) = os.walk (dir1).next ()
for d in dirs:
d1 = os.path.join (dir1, d)
d2 = os.path.join (dir2, d)
+
+ if os.path.islink (d1) or os.path.islink (d2):
+ continue
if os.path.isdir (d2):
self.compare_trees (d1, d2)
html = ''
old_prefix = os.path.split (dir1)[1]
- os.mkdir (dir2 + '/' + old_prefix)
+
+ dest_dir = os.path.join (dir2, old_prefix)
+ shutil.rmtree (dest_dir, ignore_errors=True)
+ os.mkdir (dest_dir)
for (score, oldfile, newfile) in results:
old_base = re.sub ("-[0-9]+.signature", '', os.path.split (oldfile)[1])
new_base = re.sub ("-[0-9]+.signature", '', newfile)
for ext in 'png', 'ly':
- shutil.copy2 (old_base + '.' + ext, dir2 + '/' + old_prefix)
+ shutil.copy2 (old_base + '.' + ext, dest_dir)
img_1 = os.path.join (old_prefix, old_base + '.png')
ly_1 = os.path.join (old_prefix, old_base + '.ly')
#(set! toplevel-score-handler print-score-with-defaults)
#(set! toplevel-music-handler
- (lambda (p m)
- (if (not (eq? (ly:music-property m \'void) #t))
- (print-score-with-defaults
- p (scorify-music m p)))))
+ (lambda (p m)
+ (if (not (eq? (ly:music-property m \'void) #t))
+ (print-score-with-defaults
+ p (scorify-music m p)))))
#(ly:set-option (quote no-point-and-click))
#(define inside-lilypond-book #t)
%% ****************************************************************
\paper {
- #(define dump-extents #t)
- %(font_dump_setting)s
- %(paper_string)s
+ #(define dump-extents #t)
+ %(font_dump_setting)s
+ %(paper_string)s
}
\layout {
- %(layout_string)s
+ %(layout_string)s
}
'''