mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Merge pull request #5599 from orbea/tr
qb: Use POSIX character classes instead of character ranges.
This commit is contained in:
commit
c2a5296ee3
@ -30,7 +30,7 @@ EOF
|
||||
echo "Custom options:"
|
||||
|
||||
while IFS='=#' read VAR VAL COMMENT; do
|
||||
VAR=$(echo "${VAR##HAVE_}" | tr '[A-Z]' '[a-z]')
|
||||
VAR=$(echo "${VAR##HAVE_}" | tr '[:upper:]' '[:lower:]')
|
||||
case "$VAR" in
|
||||
'c89_'*) true;;
|
||||
*)
|
||||
@ -50,7 +50,7 @@ EOF
|
||||
}
|
||||
|
||||
opt_exists() # $opt is returned if exists in OPTS
|
||||
{ opt=$(echo "$1" | tr '[a-z]' '[A-Z]')
|
||||
{ opt=$(echo "$1" | tr '[:lower:]' '[:upper:]')
|
||||
for OPT in $OPTS; do [ "$opt" = "$OPT" ] && return; done
|
||||
echo "Unknown option $2"; exit 1
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user