head	1.11;
access;
symbols
	REL6_5_PATCHES:1.10.0.4
	REL6_5:1.10
	REL6_4:1.10.0.2
	release-6-3:1.4
	REL2_0B:1.3.0.2
	REL2_0:1.3
	Release_2_0_0:1.1.1.1
	Release_1_0_3:1.1.1.1.0.2
	Release_2_0:1.1.1.1
	Release_1_0_2:1.1.1.1
	PG95-1_01:1.1.1.1
	PG95_DIST:1.1.1;
locks; strict;
comment	@# @;


1.11
date	99.12.04.04.53.17;	author momjian;	state dead;
branches;
next	1.10;

1.10
date	98.07.26.04.31.12;	author scrappy;	state Exp;
branches;
next	1.9;

1.9
date	98.07.24.03.32.04;	author scrappy;	state Exp;
branches;
next	1.8;

1.8
date	98.04.06.16.49.28;	author momjian;	state Exp;
branches;
next	1.7;

1.7
date	98.04.06.01.14.13;	author momjian;	state Exp;
branches;
next	1.6;

1.6
date	98.04.06.00.28.04;	author momjian;	state Exp;
branches;
next	1.5;

1.5
date	98.04.05.21.59.55;	author momjian;	state Exp;
branches;
next	1.4;

1.4
date	96.12.10.03.39.26;	author bryanh;	state Exp;
branches;
next	1.3;

1.3
date	96.11.14.10.24.45;	author bryanh;	state Exp;
branches;
next	1.2;

1.2
date	96.11.11.13.39.34;	author bryanh;	state Exp;
branches;
next	1.1;

1.1
date	96.07.09.06.22.12;	author scrappy;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	96.07.09.06.22.12;	author scrappy;	state Exp;
branches;
next	;


desc
@@


1.11
log
@New scripts for create/drop user/db from Peter Eisentraut
@
text
@#-------------------------------------------------------------------------
#
# Makefile.inc--
#    Makefile for bin/createdb
#
# Copyright (c) 1994, Regents of the University of California
#
#
# IDENTIFICATION
#    $Header: /usr/local/cvsroot/pgsql/src/bin/createdb/Makefile,v 1.10 1998/07/26 04:31:12 scrappy Exp $
#
#-------------------------------------------------------------------------

SRCDIR= ../..
include ../../Makefile.global

all: createdb

createdb: createdb.sh
	sed 's/__MULTIBYTE__/$(MULTIBYTE)/' createdb.sh > createdb

install: createdb
	$(INSTALL) $(INSTL_EXE_OPTS) $< $(BINDIR)/$<

clean:
	rm -f createdb

dep depend:
@


1.10
log
@
From: t-ishii@@sra.co.jp

As Bruce mentioned, this is due to the conflict among changes we made.
Included patches should fix the problem(I changed all MB to
MULTIBYTE). Please let me know if you have further problem.

P.S. I did not include pathces to configure and gram.c to save the
file size(configure.in and gram.y modified).
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/bin/createdb/Makefile,v 1.9 1998/07/24 03:32:04 scrappy Exp $
@


1.9
log
@
I really hope that I haven't missed anything in this one...

From: t-ishii@@sra.co.jp

Attached are patches to enhance the multi-byte support.  (patches are
against 7/18 snapshot)

* determine encoding at initdb/createdb rather than compile time

Now initdb/createdb has an option to specify the encoding. Also, I
modified the syntax of CREATE DATABASE to accept encoding option. See
README.mb for more details.

For this purpose I have added new column "encoding" to pg_database.
Also pg_attribute and pg_class are changed to catch up the
modification to pg_database.  Actually I haved added pg_database_mb.h,
pg_attribute_mb.h and pg_class_mb.h. These are used only when MB is
enabled. The reason having separate files is I couldn't find a way to
use ifdef or whatever in those files. I have to admit it looks
ugly. No way.

* support for PGCLIENTENCODING when issuing COPY command

commands/copy.c modified.

* support for SQL92 syntax "SET NAMES"

See gram.y.

* support for LATIN2-5
* add UNICODE regression test case
* new test suite for MB

New directory test/mb added.

* clean up source files

Basic idea is to have MB's own subdirectory for easier maintenance.
These are include/mb and backend/utils/mb.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/bin/createdb/Makefile,v 1.8 1998/04/06 16:49:28 momjian Exp $
d20 1
a20 1
	sed 's/__MB__/$(MB)/' createdb.sh > createdb
@


1.8
log
@DESTDIR removed, again.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/bin/createdb/Makefile,v 1.7 1998/04/06 01:14:13 momjian Exp $
d20 1
a20 1
	cp createdb.sh createdb
@


1.7
log
@Re-introduce $DISTDIR.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/bin/createdb/Makefile,v 1.6 1998/04/06 00:28:04 momjian Exp $
d23 1
a23 1
	$(INSTALL) $(INSTL_EXE_OPTS) $< $(DESTDIR)$(BINDIR)/$<
@


1.6
log
@Hi,

Attached you'll find a (big) patch that fixes make dep and make
depend in all Makefiles where I found it to be appropriate.

It also removes the dependency in Makefile.global for NAMEDATALEN
and OIDNAMELEN by making backend/catalog/genbki.sh and bin/initdb/initdb.sh
a little smarter.

This no longer requires initdb.sh that is turned into initdb with
a sed script when installing Postgres, hence initdb.sh should be
renamed to initdb (after the patch has been applied :-) )

This patch is against the 6.3 sources, as it took a while to
complete.

Please review and apply,

Cheers,

Jeroen van Vianen
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/bin/createdb/Makefile,v 1.5 1998/04/05 21:59:55 momjian Exp $
d23 1
a23 1
	$(INSTALL) $(INSTL_EXE_OPTS) $< $(BINDIR)/$<
@


1.5
log
@Remove DISTDIR.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/pgsql/src/bin/createdb/Makefile,v 1.4 1996/12/10 03:39:26 bryanh Exp $
d28 1
a28 1
dep:
@


1.4
log
@Add empty "dep:" target.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/bin/createdb/Makefile,v 1.3 1996/11/14 10:24:45 bryanh Exp $
d23 1
a23 1
	$(INSTALL) $(INSTL_EXE_OPTS) $< $(DESTDIR)$(BINDIR)/$<
@


1.3
log
@Remove most compile-time options, add a few runtime options to make up for it.
In particular, no more compiled-in default for PGDATA or LIBDIR.  Commands
that need them need either invocation options or environment variables.
PGPORT default is hardcoded as 5432, but overrideable with options or
environment variables.
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/src/bin/createdb/Makefile,v 1.1.1.1 1996/07/09 06:22:12 scrappy Exp $
d27 2
@


1.2
log
@Makefile simplification: the "bin" chapter
@
text
@a16 4
SEDSCRIPT= \
    -e "s^_fUnKy_BINDIR_sTuFf_^$(BINDIR)^g" \
    -e "s^_fUnKy_POSTPORT_sTuFf_^$(POSTPORT)^g"

d19 2
a20 2
createdb:
	sed $(SEDSCRIPT) <createdb.sh >createdb
@


1.1
log
@Initial revision
@
text
@d10 1
a10 1
#    $Header: /usr/local/cvsroot/postgres95/postgres95/src/bin/createdb/Makefile,v 1.1.1.1 1996/07/09 05:32:34 scrappy Exp $
d14 2
a15 1
SHPROG=	createdb
d17 3
a19 3
MKDIR=	../../mk
include $(MKDIR)/postgres.mk
include ../Makefile.global
d21 1
a21 1
include $(MKDIR)/postgres.shell.mk
d23 8
@


1.1.1.1
log
@Postgres95 1.01 Distribution - Virgin Sources
@
text
@@
