summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2003-08-04 14:32:56 +0000
committerache <ache@FreeBSD.org>2003-08-04 14:32:56 +0000
commitc63e547aed16652c79a54a9a44fbcc618ae56d7c (patch)
tree09b060338da1e68ab96b9d2cacfd43f3df8f6655
parent3cc2a731d243e9ffa17daac04b6f303055a807d8 (diff)
downloadFreeBSD-src-c63e547aed16652c79a54a9a44fbcc618ae56d7c.zip
FreeBSD-src-c63e547aed16652c79a54a9a44fbcc618ae56d7c.tar.gz
Use tr '[:lower:]' '[:upper:]' to work with any locale
-rw-r--r--sbin/route/Makefile2
-rw-r--r--usr.sbin/named/Makefile.maninc20
2 files changed, 11 insertions, 11 deletions
diff --git a/sbin/route/Makefile b/sbin/route/Makefile
index d9835cf..5f8b501 100644
--- a/sbin/route/Makefile
+++ b/sbin/route/Makefile
@@ -11,7 +11,7 @@ CLEANFILES+=keywords.h _keywords.tmp
keywords.h: keywords
sed -e '/^#/d' -e '/^$$/d' ${.CURDIR}/keywords > _keywords.tmp
- tr a-z A-Z < _keywords.tmp | paste _keywords.tmp - | \
+ tr '[:lower:]' '[:upper:]' < _keywords.tmp | paste _keywords.tmp - | \
awk '{ \
if (NF > 1) \
printf "#define\tK_%s\t%d\n\t{\"%s\", K_%s},\n", \
diff --git a/usr.sbin/named/Makefile.maninc b/usr.sbin/named/Makefile.maninc
index 8e7e07e..913161a 100644
--- a/usr.sbin/named/Makefile.maninc
+++ b/usr.sbin/named/Makefile.maninc
@@ -12,25 +12,25 @@ FORMAT_EXT= 5
DESC_EXT= 7
SYS_OPS_EXT= 8
-EXT_SED_CMD = INDOT_U=`echo "${INDOT}"|tr "[a-z]" "[A-Z]"`; \
+EXT_SED_CMD = INDOT_U=`echo "${INDOT}"|tr "[:lower:]" "[:upper:]"`; \
export INDOT_U; \
- XFER_INDOT_U=`echo "${XFER_INDOT}"|tr "[a-z]" "[A-Z]"`; \
+ XFER_INDOT_U=`echo "${XFER_INDOT}"|tr "[:lower:]" "[:upper:]"`; \
export XFER_INDOT_U; \
- CMD_EXT_U=`echo "${CMD_EXT}"|tr "[a-z]" "[A-Z]"`; \
+ CMD_EXT_U=`echo "${CMD_EXT}"|tr "[:lower:]" "[:upper:]"`; \
export CMD_EXT_U; \
- SYS_OPS_EXT_U=`echo "${SYS_OPS_EXT}"|tr "[a-z]" "[A-Z]"`; \
+ SYS_OPS_EXT_U=`echo "${SYS_OPS_EXT}"|tr "[:lower:]" "[:upper:]"`; \
export SYS_OPS_EXT_U; \
- LIB_NETWORK_EXT_U=`echo "${LIB_NETWORK_EXT}"|tr "[a-z]" "[A-Z]"`; \
+ LIB_NETWORK_EXT_U=`echo "${LIB_NETWORK_EXT}"|tr "[:lower:]" "[:upper:]"`; \
export LIB_NETWORK_EXT_U; \
- FORMAT_EXT_U=`echo "${FORMAT_EXT}"|tr "[a-z]" "[A-Z]"`; \
+ FORMAT_EXT_U=`echo "${FORMAT_EXT}"|tr "[:lower:]" "[:upper:]"`; \
export FORMAT_EXT_U; \
- DESC_EXT_U=`echo "${DESC_EXT}"|tr "[a-z]" "[A-Z]"`; \
+ DESC_EXT_U=`echo "${DESC_EXT}"|tr "[:lower:]" "[:upper:]"`; \
export DESC_EXT_U; \
- SYSCALL_EXT_U=`echo "${SYSCALL_EXT}"|tr "[a-z]" "[A-Z]"`; \
+ SYSCALL_EXT_U=`echo "${SYSCALL_EXT}"|tr "[:lower:]" "[:upper:]"`; \
export SYSCALL_EXT_U; \
- BSD_SYSCALL_EXT_U=`echo "${BSD_SYSCALL_EXT}"|tr "[a-z]" "[A-Z]"`; \
+ BSD_SYSCALL_EXT_U=`echo "${BSD_SYSCALL_EXT}"|tr "[:lower:]" "[:upper:]"`; \
export BSD_SYSCALL_EXT_U; \
- LIB_C_EXT_U=`echo "${LIB_C_EXT}"|tr "[a-z]" "[A-Z]"`; \
+ LIB_C_EXT_U=`echo "${LIB_C_EXT}"|tr "[:lower:]" "[:upper:]"`; \
export LIB_C_EXT_U; \
sed -e "s/@INDOT@/${INDOT}/g" \
-e "s/@INDOT_U@/$${INDOT_U}/g" \
OpenPOWER on IntegriCloud