Mercurial > hg > octave-nkf > gnulib-hg
changeset 12375:cfcde3448971
bootstrap: handle perl-5.11's changed --version output
* build-aux/bootstrap (get_version): Handle perl separately,
since perl-5.11's --version output is different.
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Sun, 29 Nov 2009 13:57:05 +0100 |
parents | 5a0b2165f31b |
children | 4b5c20d82057 |
files | ChangeLog build-aux/bootstrap |
diffstat | 2 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-11-29 Jim Meyering <meyering@redhat.com> + + bootstrap: handle perl-5.11's changed --version output + * build-aux/bootstrap (get_version): Handle perl separately, + since perl-5.11's --version output is different. + 2009-11-28 Jim Meyering <meyering@redhat.com> userspec: depend on the inttostr module, too
--- a/build-aux/bootstrap +++ b/build-aux/bootstrap @@ -311,6 +311,13 @@ get_version() { app=$1 + # perl 5.11's --version output does not fit the mold, + # handle perl as a special case. + if test "_$app" = _perl; then + perl -le 'print $]' || return 1 + return 0 + fi + $app --version >/dev/null 2>&1 || return 1 $app --version 2>&1 |