Commit 533d5166 authored by Peter Eisentraut's avatar Peter Eisentraut

Removed MBFLAGS from makefiles since it's now done in include/config.h.

parent d4aab2c0
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# Makefile for access/common # Makefile for access/common
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/access/common/Makefile,v 1.15 1999/12/13 22:32:20 momjian Exp $ # $Header: /cvsroot/pgsql/src/backend/access/common/Makefile,v 1.16 2000/01/19 02:58:50 petere Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -13,10 +13,6 @@ include ../../../Makefile.global ...@@ -13,10 +13,6 @@ include ../../../Makefile.global
CFLAGS+=-I../.. CFLAGS+=-I../..
ifdef MULTIBYTE
CFLAGS+= $(MBFLAGS)
endif
OBJS = heaptuple.o indextuple.o indexvalid.o printtup.o \ OBJS = heaptuple.o indextuple.o indexvalid.o printtup.o \
scankey.o tupdesc.o scankey.o tupdesc.o
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# Makefile for the bootstrap module # Makefile for the bootstrap module
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.20 2000/01/16 20:04:53 petere Exp $ # $Header: /cvsroot/pgsql/src/backend/bootstrap/Makefile,v 1.21 2000/01/19 02:58:51 petere Exp $
# #
# #
# We must build bootparse.c and bootscanner.c with yacc and lex and sed, # We must build bootparse.c and bootscanner.c with yacc and lex and sed,
...@@ -22,9 +22,6 @@ SRCDIR= ../.. ...@@ -22,9 +22,6 @@ SRCDIR= ../..
include ../../Makefile.global include ../../Makefile.global
CFLAGS += -I.. CFLAGS += -I..
ifdef MULTIBYTE
CFLAGS+= $(MBFLAGS)
endif
ifeq ($(CC), gcc) ifeq ($(CC), gcc)
CFLAGS+= -Wno-error CFLAGS+= -Wno-error
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# Makefile for commands # Makefile for commands
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/commands/Makefile,v 1.22 1999/12/13 22:32:38 momjian Exp $ # $Header: /cvsroot/pgsql/src/backend/commands/Makefile,v 1.23 2000/01/19 02:58:51 petere Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -13,10 +13,6 @@ include ../../Makefile.global ...@@ -13,10 +13,6 @@ include ../../Makefile.global
CFLAGS += -I.. CFLAGS += -I..
ifdef MULTIBYTE
CFLAGS+= $(MBFLAGS)
endif
OBJS = async.o creatinh.o command.o comment.o copy.o indexcmds.o define.o \ OBJS = async.o creatinh.o command.o comment.o copy.o indexcmds.o define.o \
remove.o rename.o vacuum.o view.o cluster.o \ remove.o rename.o vacuum.o view.o cluster.o \
explain.o sequence.o trigger.o user.o proclang.o \ explain.o sequence.o trigger.o user.o proclang.o \
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# Makefile for libpq subsystem (backend half of libpq interface) # Makefile for libpq subsystem (backend half of libpq interface)
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/libpq/Makefile,v 1.16 1999/12/13 22:32:43 momjian Exp $ # $Header: /cvsroot/pgsql/src/backend/libpq/Makefile,v 1.17 2000/01/19 02:58:52 petere Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -19,10 +19,6 @@ CFLAGS+= $(KRBFLAGS) ...@@ -19,10 +19,6 @@ CFLAGS+= $(KRBFLAGS)
LDFLAGS+= $(KRBLIBS) LDFLAGS+= $(KRBLIBS)
endif endif
ifdef MULTIBYTE
CFLAGS+= $(MBFLAGS)
endif
OBJS = be-dumpdata.o be-fsstubs.o be-pqexec.o portal.o portalbuf.o \ OBJS = be-dumpdata.o be-fsstubs.o be-pqexec.o portal.o portalbuf.o \
auth.o hba.o crypt.o password.o \ auth.o hba.o crypt.o password.o \
pqcomm.o pqformat.o pqpacket.o pqsignal.o util.o pqcomm.o pqformat.o pqpacket.o pqsignal.o util.o
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# Makefile for parser # Makefile for parser
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/parser/Makefile,v 1.23 1999/12/13 22:33:03 momjian Exp $ # $Header: /cvsroot/pgsql/src/backend/parser/Makefile,v 1.24 2000/01/19 02:58:53 petere Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -17,10 +17,6 @@ ifeq ($(CC), gcc) ...@@ -17,10 +17,6 @@ ifeq ($(CC), gcc)
CFLAGS+= -Wno-error CFLAGS+= -Wno-error
endif endif
ifdef MULTIBYTE
CFLAGS+= $(MBFLAGS)
endif
OBJS= analyze.o gram.o keywords.o parser.o parse_agg.o parse_clause.o \ OBJS= analyze.o gram.o keywords.o parser.o parse_agg.o parse_clause.o \
parse_expr.o parse_func.o parse_node.o parse_oper.o parse_relation.o \ parse_expr.o parse_func.o parse_node.o parse_oper.o parse_relation.o \
parse_type.o parse_coerce.o parse_target.o scan.o scansup.o parse_type.o parse_coerce.o parse_target.o scan.o scansup.o
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# Makefile for regex # Makefile for regex
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/regex/Makefile,v 1.11 1999/12/13 22:33:23 momjian Exp $ # $Header: /cvsroot/pgsql/src/backend/regex/Makefile,v 1.12 2000/01/19 02:58:53 petere Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -19,7 +19,6 @@ DEBUGOBJ = ...@@ -19,7 +19,6 @@ DEBUGOBJ =
OBJS = regcomp.o regerror.o regexec.o regfree.o OBJS = regcomp.o regerror.o regexec.o regfree.o
ifdef MULTIBYTE ifdef MULTIBYTE
CFLAGS+= $(MBFLAGS)
DEBUGOBJ += ../utils/mb/SUBSYS.o DEBUGOBJ += ../utils/mb/SUBSYS.o
endif endif
......
...@@ -37,6 +37,8 @@ ...@@ -37,6 +37,8 @@
* @(#)engine.c 8.5 (Berkeley) 3/20/94 * @(#)engine.c 8.5 (Berkeley) 3/20/94
*/ */
#include "postgres.h"
/* /*
* The matching engine and friends. This file is #included by regexec.c * The matching engine and friends. This file is #included by regexec.c
* after suitable #defines of a variety of macros used herein, so that * after suitable #defines of a variety of macros used herein, so that
......
...@@ -42,6 +42,8 @@ static char sccsid[] = "@(#)regcomp.c 8.5 (Berkeley) 3/20/94"; ...@@ -42,6 +42,8 @@ static char sccsid[] = "@(#)regcomp.c 8.5 (Berkeley) 3/20/94";
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */
#include "postgres.h"
#include <sys/types.h> #include <sys/types.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
......
...@@ -42,6 +42,8 @@ static char sccsid[] = "@(#)regerror.c 8.4 (Berkeley) 3/20/94"; ...@@ -42,6 +42,8 @@ static char sccsid[] = "@(#)regerror.c 8.4 (Berkeley) 3/20/94";
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */
#include "postgres.h"
#include <sys/types.h> #include <sys/types.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
......
...@@ -42,6 +42,8 @@ static char sccsid[] = "@(#)regexec.c 8.3 (Berkeley) 3/20/94"; ...@@ -42,6 +42,8 @@ static char sccsid[] = "@(#)regexec.c 8.3 (Berkeley) 3/20/94";
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */
#include "postgres.h"
/* /*
* the outer shell of regexec() * the outer shell of regexec()
* *
......
...@@ -42,6 +42,8 @@ static char sccsid[] = "@(#)regfree.c 8.3 (Berkeley) 3/20/94"; ...@@ -42,6 +42,8 @@ static char sccsid[] = "@(#)regfree.c 8.3 (Berkeley) 3/20/94";
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */
#include "postgres.h"
#include <sys/types.h> #include <sys/types.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# Makefile for rewrite # Makefile for rewrite
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/rewrite/Makefile,v 1.10 1999/12/13 22:33:28 momjian Exp $ # $Header: /cvsroot/pgsql/src/backend/rewrite/Makefile,v 1.11 2000/01/19 02:58:54 petere Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -12,9 +12,6 @@ SRCDIR = ../.. ...@@ -12,9 +12,6 @@ SRCDIR = ../..
include ../../Makefile.global include ../../Makefile.global
CFLAGS += -I.. CFLAGS += -I..
ifdef MULTIBYTE
CFLAGS+= $(MBFLAGS)
endif
OBJS = rewriteRemove.o rewriteDefine.o \ OBJS = rewriteRemove.o rewriteDefine.o \
rewriteHandler.o rewriteManip.o rewriteSupport.o locks.o rewriteHandler.o rewriteManip.o rewriteSupport.o locks.o
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# Makefile for storage/lmgr # Makefile for storage/lmgr
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/storage/lmgr/Makefile,v 1.11 1999/12/13 22:33:54 momjian Exp $ # $Header: /cvsroot/pgsql/src/backend/storage/lmgr/Makefile,v 1.12 2000/01/19 02:58:54 petere Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -12,9 +12,6 @@ SRCDIR = ../../.. ...@@ -12,9 +12,6 @@ SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
CFLAGS += -I../.. CFLAGS += -I../..
ifdef MULTIBYTE
CFLAGS+= $(MBFLAGS)
endif
OBJS = lmgr.o lock.o proc.o OBJS = lmgr.o lock.o proc.o
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# Makefile for storage/smgr # Makefile for storage/smgr
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/storage/smgr/Makefile,v 1.10 1999/12/13 22:34:09 momjian Exp $ # $Header: /cvsroot/pgsql/src/backend/storage/smgr/Makefile,v 1.11 2000/01/19 02:58:55 petere Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -13,10 +13,6 @@ include ../../../Makefile.global ...@@ -13,10 +13,6 @@ include ../../../Makefile.global
CFLAGS += -I../.. CFLAGS += -I../..
ifdef MULTIBYTE
CFLAGS+= $(MBFLAGS)
endif
OBJS = md.o mm.o smgr.o smgrtype.o OBJS = md.o mm.o smgr.o smgrtype.o
all: SUBSYS.o all: SUBSYS.o
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# Makefile for tcop # Makefile for tcop
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/tcop/Makefile,v 1.20 1999/12/13 22:34:16 momjian Exp $ # $Header: /cvsroot/pgsql/src/backend/tcop/Makefile,v 1.21 2000/01/19 02:58:56 petere Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -13,10 +13,6 @@ include ../../Makefile.global ...@@ -13,10 +13,6 @@ include ../../Makefile.global
CFLAGS+= -I.. CFLAGS+= -I..
ifdef MULTIBYTE
CFLAGS+= $(MBFLAGS)
endif
ifeq ($(CC), gcc) ifeq ($(CC), gcc)
CFLAGS+= -Wno-error CFLAGS+= -Wno-error
endif endif
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# Makefile for utils/adt # Makefile for utils/adt
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/utils/adt/Makefile,v 1.31 2000/01/07 17:22:47 momjian Exp $ # $Header: /cvsroot/pgsql/src/backend/utils/adt/Makefile,v 1.32 2000/01/19 02:58:56 petere Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -23,10 +23,6 @@ CFLAGS+= -mieee ...@@ -23,10 +23,6 @@ CFLAGS+= -mieee
endif endif
endif endif
ifdef MULTIBYTE
CFLAGS+= $(MBFLAGS)
endif
OBJS = acl.o arrayfuncs.o arrayutils.o bool.o cash.o char.o chunk.o \ OBJS = acl.o arrayfuncs.o arrayutils.o bool.o cash.o char.o chunk.o \
date.o datetime.o datum.o dt.o filename.o float.o \ date.o datetime.o datum.o dt.o filename.o float.o \
geo_ops.o geo_selfuncs.o int.o int8.o like.o \ geo_ops.o geo_selfuncs.o int.o int8.o like.o \
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# Makefile for utils/init # Makefile for utils/init
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/utils/init/Makefile,v 1.11 1999/12/13 22:34:53 momjian Exp $ # $Header: /cvsroot/pgsql/src/backend/utils/init/Makefile,v 1.12 2000/01/19 02:58:57 petere Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -12,9 +12,6 @@ SRCDIR = ../../.. ...@@ -12,9 +12,6 @@ SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
CFLAGS += -I../.. CFLAGS += -I../..
ifdef MULTIBYTE
CFLAGS+= $(MBFLAGS)
endif
OBJS = enbl.o findbe.o globals.o miscinit.o postinit.o OBJS = enbl.o findbe.o globals.o miscinit.o postinit.o
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# Makefile for utils/mb # Makefile for utils/mb
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/utils/mb/Makefile,v 1.6 2000/01/13 01:08:14 ishii Exp $ # $Header: /cvsroot/pgsql/src/backend/utils/mb/Makefile,v 1.7 2000/01/19 02:58:57 petere Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -12,9 +12,6 @@ SRCDIR = ../../.. ...@@ -12,9 +12,6 @@ SRCDIR = ../../..
include ../../../Makefile.global include ../../../Makefile.global
CFLAGS += -I../.. CFLAGS += -I../..
ifdef MULTIBYTE
CFLAGS+= $(MBFLAGS)
endif
OBJS = common.o conv.o mbutils.o wchar.o wstrcmp.o wstrncmp.o variable.o \ OBJS = common.o conv.o mbutils.o wchar.o wstrcmp.o wstrncmp.o variable.o \
big5.o big5.o
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# Makefile for utils/misc # Makefile for utils/misc
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/backend/utils/misc/Makefile,v 1.11 1999/12/13 22:35:01 momjian Exp $ # $Header: /cvsroot/pgsql/src/backend/utils/misc/Makefile,v 1.12 2000/01/19 02:58:58 petere Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -13,10 +13,6 @@ include ../../../Makefile.global ...@@ -13,10 +13,6 @@ include ../../../Makefile.global
CFLAGS += -I../.. CFLAGS += -I../..
ifdef MULTIBYTE
CFLAGS+= $(MBFLAGS)
endif
OBJS = database.o superuser.o trace.o OBJS = database.o superuser.o trace.o
all: SUBSYS.o all: SUBSYS.o
......
...@@ -7,14 +7,14 @@ ...@@ -7,14 +7,14 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/Makefile,v 1.22 1999/12/22 04:12:54 ishii Exp $ # $Header: /cvsroot/pgsql/src/bin/Makefile,v 1.23 2000/01/19 02:58:59 petere Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
SRCDIR= .. SRCDIR= ..
include ../Makefile.global include ../Makefile.global
DIRS = pg_id pg_version psql pg_dump pg_passwd \ DIRS = pg_version psql pg_dump pg_passwd \
scripts initdb initlocation ipcclean \ scripts initdb initlocation ipcclean \
pg_ctl pg_ctl
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.135 2000/01/18 18:09:02 momjian Exp $ * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.136 2000/01/19 02:58:59 petere Exp $
* *
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb * Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
* *
...@@ -608,9 +608,9 @@ main(int argc, char **argv) ...@@ -608,9 +608,9 @@ main(int argc, char **argv)
*/ */
#ifdef HAVE_GETOPT_LONG #ifdef HAVE_GETOPT_LONG
while ((c = getopt_long(argc, argv, "acdDh:nNoOp:st:uvxzV?\037", long_options, &optindex)) != -1) while ((c = getopt_long(argc, argv, "acdDf:h:nNoOp:st:uvxzV?\037", long_options, &optindex)) != -1)
#else #else
while ((c = getopt(argc, argv, "acdDh:nNoOp:st:uvxzV?")) != -1) while ((c = getopt(argc, argv, "acdDf:h:nNoOp:st:uvxzV?-")) != -1)
#endif #endif
{ {
switch (c) switch (c)
...@@ -630,6 +630,10 @@ main(int argc, char **argv) ...@@ -630,6 +630,10 @@ main(int argc, char **argv)
dumpData = true; dumpData = true;
attrNames = true; attrNames = true;
break; break;
case 'f':
fprintf(stderr, "%s: The -f option is obsolete. You can achieve the same by writing %s > %s.\n",
progname, progname, optarg);
exit(1);
case '\037': /* output file name, see note above */ case '\037': /* output file name, see note above */
filename = optarg; filename = optarg;
break; break;
...@@ -695,9 +699,26 @@ main(int argc, char **argv) ...@@ -695,9 +699,26 @@ main(int argc, char **argv)
exit(0); exit(0);
break; break;
case '?': case '?':
help(progname); /* getopt returns '?' on unknown argument. That's not
exit(0); quite what we want */
if (strcmp(argv[optind-1], "-?")==0)
{
help(progname);
exit(1);
}
else
{
fputs("Try -? for help.\n", stderr);
exit(1);
}
break; break;
#ifndef HAVE_GETOPT_LONG
case '-':
fprintf(stderr, "%s was compiled without support for long options.\n"
"Use -? for help on invocation options.\n", progname);
exit(1);
break;
#endif
default: default:
fprintf(stderr, "%s: unknown option -%c\nTry -? for help.\n", progname, c); fprintf(stderr, "%s: unknown option -%c\nTry -? for help.\n", progname, c);
exit(1); exit(1);
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/psql/Attic/Makefile.in,v 1.19 1999/11/27 19:43:20 tgl Exp $ # $Header: /cvsroot/pgsql/src/bin/psql/Attic/Makefile.in,v 1.20 2000/01/19 02:59:00 petere Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -24,10 +24,6 @@ LDFLAGS+= $(KRBLIBS) ...@@ -24,10 +24,6 @@ LDFLAGS+= $(KRBLIBS)
CFLAGS+= $(KRBFLAGS) CFLAGS+= $(KRBFLAGS)
endif endif
ifdef MULTIBYTE
CFLAGS+= $(MBFLAGS)
endif
OBJS=command.o common.o help.o input.o stringutils.o mainloop.o \ OBJS=command.o common.o help.o input.o stringutils.o mainloop.o \
copy.o startup.o prompt.o variables.o large_obj.o print.o describe.o \ copy.o startup.o prompt.o variables.o large_obj.o print.o describe.o \
tab-complete.o tab-complete.o
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createuser,v 1.6 2000/01/14 22:11:36 petere Exp $ # $Header: /cvsroot/pgsql/src/bin/scripts/Attic/createuser,v 1.7 2000/01/19 02:59:01 petere Exp $
# #
# Note - this should NOT be setuid. # Note - this should NOT be setuid.
# #
...@@ -147,6 +147,11 @@ if [ "$SysID" ]; then ...@@ -147,6 +147,11 @@ if [ "$SysID" ]; then
fi fi
fi fi
# Don't want to leave the user blind if he breaks
# during password entry.
trap 'stty echo >& /dev/null' 1 2 3 15
# Get missing user attributes # Get missing user attributes
if [ -z "$NewUser" ]; then if [ -z "$NewUser" ]; then
...@@ -157,7 +162,20 @@ fi ...@@ -157,7 +162,20 @@ fi
if [ "$PwPrompt" ]; then if [ "$PwPrompt" ]; then
$ECHO_N "Enter password for user \"$NewUser\": "$ECHO_C $ECHO_N "Enter password for user \"$NewUser\": "$ECHO_C
read Password stty -echo >& /dev/null
read FirstPw
stty echo >& /dev/null
echo
$ECHO_N "Enter it again: "$ECHO_C
stty -echo >& /dev/null
read SecondPw
stty echo >& /dev/null
echo
if [ "$FirstPw" != "$SecondPw" ]; then
echo "Passwords didn't match."
exit 1
fi
Password=$FirstPw
fi fi
if [ -z "$CanCreateDb" ]; then if [ -z "$CanCreateDb" ]; then
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: miscadmin.h,v 1.48 2000/01/18 05:08:29 ishii Exp $ * $Id: miscadmin.h,v 1.49 2000/01/19 02:59:02 petere Exp $
* *
* NOTES * NOTES
* some of the information in this file will be moved to * some of the information in this file will be moved to
...@@ -22,6 +22,8 @@ ...@@ -22,6 +22,8 @@
#ifndef MISCADMIN_H #ifndef MISCADMIN_H
#define MISCADMIN_H #define MISCADMIN_H
#include "postgres.h"
#include "utils/trace.h" #include "utils/trace.h"
/***************************************************************************** /*****************************************************************************
......
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
#ifndef _REGEX_H_ #ifndef _REGEX_H_
#define _REGEX_H_ #define _REGEX_H_
#include "postgres.h"
#include <sys/types.h> #include <sys/types.h>
#include "mb/pg_wchar.h" #include "mb/pg_wchar.h"
......
...@@ -37,6 +37,8 @@ ...@@ -37,6 +37,8 @@
* @(#)regex2.h 8.4 (Berkeley) 3/20/94 * @(#)regex2.h 8.4 (Berkeley) 3/20/94
*/ */
#include "postgres.h"
/* /*
* First, the stuff that ends up in the outside-world include file * First, the stuff that ends up in the outside-world include file
*/ */
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
* @(#)utils.h 8.3 (Berkeley) 3/20/94 * @(#)utils.h 8.3 (Berkeley) 3/20/94
*/ */
#include "config.h" #include "postgres.h"
/* utility definitions */ /* utility definitions */
#define DUPMAX 100000000 /* xxx is this right? */ #define DUPMAX 100000000 /* xxx is this right? */
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
# Copyright (c) 1994, Regents of the University of California # Copyright (c) 1994, Regents of the University of California
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/interfaces/libpq/Attic/Makefile.in,v 1.52 2000/01/17 02:59:46 tgl Exp $ # $Header: /cvsroot/pgsql/src/interfaces/libpq/Attic/Makefile.in,v 1.53 2000/01/19 02:59:03 petere Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -23,10 +23,6 @@ ifdef KRBVERS ...@@ -23,10 +23,6 @@ ifdef KRBVERS
CFLAGS+= $(KRBFLAGS) CFLAGS+= $(KRBFLAGS)
endif endif
ifdef MULTIBYTE
CFLAGS+= $(MBFLAGS)
endif
OBJS= fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-print.o fe-lobj.o \ OBJS= fe-auth.o fe-connect.o fe-exec.o fe-misc.o fe-print.o fe-lobj.o \
pqexpbuffer.o dllist.o pqsignal.o @SNPRINTF@ pqexpbuffer.o dllist.o pqsignal.o @SNPRINTF@
......
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