summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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=