Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
58eeb82c
Commit
58eeb82c
authored
22 years ago
by
Dave Cramer
Browse files
Options
Downloads
Patches
Plain Diff
Mike Beachy's build patch to allow ant builds without make
parent
a905eaac
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/interfaces/jdbc/Makefile
+17
-15
17 additions, 15 deletions
src/interfaces/jdbc/Makefile
src/interfaces/jdbc/README
+4
-0
4 additions, 0 deletions
src/interfaces/jdbc/README
src/interfaces/jdbc/build.xml
+19
-2
19 additions, 2 deletions
src/interfaces/jdbc/build.xml
with
40 additions
and
17 deletions
src/interfaces/jdbc/Makefile
+
17
−
15
View file @
58eeb82c
...
...
@@ -4,7 +4,7 @@
#
# Copyright (c) 2001, PostgreSQL Global Development Group
#
# $Header: /cvsroot/pgsql/src/interfaces/jdbc/Attic/Makefile,v 1.3
6
2002/1
0/20 02:55:50 barry
Exp $
# $Header: /cvsroot/pgsql/src/interfaces/jdbc/Attic/Makefile,v 1.3
7
2002/1
2/11 12:27:47 davec
Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -15,18 +15,20 @@ include $(top_builddir)/src/Makefile.global
majorversion
:=
$(
shell
echo
$(
VERSION
)
|
sed
's/^\([0-9][0-9]*\)\..*$$/\1/'
)
minorversion
:=
$(
shell
echo
$(
VERSION
)
|
sed
's/^[0-9][0-9]*\.\([0-9][0-9]*\).*$$/\1/'
)
properties
:=
-Dmajor
=
$(
majorversion
)
-Dminor
=
$(
minorversion
)
\
-Dfullversion
=
$(
VERSION
)
\
-Ddef_pgport
=
$(
DEF_PGPORT
)
\
-Denable_debug
=
$(
enable_debug
)
build.properties
:
$(top_builddir)/src/Makefile.global
echo
"# This file was created by 'make build.properties'."
>
build.properties
echo
major
=
$(
majorversion
)
>>
build.properties
echo
minor
=
$(
minorversion
)
>>
build.properties
echo
fullversion
=
$(
VERSION
)
>>
build.properties
echo
def_pgport
=
$(
DEF_PGPORT
)
>>
build.properties
echo
enable_debug
=
$(
enable_debug
)
>>
build.properties
all
:
$(
ANT
)
-buildfile
$(
srcdir
)
/build.xml all
\
$(
properties
)
all
:
build.properties
$(
ANT
)
-buildfile
$(
srcdir
)
/build.xml all
install
:
installdirs
install
:
installdirs
build.properties
$(
ANT
)
-buildfile
$(
srcdir
)
/build.xml
install
\
-Dinstall
.directory
=
$(
javadir
)
$(
properties
)
-Dinstall
.directory
=
$(
javadir
)
installdirs
:
$(
mkinstalldirs
)
$(
javadir
)
...
...
@@ -36,7 +38,7 @@ uninstall:
-Dinstall
.directory
=
$(
javadir
)
clean distclean maintainer-clean
:
$(
ANT
)
-buildfile
$(
srcdir
)
/build.xml clean
$(
ANT
)
-buildfile
$(
srcdir
)
/build.xml clean
_all
check
:
all
$(
ANT
)
-buildfile
$(
srcdir
)
/build.xml
test
$(
properties
)
check
:
build.properties
$(
ANT
)
-buildfile
$(
srcdir
)
/build.xml
test
This diff is collapsed.
Click to expand it.
src/interfaces/jdbc/README
+
4
−
0
View file @
58eeb82c
...
...
@@ -32,6 +32,10 @@ the directory PREFIX/share/java.
That jar file will contain the driver for _your_ version of the JDK.
If you would like to use ANT directly, first invoke 'make build.properties'
after running the configure script with the java option. This will create a
needed Java properties file from the configured information.
REMEMBER: Once you have compiled the driver, it will work on ALL platforms
that support that version of the API. You don't need to build it for each
platform.
...
...
This diff is collapsed.
Click to expand it.
src/interfaces/jdbc/build.xml
+
19
−
2
View file @
58eeb82c
...
...
@@ -6,7 +6,7 @@
This file now requires Ant 1.4.1. 2002-04-18
$Header: /cvsroot/pgsql/src/interfaces/jdbc/Attic/build.xml,v 1.3
0
2002/1
0/20 00:10:55 barry
Exp $
$Header: /cvsroot/pgsql/src/interfaces/jdbc/Attic/build.xml,v 1.3
1
2002/1
2/11 12:27:47 davec
Exp $
-->
...
...
@@ -23,6 +23,8 @@
<property
name=
"package"
value=
"org/postgresql"
/>
<property
name=
"debug"
value=
"on"
/>
<property
file=
"build.properties"
/>
<!--
This is a simpler method than utils.CheckVersion
It defaults to jdbc1, but builds jdbc2 if the java.lang.Byte class is
...
...
@@ -115,12 +117,21 @@
</javac>
</target>
<target
name=
"check_driver"
>
<uptodate
targetfile=
"${package}/Driver.java"
property=
"driver.uptodate"
>
<srcfiles
dir=
"."
>
<include
name=
"${package}/Driver.java.in"
/>
<include
name=
"build.properties"
/>
</srcfiles>
</uptodate>
</target>
<!--
This generates Driver.java from Driver.java.in
It's required for importing the driver version properties
-->
<target
name=
"driver"
depends=
"prepare,check_versions"
>
<target
name=
"driver"
depends=
"prepare,check_versions,check_driver"
unless=
"driver.uptodate"
>
<!-- determine the edition text -->
<condition
property=
"edition"
value=
"JDBC1"
>
<equals
arg1=
"${jdbc1}"
arg2=
"true"
/>
...
...
@@ -158,6 +169,9 @@
<fail
unless=
"major"
message=
"'major' undefined. Please follow the directions in README."
/>
<fail
unless=
"minor"
message=
"'minor' undefined. Please follow the directions in README."
/>
<fail
unless=
"fullversion"
message=
"'fullversion' undefined. Please follow the directions in README."
/>
<fail
unless=
"def_pgport"
message=
"'def_pgport' undefined. Please follow the directions in README."
/>
<fail
unless=
"enable_debug"
message=
"'enable_debug' undefined. Please follow the directions in README."
/>
<!-- Put a check for the current version here -->
...
...
@@ -231,6 +245,9 @@
<delete
quiet=
"true"
file=
"${package}/Driver.java"
/>
</target>
<target
name=
"clean_all"
depends=
"clean"
>
<delete
quiet=
"true"
file=
"build.properties"
/>
</target>
<!-- This compiles and executes the JUnit tests -->
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment