test:
- rm -f input/regression/out-test/collated-files.html
- $(MAKE) -C input/regression/ out=$(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
+ rm -f input/regression/out-$(OUT_TEST)/collated-files.html
+ $(MAKE) -C input/regression/ out=$(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-$(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'
if test -d .git ; then \
echo -e 'HEAD is:\n\n\t' ; \
class GitFileCompareLink (FileCompareLink):
def get_cell (self, oldnew):
- return self.contents[oldnew]
+ str = self.contents[oldnew]
+
+ # truncate long lines
+ str = '\n'.join ([l[:80] for l in str.split ('\n')])
+
+
+ str = '<font size="-2"><pre>%s</pre></font>' % str
+ return str
def calc_distance (self):
if self.contents[0] == self.contents[1]:
self.diff_lines = [l for l in diff]
self.diff_lines = self.diff_lines[2:]
- return float (len ([l for l in self.diff_lines if l[0] in '-+']))
+ return math.sqrt (float (len ([l for l in self.diff_lines if l[0] in '-+'])))
def get_cell (self, oldnew):
str = ''
}
for k in ('time', 'cells'):
- dist += math.exp (self.get_ratio (k) * factor[k]) - 1
+ dist += math.tan (self.get_ratio (k) /(0.5* math.pi)) * factor[k] - 1
dist = min (dist, 100)
return dist