summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-11-29 14:04:09 +0100
committerJim Meyering <meyering@redhat.com>2009-11-29 14:04:09 +0100
commitb92e0455e1c70437a3c0553abc103727553fe238 (patch)
tree1784d551987c125df4171b133ea8cd6d5f69e36f
parent3910144405500132150cf0fb835bfc1c0eeb2c83 (diff)
downloadcoreutils-b92e0455e1c70437a3c0553abc103727553fe238.tar.xz
bootstrap: update from gnulib, for perl-5.11.x support
* bootstrap (get_version): Handle perl separately, since perl-5.11's --version output is different.
-rwxr-xr-xbootstrap7
1 files changed, 7 insertions, 0 deletions
diff --git a/bootstrap b/bootstrap
index 1729d42b0..a837194cb 100755
--- a/bootstrap
+++ b/bootstrap
@@ -311,6 +311,13 @@ sort_ver() { # sort -V is not generally available
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 |