1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-28 18:48:04 +03:00

Change $< to $+ in scripts Makefile, and clean up pg_encoding if logic.

This commit is contained in:
Bruce Momjian
1999-12-08 10:29:55 +00:00
parent 7cf0f634d5
commit 0dec669a0f
7 changed files with 19 additions and 16 deletions

View File

@@ -11,7 +11,7 @@
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createdb,v 1.2 1999/12/07 22:41:44 momjian Exp $
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createdb,v 1.3 1999/12/08 10:29:55 momjian Exp $
#
#-------------------------------------------------------------------------
@@ -112,9 +112,12 @@ if [ "$usage" ]; then
fi
if [ "$MB" -a -z "`pg_encoding '$MB'`" ]; then
echo "$CMDNAME: \"$MB\" is not a valid encoding name."
exit 1
if [ "$MB" ]
then if [ -z "`pg_encoding '$MB'`" ]
then
echo "$CMDNAME: \"$MB\" is not a valid encoding name."
exit 1
fi
fi
if [ -z "$dbname" ]; then