diff options
author | ache <ache@FreeBSD.org> | 2003-08-04 15:57:01 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2003-08-04 15:57:01 +0000 |
commit | c104713460549a375cd2e19c934b73156ef9cffc (patch) | |
tree | 82bc7d94b62b267ec7a727d627dc8bca768e0958 /usr.sbin | |
parent | b7cd756bfcec4a0ba27ce0f935a997d837aa1ec7 (diff) | |
download | FreeBSD-src-c104713460549a375cd2e19c934b73156ef9cffc.zip FreeBSD-src-c104713460549a375cd2e19c934b73156ef9cffc.tar.gz |
Use LANG=C before egrep A-Z and tr A-Z
Note: this is POSIX requirement, c-c ranges are portable only in POSIX locale
Strip [] for tr ranges
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/amd/include/newvers.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/amd/include/newvers.sh b/usr.sbin/amd/include/newvers.sh index b279c90..d1683cf 100644 --- a/usr.sbin/amd/include/newvers.sh +++ b/usr.sbin/amd/include/newvers.sh @@ -5,8 +5,8 @@ # if [ -e $1 ]; then - eval `egrep '^[A-Z]+=' $1 | grep -v COPYRIGHT` - OS=`echo ${TYPE} | tr '[A-Z]' '[a-z]'` + eval `LANG=C egrep '^[A-Z]+=' $1 | grep -v COPYRIGHT` + OS=`echo ${TYPE} | LANG=C tr 'A-Z' 'a-z'` echo '/* Define name and version of host machine (eg. solaris2.5.1) */' echo "#define HOST_OS \"${OS}${REVISION}\"" echo '/* Define only name of host machine OS (eg. solaris2) */' @@ -18,10 +18,10 @@ else cat << __NO_newvers_sh /* Define name and version of host machine (eg. solaris2.5.1) */ -#define HOST_OS "`uname -s | tr '[A-Z]' '[a-z]'``uname -r`" +#define HOST_OS "`uname -s | LANG=C tr 'A-Z' 'a-z'``uname -r`" /* Define only name of host machine OS (eg. solaris2) */ -#define HOST_OS_NAME "`uname -s | tr '[A-Z]' '[a-z]'``uname -r | sed -e 's/\..*$//'`" +#define HOST_OS_NAME "`uname -s | LANG=C tr 'A-Z' 'a-z'``uname -r | sed -e 's/\..*$//'`" /* Define only version of host machine (eg. 2.5.1) */ #define HOST_OS_VERSION "`uname -r | sed -e 's/[-([:alpha:]].*//'`" |