summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-05-01 13:16:38 -0400
committerBrad King <brad.king@kitware.com>2020-05-04 09:41:52 -0400
commit9febdd82052040437f1f81ec2ed718bb7287ff32 (patch)
tree4b341e7a5a4b69eae540fef6766000da70a639ab /bootstrap
parent615129f3ebd308abeaaee7f5f0689e7fc4616c28 (diff)
downloadcmake-9febdd82052040437f1f81ec2ed718bb7287ff32.tar.gz
bootstrap: Use 'tr' more portably
Since commit 380bd70cc2 (bootstrap: implement cmake_toupper() using tr, 2017-06-07, v3.10.0-rc1~548^2~2) we use `tr` to convert from lower to upper case. However, the character classes `[:lower:]` and `[:upper:]` result in a "Bad string" error message on Solaris. Use `[a-z]` and `[A-Z]` instead.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap2
1 files changed, 1 insertions, 1 deletions
diff --git a/bootstrap b/bootstrap
index d529f3b294..03d9ef0df9 100755
--- a/bootstrap
+++ b/bootstrap
@@ -38,7 +38,7 @@ cmake_install_dest_default()
cmake_toupper()
{
- echo "$1" | tr '[:lower:]' '[:upper:]'
+ echo "$1" | tr '[a-z]' '[A-Z]'
}
# Detect system and directory information.