test:
- rm input/regression/out-test/collated-files.html
+ rm -f input/regression/out-test/collated-files.html
$(MAKE) -C input/regression/ out=test LILYPOND_BOOK_LILYPOND_FLAGS="--backend=eps --formats=ps $(LILYPOND_JOBS) -dseparate-log-files -dinclude-eps-fonts -dgs-load-fonts --header=texidoc -I $(top-src-dir)/input/manual -ddump-profile -dcheck-internal-types -ddump-signatures -danti-alias-factor=1" LILYPOND_BOOK_VERBOSE= out-test/collated-files.html
@find input ly -name '*.ly' -print |grep -v 'out.*/' | xargs grep '\\version' -L | grep -v "standard input" |sed 's/^/**** Missing version: /g'
self.contents = (self.get_content (self.files[0]),
self.get_content (self.files[1]))
+ def link_files_for_html (self, old_dir, new_dir, dest_dir):
+ for f in self.files:
+ link_file (f, os.path.join (dest_dir, f))
+
def name (self):
name = os.path.basename (self.files[0])
name = os.path.splitext (name)[0]
dist = 0.0
for k in ('time', 'cells'):
- (v1,v2) = (r[0].get (k ,0),
- r[1].get (k ,0))
- if v1 + v2 <= 0:
+ (v1,v2) = (r[0].get (k , -1),
+ r[1].get (k , -1))
+ if v1 < 0 or v2 < 0 or float (v1 + v2) == 0.0:
continue
ratio = v2 / float (v1+v2)
class TextFileCompareLink (FileCompareLink):
def calc_distance (self):
import difflib
- diff = difflib.unified_diff (self.contents[0].split ('\n'),
- self.contents[1].split ('\n'),
+ diff = difflib.unified_diff (self.contents[0].strip().split ('\n'),
+ self.contents[1].strip().split ('\n'),
fromfiledate = self.files[0],
tofiledate = self.files[1]
)
#include "hairpin.hh"
#include "dimensions.hh"
-#include "font-interface.hh"
#include "international.hh"
#include "line-interface.hh"
-#include "lookup.hh"
#include "output-def.hh"
#include "paper-column.hh"
#include "pointer-group-interface.hh"
#include "spanner.hh"
#include "staff-symbol-referencer.hh"
#include "text-interface.hh"
+#include "note-column.hh"
#include "warn.hh"
MAKE_SCHEME_CALLBACK (Hairpin, after_line_breaking, 1);
}
else
{
- x_points[d] = e[d];
+ if (Note_column::has_interface (b)
+ && Note_column::has_rests (b))
+ x_points[d] = e[-d];
+ else
+ x_points[d] = e[d];
+
Item *bound = me->get_bound (d);
if (bound->is_non_musical (bound))
x_points[d] -= d * padding;
(- (tms:utime t)
(ly:assoc-get 'gc-time-taken stats))
- (ly:assoc-get 'total-cells-allocated stats 0)
+ ;; unreliable...
+ ;;(ly:assoc-get 'total-cells-allocated stats 0)
;; difficult to put memory amount stats into here.
)))