]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
bootstrap: update from gnulib, for perl-5.11.x support
authorJim Meyering <meyering@redhat.com>
Sun, 29 Nov 2009 13:04:09 +0000 (14:04 +0100)
committerJim Meyering <meyering@redhat.com>
Sun, 29 Nov 2009 13:04:09 +0000 (14:04 +0100)
* bootstrap (get_version): Handle perl separately,
since perl-5.11's --version output is different.

bootstrap

index 1729d42b0a393e56e3006a38c685f0e8b4911ab0..a837194cb107c52d27ee826954061df9830d52c7 100755 (executable)
--- 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 |