From 9febdd82052040437f1f81ec2ed718bb7287ff32 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 1 May 2020 13:16:38 -0400 Subject: 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. --- bootstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- cgit v0.12