From: Han-Wen Nienhuys Date: Thu, 11 Jan 2007 14:18:15 +0000 (+0100) Subject: create .html before working on images. X-Git-Tag: release/2.11.11-1~4 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=111b35b27f5a1008c7bf692f16c40a487a7bd950;p=lilypond.git create .html before working on images. This speeds up viewing HTML with large changes --- diff --git a/buildscripts/output-distance.py b/buildscripts/output-distance.py index 374f7695db..54a1c00524 100644 --- a/buildscripts/output-distance.py +++ b/buildscripts/output-distance.py @@ -383,8 +383,6 @@ class FileLink: return self.file_names[oldnew] def html_record_string (self, dest_dir): - self.link_files_for_html (dest_dir) - dist = self.distance() details = self.get_distance_details () @@ -392,7 +390,7 @@ class FileLink: details_base = os.path.splitext (self.file_names[1])[0] details_base += '.details.html' fn = dest_dir + '/' + details_base - open (fn, 'w').write (details) + open_write_file (fn).write (details) details = '
(details)' % locals () @@ -931,7 +929,12 @@ class ComparisonData: dest_file = dest_dir + '/index.html' open_write_file (dest_file).write (html) + + + for link in changed: + link.link_files_for_html (dest_dir) + def print_results (self, threshold): self.write_text_result_page ('', threshold)