Commit 6dd06737 authored by Tom Lane's avatar Tom Lane

Remove configure check for how to abbreviate 'tr A-Z a-z', and instead

just use the portable form,
tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz
There were a bunch of places that weren't paying attention to configure's
result anyway (including configure itself!?); clean them up too.
parent 33bb1aee
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.19 2000/01/11 01:42:08 tgl Exp $ # $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.20 2000/05/16 02:14:14 tgl Exp $
# #
# NOTES # NOTES
# Passes any -D options on to cpp prior to generating the list # Passes any -D options on to cpp prior to generating the list
...@@ -83,7 +83,7 @@ cat > $HFILE <<FuNkYfMgRsTuFf ...@@ -83,7 +83,7 @@ cat > $HFILE <<FuNkYfMgRsTuFf
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: Gen_fmgrtab.sh.in,v 1.19 2000/01/11 01:42:08 tgl Exp $ * $Id: Gen_fmgrtab.sh.in,v 1.20 2000/05/16 02:14:14 tgl Exp $
* *
* NOTES * NOTES
* ****************************** * ******************************
...@@ -171,7 +171,7 @@ FmgrInfo *fmgr_pl_finfo; ...@@ -171,7 +171,7 @@ FmgrInfo *fmgr_pl_finfo;
*/ */
FuNkYfMgRsTuFf FuNkYfMgRsTuFf
@TR@ @TRARGS@ < $RAWFILE | \ tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' < $RAWFILE | \
awk ' awk '
BEGIN { OFS = ""; } BEGIN { OFS = ""; }
{ if (seenit[$2]++ == 0) print "#define F_", $2, " ", $1; }' >> $HFILE { if (seenit[$2]++ == 0) print "#define F_", $2, " ", $1; }' >> $HFILE
...@@ -197,7 +197,7 @@ cat > $TABCFILE <<FuNkYfMgRtAbStUfF ...@@ -197,7 +197,7 @@ cat > $TABCFILE <<FuNkYfMgRtAbStUfF
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.19 2000/01/11 01:42:08 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/Attic/Gen_fmgrtab.sh.in,v 1.20 2000/05/16 02:14:14 tgl Exp $
* *
* NOTES * NOTES
* *
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -91,7 +91,7 @@ AC_ARG_WITH(template, ...@@ -91,7 +91,7 @@ AC_ARG_WITH(template,
[ [
# lowercase $host # lowercase $host
host="`echo $host | tr '[[A-Z]]' '[[a-z]]'`" host="`echo $host | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`"
# First, try for a template exactly matching $host # First, try for a template exactly matching $host
if test -f "template/$host" if test -f "template/$host"
...@@ -118,7 +118,7 @@ else ...@@ -118,7 +118,7 @@ else
then TEMPLATE="$GUESS" then TEMPLATE="$GUESS"
else else
# Last chance ... maybe uname -s will match an entry. # Last chance ... maybe uname -s will match an entry.
TEMPLATE=`uname -s | tr '[[A-Z]]' '[[a-z]]'` TEMPLATE=`uname -s | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
fi fi
fi fi
]) ])
...@@ -613,23 +613,9 @@ AC_PATH_PROG(tar, tar) ...@@ -613,23 +613,9 @@ AC_PATH_PROG(tar, tar)
AC_PATH_PROG(split, split) AC_PATH_PROG(split, split)
AC_PATH_PROG(etags, etags) AC_PATH_PROG(etags, etags)
AC_PATH_PROG(xargs, xargs) AC_PATH_PROG(xargs, xargs)
AC_PATH_PROGS(TR, trbsd tr, NOT_FOUND)
AC_PATH_PROGS(GZCAT, gzcat zcat, gzcat) AC_PATH_PROGS(GZCAT, gzcat zcat, gzcat)
AC_CHECK_PROGS(PERL, perl,) AC_CHECK_PROGS(PERL, perl,)
dnl Check tr flags to convert from lower to upper case
TRSTRINGS="`echo ABCdef | $TR '[[a-z]]' '[[A-Z]]' 2>/dev/null | grep ABCDEF`"
TRCLASS="`echo ABCdef | $TR '[[:lower:]]' '[[:upper:]]' 2>/dev/null | grep ABCDEF`"
if test "$TRSTRINGS" = "ABCDEF"; then
TRARGS="'[[a-z]]' '[[A-Z]]'"
elif test "$TRCLASS" = "ABCDEF"; then
TRARGS="'[[:lower:]]' '[[:upper:]]'"
else
AC_MSG_ERROR("Can\'t find method to convert from upper to lower case with tr")
fi
AC_SUBST(TRARGS)
dnl Changes to look for YACC. We have three choices (in order of pref.) dnl Changes to look for YACC. We have three choices (in order of pref.)
dnl (1) We specify in YACC and YFLAGS what we want dnl (1) We specify in YACC and YFLAGS what we want
dnl (2) We have bison and we use bison -y dnl (2) We have bison and we use bison -y
......
This diff is collapsed.
...@@ -116,7 +116,7 @@ AC_ARG_WITH(template, ...@@ -116,7 +116,7 @@ AC_ARG_WITH(template,
GUESS=`grep "$host_no_ver" $TEMPLATEDIR/.similar | sed 's/.*=//' | tail -1` GUESS=`grep "$host_no_ver" $TEMPLATEDIR/.similar | sed 's/.*=//' | tail -1`
if test "$GUESS" if test "$GUESS"
then TEMPLATE="$GUESS" then TEMPLATE="$GUESS"
else TEMPLATE=`uname -s | tr A-Z a-z` else TEMPLATE=`uname -s | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
fi fi
]) ])
AC_MSG_RESULT($TEMPLATE) AC_MSG_RESULT($TEMPLATE)
......
#! /bin/sh #! /bin/sh
# $Header: /cvsroot/pgsql/src/test/mb/mbregress.sh,v 1.4 2000/02/27 10:20:13 ishii Exp $ # $Header: /cvsroot/pgsql/src/test/mb/mbregress.sh,v 1.5 2000/05/16 02:14:14 tgl Exp $
if echo '\c' | grep -s c >/dev/null 2>&1 if echo '\c' | grep -s c >/dev/null 2>&1
then then
...@@ -33,7 +33,7 @@ do ...@@ -33,7 +33,7 @@ do
unset PGCLIENTENCODING unset PGCLIENTENCODING
else else
destroydb $i >/dev/null 2>&1 destroydb $i >/dev/null 2>&1
createdb -E `echo $i|tr "[a-z]" "[A-Z]"` $i >/dev/null createdb -E `echo $i | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` $i >/dev/null
$PSQL $i < sql/${i}.sql > results/${i}.out 2>&1 $PSQL $i < sql/${i}.sql > results/${i}.out 2>&1
fi fi
......
#!/bin/sh #!/bin/sh
# $Header: /cvsroot/pgsql/src/test/regress/Attic/regress.sh,v 1.49 2000/04/07 13:40:45 thomas Exp $ # $Header: /cvsroot/pgsql/src/test/regress/Attic/regress.sh,v 1.50 2000/05/16 02:14:15 tgl Exp $
# #
if [ $# -eq 0 ]; then if [ $# -eq 0 ]; then
echo "Syntax: $0 <hostname> [extra-tests]" echo "Syntax: $0 <hostname> [extra-tests]"
...@@ -69,7 +69,7 @@ dropdb $HOSTLOC regression ...@@ -69,7 +69,7 @@ dropdb $HOSTLOC regression
echo "=============== creating new regression database... =================" echo "=============== creating new regression database... ================="
if [ -n "$MULTIBYTE" ];then if [ -n "$MULTIBYTE" ];then
mbtests=`echo $MULTIBYTE | tr "[A-Z]" "[a-z]"` mbtests=`echo $MULTIBYTE | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
PGCLIENTENCODING="$MULTIBYTE" PGCLIENTENCODING="$MULTIBYTE"
export PGCLIENTENCODING export PGCLIENTENCODING
ENCODINGOPT="-E $MULTIBYTE" ENCODINGOPT="-E $MULTIBYTE"
......
#!/bin/sh #!/bin/sh
# #
# $Header: /cvsroot/pgsql/src/test/regress/Attic/run_check.sh,v 1.13 2000/04/08 01:54:47 tgl Exp $ # $Header: /cvsroot/pgsql/src/test/regress/Attic/run_check.sh,v 1.14 2000/05/16 02:14:15 tgl Exp $
# ---------- # ----------
# Check call syntax # Check call syntax
...@@ -219,7 +219,7 @@ PGDATESTYLE="Postgres,US"; export PGDATESTYLE ...@@ -219,7 +219,7 @@ PGDATESTYLE="Postgres,US"; export PGDATESTYLE
# ---------- # ----------
echo "=============== Creating regression database... ================" echo "=============== Creating regression database... ================"
if [ -n "$MULTIBYTE" ];then if [ -n "$MULTIBYTE" ];then
mbtests=`echo $MULTIBYTE | tr "[A-Z]" "[a-z]"` mbtests=`echo $MULTIBYTE | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
PGCLIENTENCODING="$MULTIBYTE" PGCLIENTENCODING="$MULTIBYTE"
export PGCLIENTENCODING export PGCLIENTENCODING
ENCODINGOPT="-E $MULTIBYTE" ENCODINGOPT="-E $MULTIBYTE"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment