From: Jan Nieuwenhuizen Date: Wed, 31 May 2006 22:56:15 +0000 (+0000) Subject: * stepmake/aclocal.m4: Robustification for (gcc) version detection. X-Git-Tag: release/2.8.4~10 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=2192e124f08ed0464844af5135ddf955e2d28468;p=lilypond.git * stepmake/aclocal.m4: Robustification for (gcc) version detection. * cygwin/postinstall-lilypond.sh: Do not fail if info docs aren't available. This should be moved to postinstall-lilypond-doc. --- diff --git a/ChangeLog b/ChangeLog index 03bcc380c3..b46246a796 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-06-01 Jan Nieuwenhuizen + + * stepmake/aclocal.m4: Robustification for (gcc) version detection. + + * cygwin/postinstall-lilypond.sh: Do not fail if info docs aren't + available. This should be moved to postinstall-lilypond-doc. + 2006-06-01 Han-Wen Nienhuys * lily/ledger-line-engraver.cc (acknowledge_staff_symbol): only diff --git a/cygwin/postinstall-lilypond.sh b/cygwin/postinstall-lilypond.sh index fbffab2c3e..257100cf7f 100644 --- a/cygwin/postinstall-lilypond.sh +++ b/cygwin/postinstall-lilypond.sh @@ -26,4 +26,5 @@ regtool set '/root/LilyPond/shell/generate/' '&Generate PDF ...' regtool add '/root/LilyPond/shell/generate/command' regtool set '/root/LilyPond/shell/generate/command/' $ROOT'\bin\bash.exe --login -c '"'"'/usr/bin/lily-wins "%1"'"'" -(cd /usr/share/info/lilypond && ln -sf ../../doc/lilypond/Documentation/user/out-www/*png .) +# FIXME: move to new postinstall-lilypond-doc.sh +[ -d /usr/share/info/lilypond ] && (cd /usr/share/info/lilypond && ln -sf ../../doc/lilypond/Documentation/user/out-www/*png .) diff --git a/stepmake/aclocal.m4 b/stepmake/aclocal.m4 index 5a9e739ad9..482c73a3cb 100644 --- a/stepmake/aclocal.m4 +++ b/stepmake/aclocal.m4 @@ -32,8 +32,8 @@ AC_DEFUN(STEPMAKE_GET_VERSION, [ ## FIXME: what systems still do not have $() in /bin/sh? eval _ver=\"\`("$1" --version || "$1" -V) 2>&1 | grep '[0-9]\.[0-9]' \ | head -n 1 \ - | sed -e 's/.*[^-.0-9]\([0-9][0-9]*\.[0-9][.0-9]*\).*/\1/' \ - -e 's/^[^.0-9]*//' -e 's/[^.0-9]*$//'\`\" + | sed -e 's/\([0-9][0-9]*\.[0-9][.0-9]*\).*/\1/' \ + -e 's/\([^0-9]*\|^\) //' -e 's/[^0-9]*$//'\`\" if test -z "$_ver"; then ## If empty, try date [fontforge] eval _ver=\"\`("$1" --version || "$1" -V) 2>&1 | grep '[0-9]\{6,8\}' \