summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-12-13 09:23:57 +0000
committerLaurent Bercot <ska@appnovation.com>2023-12-13 09:23:57 +0000
commit616c3ef1174e2f96518c2f76209e34aa202062e1 (patch)
tree756b73d26766a92d397159620d85f89a9b0c43fc /tools
parent12652d3cf23b711a66c1c36d1c991c9216848d1b (diff)
downloadskalibs-616c3ef1174e2f96518c2f76209e34aa202062e1.tar.xz
More tr fixing
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/gen-sysdepsh.sh2
-rwxr-xr-xtools/gen-types.sh4
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/gen-sysdepsh.sh b/tools/gen-sysdepsh.sh
index 8373f8f..c699feb 100755
--- 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
index 3d5f298..6e3bad0 100755
--- 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=