Skip to content

Commit

Permalink
GEOT-4185, fixing version substitution for release
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/geotools/trunk@38837 e5c1c795-43da-0310-a71f-fac65c449510
  • Loading branch information
jdeolive committed Jun 27, 2012
1 parent d737e0f commit bf0d28b
Show file tree
Hide file tree
Showing 13 changed files with 25 additions and 38 deletions.
1 change: 1 addition & 0 deletions build/release/build_release.sh
Expand Up @@ -136,6 +136,7 @@ pushd tags/$tag > /dev/null
# update versions
pushd build > /dev/null
sed -i 's/@VERSION@/'$tag'/g' rename.xml
sed -i "s/@RELEASE_DATE@/`date "+%b %d, %Y"`/g" rename.xml
ant -f rename.xml
popd > /dev/null

Expand Down
30 changes: 7 additions & 23 deletions build/rename.xml
Expand Up @@ -8,37 +8,21 @@
<target name="code">
<replace dir="..">
<include name="**/pom.xml"/>
<replacefilter token="&lt;version&gt;8-SNAPSHOT&lt;/version&gt;"
value="&lt;version&gt;@VERSION@&lt;/version&gt;"/>
</replace>

<replace dir="../modules/library/metadata/src/main/java/org/geotools/factory">
<include name="GeoTools.java"/>
<replacefilter token="8-SNAPSHOT"
value="@VERSION@"/>
<include name="**/GeoTools.java"/>
<replacefilter token="8-SNAPSHOT" value="@VERSION@"/>
</replace>
</target>

<target name="doc">
<replace dir="../docs/user/tutorial/">
<include name="**/pom.xml"/>
<replacefilter token="&lt;geotools.version&gt;8-SNAPSHOT&lt;/geotools.version&gt;"
value="&lt;geotools.version&gt;@VERSION@&lt;/geotools.version&gt;"/>
</replace>

<replace dir="../docs/">
<include name="pom.xml"/>
<replacefilter token="8-SNAPSHOT"
value="@VERSION@"/>
<replace file="../docs/common.py">
<replacefilter token="@RELEASE@" value="@VERSION@"/>
</replace>
</target>

<target name="readme">
<target name="readme">
<replace file="../README.html">
<replacefilter token="@RELEASE@"
value="@VERSION@"/>
<replacefilter token="@DATE@"
value="@RELEASE_DATE@"/>
<replacefilter token="@RELEASE@" value="@VERSION@"/>
<replacefilter token="@DATE@" value="@RELEASE_DATE@"/>
</replace>
</target>

Expand Down
2 changes: 1 addition & 1 deletion docs/build.xml
Expand Up @@ -26,7 +26,7 @@
<isset property="build.directory" />
</condition>

<condition property="project.version" value="${project.version}" else="8.0-M3">
<condition property="project.version" value="${project.version}" else="8-SNAPSHOT">
<isset property="project.version" />
</condition>

Expand Down
8 changes: 5 additions & 3 deletions docs/common.py
Expand Up @@ -12,6 +12,7 @@
# serve to show the default.

import sys, os
import re

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down Expand Up @@ -47,11 +48,12 @@
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The full version, including alpha/beta/rc tags.
release = '@RELEASE@'

# The short X.Y version.
version = '8.0'
version = re.sub('-.*', '', release)

# The full version, including alpha/beta/rc tags.
release = '8.0-RC1'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion docs/pom.xml
Expand Up @@ -240,7 +240,7 @@
<ant antfile="build.xml" dir="${basedir}" target="${target}">
<property name="build.directory" value="${build.directory}"/>
<!-- may be ${project.version} when tagged -->
<property name="project.version" value="8.0-RC1"/>
<property name="project.version" value="${project.version}"/>
</ant>
</tasks>
</configuration>
Expand Down
2 changes: 1 addition & 1 deletion docs/user/tutorial/advanced/artifacts/pom.xml
Expand Up @@ -11,7 +11,7 @@
<url>http://maven.apache.org</url>

<properties>
<geotools.version>8.0-M4</geotools.version>
<geotools.version>8-SNAPSHOT</geotools.version>
</properties>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion docs/user/tutorial/feature/artifacts/pom.xml
Expand Up @@ -11,7 +11,7 @@
<url>http://maven.apache.org</url>

<properties>
<geotools.version>8.0-M4</geotools.version>
<geotools.version>8-SNAPSHOT</geotools.version>
</properties>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion docs/user/tutorial/filter/artifacts/pom.xml
Expand Up @@ -11,7 +11,7 @@
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<geotools.version>8.0-M4</geotools.version>
<geotools.version>8-SNAPSHOT</geotools.version>
</properties>
<dependencies>
<!-- Provides map projections -->
Expand Down
2 changes: 1 addition & 1 deletion docs/user/tutorial/geometry/artifacts/pom.xml
Expand Up @@ -11,7 +11,7 @@
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<geotools.version>8.0-M4</geotools.version>
<geotools.version>8-SNAPSHOT</geotools.version>
</properties>
<dependencies>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion docs/user/tutorial/map/artifacts/pom.xml
Expand Up @@ -11,7 +11,7 @@
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<geotools.version>8.0-M4</geotools.version>
<geotools.version>8-SNAPSHOT</geotools.version>
</properties>
<dependencies>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion docs/user/tutorial/quickstart/artifacts/pom.xml
Expand Up @@ -11,7 +11,7 @@
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<geotools.version>8.0-RC1</geotools.version>
<geotools.version>8-SNAPSHOT</geotools.version>
</properties>
<dependencies>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion docs/user/tutorial/raster/artifacts/pom.xml
Expand Up @@ -11,7 +11,7 @@
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<geotools.version>8.0-M4</geotools.version>
<geotools.version>8-SNAPSHOT</geotools.version>
</properties>
<dependencies>
<dependency>
Expand Down
6 changes: 3 additions & 3 deletions modules/unsupported/wfs-ng/pom.xml
Expand Up @@ -105,9 +105,9 @@
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-data</artifactId>
<version>2.7-SNAPSHOT</version>
<groupId>org.geotools</groupId>
<artifactId>gt-data</artifactId>
<version>${project.version}</version>
<type>jar</type>
</dependency>
<dependency>
Expand Down

0 comments on commit bf0d28b

Please sign in to comment.