summaryrefslogtreecommitdiffstats
path: root/bootstrap
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-05-01 17:16:38 (GMT)
committerBrad King <brad.king@kitware.com>2020-05-04 13:41:52 (GMT)
commit9febdd82052040437f1f81ec2ed718bb7287ff32 (patch)
tree4b341e7a5a4b69eae540fef6766000da70a639ab /bootstrap
parent615129f3ebd308abeaaee7f5f0689e7fc4616c28 (diff)
downloadCMake-9febdd82052040437f1f81ec2ed718bb7287ff32.zip
CMake-9febdd82052040437f1f81ec2ed718bb7287ff32.tar.gz
CMake-9febdd82052040437f1f81ec2ed718bb7287ff32.tar.bz2
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 d529f3b..03d9ef0 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.