# HG changeset patch # User Jim Meyering # Date 1259499425 -3600 # Node ID cfcde3448971747214b07eb9cd17f0464f353ae2 # Parent 5a0b2165f31b1d51546e43ad600443808cbebefb 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. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-11-29 Jim Meyering + + 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 userspec: depend on the inttostr module, too diff --git a/build-aux/bootstrap b/build-aux/bootstrap --- 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 |