bootstrap: fix Solaris regression
authorEric Blake <eblake@redhat.com>
Tue, 5 Oct 2010 15:42:06 +0000 (09:42 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 5 Oct 2010 15:42:20 +0000 (09:42 -0600)
* build-aux/bootstrap (check_versions): Solaris tr still needs []
around ranges.
Reported by Pádraig Brady.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
build-aux/bootstrap

index 76d3d015bdc5057a236b88eadbbee61dfa6d40ec..e37577afc6dbe9189e689a18a5958f285db424d7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,14 @@
+2010-10-05  Eric Blake  <eblake@redhat.com>
+
+       bootstrap: fix Solaris regression
+       * build-aux/bootstrap (check_versions): Solaris tr still needs []
+       around ranges.
+       Reported by Pádraig Brady.
+
 2010-10-05  Eric Blake  <eblake@redhat.com>
 
        bootstrap: work with pkg-config
-       * build-aux/bootstrap (found_aux_dir): Also transliterate - in
+       * build-aux/bootstrap (check_versions): Also transliterate - in
        prerequisite name.
        (print_versions): Be robust to any \ in $buildreq.  Avoid listing
        prerequisites that were already found, to avoid confusion.
index 29802a1315d3e82342d7ffe33a2079cc13f382d9..49b1e5512587fd075547ffb4079f6050a163dbd6 100755 (executable)
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Print a version string.
-scriptversion=2010-10-05.14; # UTC
+scriptversion=2010-10-05.15; # UTC
 
 # Bootstrap this package from checked-out sources.
 
@@ -351,7 +351,7 @@ check_versions() {
       app=libtoolize
     fi
     # Honor $APP variables ($TAR, $AUTOCONF, etc.)
-    appvar=`echo $app | tr 'a-z-' 'A-Z_'`
+    appvar=`echo $app | tr '[a-z]-' '[A-Z]_'`
     test "$appvar" = TAR && appvar=AMTAR
     eval "app=\${$appvar-$app}"
     inst_ver=$(get_version $app)