]> granicus.if.org Git - postgis/commitdiff
Generate pom.xml at configure time (#2626)
authorSandro Santilli <strk@keybit.net>
Mon, 16 Mar 2015 09:57:04 +0000 (09:57 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 16 Mar 2015 09:57:04 +0000 (09:57 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13337 b70326c6-7e19-0410-871a-916f4a2858ee

.gitignore
java/jdbc/Makefile.in
java/jdbc/pom.xml.in [moved from java/jdbc/pom.xml with 99% similarity]

index 633d1244cb5637e7160713c5e6df2c2351c41a6c..6789011420fe4662a97cbc278f62f653cfbb7965 100644 (file)
@@ -59,6 +59,7 @@ extensions/postgis_topology/sql_bits/*.sql
 GNUmakefile
 java/jdbc/Makefile
 java/jdbc/lib/
+java/jdbc/pom.xml
 java/jdbc/target/
 liblwgeom/cunit/cu_tester
 liblwgeom/cunit/Makefile
index 0295ca508cca33be4fc90a4934b90cfdb1934261..e7cd94e07ccaf52cc3e13bb7eadb51d9b5ebae43 100644 (file)
 # **********************************************************************
 
 ANT=@ANT@
+POSTGIS_LIB_VERSION=@POSTGIS_LIB_VERSION@
 
 all: build
 
+pom.xml: pom.xml.in
+       sed 's,%VERSION%,$(POSTGIS_LIB_VERSION),g' $< >$@
+
+distclean:
+       rm -f pom.xml
+
+build: pom.xml
+
 build clean distclean check:
        $(ANT) $@
 
similarity index 99%
rename from java/jdbc/pom.xml
rename to java/jdbc/pom.xml.in
index 15683e6b85fa7d0f3e5e62b0df9a9c1f59ca0cb0..97d9163aee61780c5a0b5e17686af5f4780d4b12 100644 (file)
@@ -11,7 +11,7 @@
 
     <groupId>org.postgis</groupId>
     <artifactId>postgis-jdbc</artifactId>
-    <version>2.2.0dev</version>
+    <version>%VERSION%</version>
     <packaging>jar</packaging>
     <name>Postgis JDBC Driver</name>
     <url>http://postgis.net</url>