diff options
author | Brad King <brad.king@kitware.com> | 2020-05-01 17:16:38 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-05-04 13:41:52 (GMT) |
commit | 9febdd82052040437f1f81ec2ed718bb7287ff32 (patch) | |
tree | 4b341e7a5a4b69eae540fef6766000da70a639ab /bootstrap | |
parent | 615129f3ebd308abeaaee7f5f0689e7fc4616c28 (diff) | |
download | CMake-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-x | bootstrap | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. |