commit 616c3ef1174e2f96518c2f76209e34aa202062e1
parent 12652d3cf23b711a66c1c36d1c991c9216848d1b
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date: Wed, 13 Dec 2023 09:23:57 +0000
More tr fixing
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/tools/gen-sysdepsh.sh b/tools/gen-sysdepsh.sh
@@ -12,7 +12,7 @@ cat <<EOF
EOF
while read k v ; do
- k=$(echo "${k%%:}" | tr a-z A-Z)
+ k=$(echo "${k%%:}" | tr '[:lower:]' '[:upper:]')
if test ${k} != ${k##SIGNED} ; then
echo "#undef SKALIBS_HASUN$k"
echo "#undef SKALIBS_HAS$k"
diff --git a/tools/gen-types.sh b/tools/gen-types.sh
@@ -10,7 +10,7 @@ getbits() {
cat < src/headers/types-header
for i in short int long ; do
- I=$(echo "$i" | tr a-z A-Z)
+ I=$(echo "$i" | tr '[:lower:]' '[:upper:]')
bits=$(getbits "$sysdeps" u$i)
tools/gen-types-internal.sh u$i U$I $bits < src/headers/unsigned-template
tools/gen-types-internal.sh $i $I $bits < src/headers/signed-template
@@ -18,7 +18,7 @@ done
for i ; do
un=un
- I=$(echo "$i" | tr a-z A-Z)
+ I=$(echo "$i" | tr '[:lower:]' '[:upper:]')
bits=$(getbits "$sysdeps" $i)
if grep -qF "signed$i: yes" < "$sysdeps" ; then
un=