* ly/music-functions-init.ly: robustness. Don't crash if
currentBarNumber is not a number.
2006-08-09 Han-Wen Nienhuys <hanwen@lilypond.org>
+ * stepmake/aclocal.m4: version check patch (thanks MWD)
+
+ * ly/music-functions-init.ly: robustness. Don't crash if
+ currentBarNumber is not a number.
+
* VERSION (PATCH_LEVEL): bump.
2006-08-08 Han-Wen Nienhuys <hanwen@lilypond.org>
\context {
\Score
skipTypesetting = ##t
- ignoreBarChecks = ##t
+ ignoreBarChecks = ##t
}
}
(lambda (c)
(let*
((cbn (ly:context-property c 'currentBarNumber)))
- (if (not (= cbn n))
+ (if (and (number? cbn) (not (= cbn n)))
(ly:input-message location "Barcheck failed got ~a expect ~a"
cbn n))))))
## for compatibility reasons.
## grab the first version number in --version output.
- eval _ver=\"\`("$1" --version || "$1" -V) 2>&1 | grep ' [0-9][0-9]*\.[0-9]' \
+ eval _ver=\"\`("$1" --version || "$1" -V) 2>&1 | grep '\(^\| \)[0-9][0-9]*\.[0-9]' \
| head -n 1 \
| tr ' ' '\n' | grep '[0-9]\.[0-9]' | head -n 1 | sed 's/\([0-9.]*\).*/\1/g'\`\"