Skip to content
Snippets Groups Projects
Commit b1bffc14 authored by Markus Blatt's avatar Markus Blatt
Browse files

Use tr instead of ${var,,} and ${var^^} which according to Elias is

not available in older bash versions.

[[Imported from SVN: r7462]]
parent 5e01dbcb
No related branches found
No related tags found
No related merge requests found
...@@ -586,8 +586,8 @@ check_version() { ...@@ -586,8 +586,8 @@ check_version() {
default_am2cmake_options(){ default_am2cmake_options(){
while test "$#" -gt 0; do while test "$#" -gt 0; do
local package=$1 local package=$1
local lowercase=${1,,} local lowercase=`tr 'A-Z' 'a-z' <<< $1`
local uppercase=${1^^} local uppercase=`tr 'a-z' 'A-Z' <<< $1`
shift shift
if eval test \$"$lowercase"_processed ; then if eval test \$"$lowercase"_processed ; then
continue continue
...@@ -622,8 +622,8 @@ default_am2cmake_options(){ ...@@ -622,8 +622,8 @@ default_am2cmake_options(){
default_am2cmake_libraries(){ default_am2cmake_libraries(){
while test "$#" -gt 0; do while test "$#" -gt 0; do
lib=$1 lib=$1
lowercase=${1,,} local lowercase=`tr 'A-Z' 'a-z' <<< $1`
uppercase=${1^^} local uppercase=`tr 'a-z' 'A-Z' <<< $1`
shift shift
if eval test \$"$lowercase"-lib_processed; then if eval test \$"$lowercase"-lib_processed; then
continue continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment