head	1.3;
access;
symbols
	REL7_2_8:1.2
	REL7_2_7:1.2
	REL7_2_6:1.2
	REL7_2_5:1.2
	REL7_2_4:1.2
	REL7_2_3:1.2
	REL7_3_STABLE:1.2.0.6
	REL7_2_STABLE:1.2.0.4
	REL7_2:1.2
	REL7_2_RC2:1.2
	REL7_2_RC1:1.2
	REL7_2_BETA5:1.2
	REL7_2_BETA4:1.2
	REL7_2_BETA3:1.2
	REL7_2_BETA2:1.2
	REL7_2_BETA1:1.2
	REL7_1_2:1.2
	REL7_1_STABLE:1.2.0.2
	REL7_1_BETA:1.1
	REL7_1_BETA3:1.2
	REL7_1_BETA2:1.2
	REL7_1:1.2;
locks; strict;
comment	@# @;


1.3
date	2002.10.20.02.55.50;	author barry;	state dead;
branches;
next	1.2;

1.2
date	2000.12.20.16.22.49;	author peter;	state Exp;
branches
	1.2.6.1;
next	1.1;

1.1
date	2000.10.12.08.55.28;	author peter;	state Exp;
branches;
next	;

1.2.6.1
date	2002.11.04.21.24.29;	author tgl;	state dead;
branches;
next	;


desc
@@


1.3
log
@Applied patch from Teofilis Martisius to improve performance.
Also removed some unused files and fixed the which needed a small change
after the previous patch to build.xml.

 Modified Files:
 	jdbc/Makefile jdbc/org/postgresql/core/Encoding.java
 	jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
 Removed Files:
 	jdbc/utils/CheckVersion.java jdbc/utils/buildDriver
 	jdbc/utils/changelog.pl
@
text
@#!/bin/sh
#
# $Id: buildDriver,v 1.2 2000/12/20 16:22:49 peter Exp $
#
# This script generates the org/postgresql/Driver.java file from the template
# org/postgresql/Driver.java.in
#
# We do this because we need to include the version number from Makefile.global
# and some other goodies.
#
# This used to be in Makefile, but as it's now done three times, it's better
# to have it as a separate script.
#
# If you have any problems, please let us know ;-)
#
# Syntax: buildDriver version class
#
# Where:
#	version	The version string from Makefile.global
#	class	The class implementing java.sql.Connection
#	edition	The driver edition being built
#	source	The file to build. We assume that ${source}.in exists
#

VERSION=$1
CLASS=$2
EDITION=$3
SOURCE=$4

#---------------------------------------------------------------------------
# Extract the version. This will work until version x.9 (and assuming we don't
# have 7.10 etc). We only handle 1 digit for MINORVERSION to handle things like
# 7.1devel etc
#
MAJORVERSION=`echo $VERSION | cut -f1 -d'.'`
MINORVERSION=`echo $VERSION | cut -f2 -d'.' | cut -c1`

#---------------------------------------------------------------------------
# Now finally build the driver
sed \
	-e "s/@@JDBCCONNECTCLASS@@/$CLASS/g" \
	-e "s/@@VERSION@@/$VERSION $EDITION/g" \
	-e "s/@@MAJORVERSION@@/$MAJORVERSION/g" \
	-e "s/@@MINORVERSION@@/$MINORVERSION/g" \
	<${SOURCE}.in \
	>$SOURCE
#---------------------------------------------------------------------------
@


1.2
log
@Finished build.xml and updated Driver.java.in and buildDriver to match how Makefile and ANT operate.
@
text
@d3 1
a3 1
# $Id: buildDriver,v 1.1 2000/10/12 08:55:28 peter Exp $
@


1.2.6.1
log
@Back-patch recent file removals into REL7_3_STABLE branch.
@
text
@d3 1
a3 1
# $Id: buildDriver,v 1.2 2000/12/20 16:22:49 peter Exp $
@


1.1
log
@Major update part I involving delayed patches, reworked Makefile, and how
the versioning works. There's also a new utils directory used by Makefile
@
text
@d3 1
a3 1
# $Id$
d41 4
a44 4
	-e "s/%JDBCCONNECTCLASS%/$CLASS/g" \
	-e "s/%VERSION%/$VERSION $EDITION/g" \
	-e "s/%MAJORVERSION%/$MAJORVERSION/g" \
	-e "s/%MINORVERSION%/$MINORVERSION/g" \
@
