diff options
Diffstat (limited to 'src/bin')
| -rw-r--r-- | src/bin/Makefile | 9 | ||||
| -rw-r--r-- | src/bin/initdb/Makefile | 5 | ||||
| -rw-r--r-- | src/bin/initdb/initdb.sh | 34 | ||||
| -rw-r--r-- | src/bin/psql/win32.mak | 7 | ||||
| -rw-r--r-- | src/bin/scripts/createdb | 4 |
5 files changed, 21 insertions, 38 deletions
diff --git a/src/bin/Makefile b/src/bin/Makefile index e0304b3709..3035f610a3 100644 --- a/src/bin/Makefile +++ b/src/bin/Makefile @@ -5,7 +5,7 @@ # Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group # Portions Copyright (c) 1994, Regents of the University of California # -# $Header: /cvsroot/pgsql/src/bin/Makefile,v 1.38 2002/08/30 18:14:21 momjian Exp $ +# $Header: /cvsroot/pgsql/src/bin/Makefile,v 1.39 2002/09/03 21:45:43 petere Exp $ # #------------------------------------------------------------------------- @@ -14,11 +14,8 @@ top_builddir = ../.. include $(top_builddir)/src/Makefile.global DIRS := initdb initlocation ipcclean pg_ctl pg_dump pg_id \ - psql scripts pg_config pg_controldata pg_resetxlog - -ifdef MULTIBYTE -DIRS += pg_encoding -endif + psql scripts pg_config pg_controldata pg_resetxlog \ + pg_encoding ifeq ($(with_tcl), yes) DIRS += pgtclsh diff --git a/src/bin/initdb/Makefile b/src/bin/initdb/Makefile index ab7fcb7445..3213c8c683 100644 --- a/src/bin/initdb/Makefile +++ b/src/bin/initdb/Makefile @@ -5,7 +5,7 @@ # Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group # Portions Copyright (c) 1994, Regents of the University of California # -# $Header: /cvsroot/pgsql/src/bin/initdb/Makefile,v 1.27 2002/06/20 20:29:41 momjian Exp $ +# $Header: /cvsroot/pgsql/src/bin/initdb/Makefile,v 1.28 2002/09/03 21:45:43 petere Exp $ # #------------------------------------------------------------------------- @@ -16,8 +16,7 @@ include $(top_builddir)/src/Makefile.global all: initdb initdb: initdb.sh $(top_builddir)/src/Makefile.global - sed -e 's/@MULTIBYTE@/$(MULTIBYTE)/g' \ - -e 's/@VERSION@/$(VERSION)/g' \ + sed -e 's/@VERSION@/$(VERSION)/g' \ -e 's,@SHELL@,$(SHELL),g' \ -e 's,@bindir@,$(bindir),g' \ -e 's,@datadir@,$(datadir),g' \ diff --git a/src/bin/initdb/initdb.sh b/src/bin/initdb/initdb.sh index 7441105e00..17ed3dee49 100644 --- a/src/bin/initdb/initdb.sh +++ b/src/bin/initdb/initdb.sh @@ -27,7 +27,7 @@ # Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group # Portions Copyright (c) 1994, Regents of the University of California # -# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.170 2002/08/31 17:14:28 tgl Exp $ +# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.171 2002/09/03 21:45:43 petere Exp $ # #------------------------------------------------------------------------- @@ -80,8 +80,6 @@ bindir='@bindir@' # Note that "datadir" is not the directory we're initializing, it's # merely how Autoconf names PREFIX/share. datadir='@datadir@' -# as set by configure --enable-multibyte[=XXX]. -MULTIBYTE='@MULTIBYTE@' # Check for echo -n vs echo \c @@ -190,7 +188,7 @@ fi # COMMAND LINE OPTIONS # 0 is the default (non-)encoding -MULTIBYTEID=0 +ENCODINGID=0 # Set defaults: debug= @@ -263,13 +261,13 @@ do # The encoding of the template1 database. Defaults to what you chose # at configure time. (see above) --encoding|-E) - MULTIBYTE="$2" + ENCODING="$2" shift;; --encoding=*) - MULTIBYTE=`echo $1 | sed 's/^--encoding=//'` + ENCODING=`echo $1 | sed 's/^--encoding=//'` ;; -E*) - MULTIBYTE=`echo $1 | sed 's/^-E//'` + ENCODING=`echo $1 | sed 's/^-E//'` ;; # Locale flags --locale) @@ -342,9 +340,7 @@ if [ "$usage" ]; then echo "Options:" echo " [-D, --pgdata] DATADIR Location for this database cluster" echo " -W, --pwprompt Prompt for a password for the new superuser" - if [ -n "$MULTIBYTE" ] ; then - echo " -E, --encoding ENCODING Set default encoding for new databases" - fi + echo " -E, --encoding ENCODING Set default encoding for new databases" echo " --locale LOCALE Initialize database cluster with given locale" echo " --lc-collate, --lc-ctype, --lc-messages LOCALE" echo " --lc-monetary, --lc-numeric, --lc-time LOCALE" @@ -363,25 +359,23 @@ if [ "$usage" ]; then fi #------------------------------------------------------------------------- -# Resolve the multibyte encoding name +# Resolve the encoding name #------------------------------------------------------------------------- -if [ "$MULTIBYTE" ] +if [ "$ENCODING" ] then - MULTIBYTEID=`$PGPATH/pg_encoding -b $MULTIBYTE` + ENCODINGID=`$PGPATH/pg_encoding -b $ENCODING` if [ "$?" -ne 0 ] then ( echo "$CMDNAME: pg_encoding failed" - echo - echo "Perhaps you did not configure PostgreSQL for multibyte support or" - echo "the program was not successfully installed." + echo "Make sure the program was installed correctly." ) 1>&2 exit 1 fi - if [ -z "$MULTIBYTEID" ] + if [ -z "$ENCODINGID" ] then - echo "$CMDNAME: $MULTIBYTE is not a valid backend encoding name" 1>&2 + echo "$CMDNAME: $ENCODING is not a valid backend encoding name" 1>&2 exit 1 fi fi @@ -418,7 +412,7 @@ then ( echo echo "initdb variables:" - for var in PGDATA datadir PGPATH MULTIBYTE MULTIBYTEID \ + for var in PGDATA datadir PGPATH ENCODING ENCODINGID \ POSTGRES_SUPERUSERNAME POSTGRES_BKI \ POSTGRES_DESCR POSTGRESQL_CONF_SAMPLE \ PG_HBA_SAMPLE PG_IDENT_SAMPLE ; do @@ -569,7 +563,7 @@ echo "$short_version" > "$PGDATA/PG_VERSION" || exit_nicely cat "$POSTGRES_BKI" \ | sed -e "s/POSTGRES/$POSTGRES_SUPERUSERNAME/g" \ - -e "s/ENCODING/$MULTIBYTEID/g" \ + -e "s/ENCODING/$ENCODINGID/g" \ | ( LC_COLLATE=`pg_getlocale COLLATE` diff --git a/src/bin/psql/win32.mak b/src/bin/psql/win32.mak index 06070a9a2a..598d2f87a0 100644 --- a/src/bin/psql/win32.mak +++ b/src/bin/psql/win32.mak @@ -43,13 +43,6 @@ CPP_PROJ=/nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D\ "_MBCS" /Fp"$(INTDIR)\psql.pch" /YX /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c \ /I ..\..\include /I ..\..\interfaces\libpq /D "HAVE_STRDUP" -!IFDEF MULTIBYTE -!IFNDEF MBFLAGS -MBFLAGS="-DMULTIBYTE=$(MULTIBYTE)" -!ENDIF -CPP_PROJ=$(MBFLAGS) $(CPP_PROJ) -!ENDIF - CPP_OBJS=.\Release/ CPP_SBRS=. diff --git a/src/bin/scripts/createdb b/src/bin/scripts/createdb index 639de5476c..bd68f4c37a 100644 --- a/src/bin/scripts/createdb +++ b/src/bin/scripts/createdb @@ -12,7 +12,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createdb,v 1.24 2002/08/10 16:57:32 petere Exp $ +# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createdb,v 1.25 2002/09/03 21:45:43 petere Exp $ # #------------------------------------------------------------------------- @@ -140,7 +140,7 @@ if [ "$usage" ]; then echo " -O, --owner=OWNER Database user to own the new database" echo " -D, --location=PATH Alternative place to store the database" echo " -T, --template=TEMPLATE Template database to copy" - echo " -E, --encoding=ENCODING Multibyte encoding for the database" + echo " -E, --encoding=ENCODING Encoding for the database" echo " -h, --host=HOSTNAME Database server host" echo " -p, --port=PORT Database server port" echo " -U, --username=USERNAME Username to connect as" |
