incubator-olio-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sha...@apache.org
Subject svn commit: r754995 - in /incubator/olio/dist: ./ README build.properties.template build.xml release.template releasenotes/ releasenotes/RELEASE-NOTES-php-0.1.txt releasenotes/RELEASE-NOTES-rails-0.1.txt
Date Mon, 16 Mar 2009 20:10:10 GMT
Author: shanti
Date: Mon Mar 16 20:10:10 2009
New Revision: 754995

URL: http://svn.apache.org/viewvc?rev=754995&view=rev
Log:
Fix for OLIO-79. Adding build script to create distribution and release notes for 0.1 release

Added:
    incubator/olio/dist/
    incubator/olio/dist/README
    incubator/olio/dist/build.properties.template
    incubator/olio/dist/build.xml
    incubator/olio/dist/release.template
    incubator/olio/dist/releasenotes/
    incubator/olio/dist/releasenotes/RELEASE-NOTES-php-0.1.txt
    incubator/olio/dist/releasenotes/RELEASE-NOTES-rails-0.1.txt

Added: incubator/olio/dist/README
URL: http://svn.apache.org/viewvc/incubator/olio/dist/README?rev=754995&view=auto
==============================================================================
--- incubator/olio/dist/README (added)
+++ incubator/olio/dist/README Mon Mar 16 20:10:10 2009
@@ -0,0 +1,13 @@
+Releases are built from this directory. 
+Copy the build.properties.template to build.properties.
+Ensure that the build.properties file has the correct <major>.<minor> numbers.
+Set the property 'build.release' to 'true' if you're generating a release without a time-stamp.
+Create release notes if required. Use the format RELEASE-NOTES-<type>-<version>.txt.
+All release notes should reside in the 'releasenotes' directory.
+To build all releases, simply type 'ant'.
+The releases will be built in the 'nightly' directory.
+DO NOT check in the 'nightly' directory into the repository.
+However, it is appropriate to check-in new release notes added.
+The build release should be uploaded to the apache distribution directory
+after signing it.
+

Added: incubator/olio/dist/build.properties.template
URL: http://svn.apache.org/viewvc/incubator/olio/dist/build.properties.template?rev=754995&view=auto
==============================================================================
--- incubator/olio/dist/build.properties.template (added)
+++ incubator/olio/dist/build.properties.template Mon Mar 16 20:10:10 2009
@@ -0,0 +1 @@
+olio.version=0.1

Added: incubator/olio/dist/build.xml
URL: http://svn.apache.org/viewvc/incubator/olio/dist/build.xml?rev=754995&view=auto
==============================================================================
--- incubator/olio/dist/build.xml (added)
+++ incubator/olio/dist/build.xml Mon Mar 16 20:10:10 2009
@@ -0,0 +1,189 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ *  Copyright © 2008 Sun Microsystems, Inc. All rights reserved
+ *
+ *  Use is subject to license terms.
+-->
+<project name="Olio" default="package-all">
+
+    <property file="build.properties"/>
+    <property name="base.dir" value=".."/>
+    <property name="relnotes.dir" value="releasenotes"/>
+    <property name="geocoder.dir" value="${base.dir}/geocoder"/>
+    <property name="docs.dir" value="${base.dir}/docs"/>
+    <property name="kit.dir" value="nightly"/>
+
+    <tstamp>
+        <format property="build.date" pattern="MMddyy"/>
+    </tstamp>
+	<condition property="version.str" value="${olio.version}" else="${olio.version}b${build.date}">
+		<isset property="build.release"/>
+    </condition>
+
+    <property name="php.app.dir" value="${base.dir}/webapp/php/trunk"/>
+    <property name="php.workload.dir" value="${base.dir}/workload/php/trunk"/>
+    <property name="php.pkg.name" value="apache-olio-php-${version.str}"/>
+    <property name="php.src.name" value="apache-olio-php-src-${version.str}"/>
+    <property name="php.relnotes" value="RELEASE-NOTES-php-${olio.version}.txt"/>
+
+    <property name="rails.app.dir" value="${base.dir}/webapp/rails/trunk"/>
+    <property name="rails.workload.dir" value="${base.dir}/workload/rails/trunk"/>
+    <property name="rails.pkg.name" value="apache-olio-rails-${version.str}"/>
+    <property name="rails.src.name" value="apache-olio-rails-src-${version.str}"/>
+    <property name="rails.relnotes" value="RELEASE-NOTES-rails-${olio.version}.txt"/>
+
+    <defaultexcludes add="**/nbproject/**"/>
+    <defaultexcludes add="**/*.iml"/>
+
+    <target name="init">
+        <mkdir dir="stage"/>
+    </target>
+
+    <target name="geocoder">
+        <ant dir="${geocoder.dir}"/>
+    </target>
+
+    <target name="package-php-driver">
+        <ant dir="${php.workload.dir}"/>
+    </target>
+
+    <target name="package-rails-driver">
+        <ant dir="${rails.workload.dir}"/>
+    </target>
+
+    <target name="release-file" depends="init">
+        <copy file="release.template"
+              tofile="stage/release" overwrite="true" verbose="true"/>
+        <replace file="stage/release" token="@@olio.version@@" value="${olio.version}"/>
+        <replace file="stage/release" token="@@build.date@@" value="${build.date}"/>
+    </target>
+
+    <target name="package-php" depends="package-php-driver, geocoder, release-file">
+        <tar destfile="${kit.dir}/${php.pkg.name}.tar.gz"
+            longfile="gnu" compression="gzip">
+            <tarfileset dir="stage" prefix="${php.pkg.name}" includes="release"/>
+            <tarfileset dir="${base.dir}" prefix="${php.pkg.name}"
+                        includes="LICENSE, NOTICE"/>
+            <tarfileset dir="${relnotes.dir}" prefix="${php.pkg.name}"
+                        includes="${php.relnotes}"/>
+            <tarfileset dir="${docs.dir}" prefix="${php.pkg.name}"
+                        includes="php_setup_kit.html"/>
+            <tarfileset dir="${php.workload.dir}/build" prefix="${php.pkg.name}"
+                        includes="OlioDriver.jar"/>
+            <tarfileset dir="${geocoder.dir}/dist" prefix="${php.pkg.name}"
+                        includes="geocoder.war"/>
+            <tarfileset dir="${php.app.dir}" prefix="${php.pkg.name}/oliophp"
+                        excludes="build.xml, build.properties"/>
+        </tar>
+    </target>
+
+    <target name="package-rails" depends="package-rails-driver, geocoder,
+                    release-file">
+        <tar destfile="${kit.dir}/${rails.pkg.name}.tar.gz"
+            longfile="gnu" compression="gzip">
+            <tarfileset dir="stage" prefix="${rails.pkg.name}" includes="release"/>
+            <tarfileset dir="${base.dir}" prefix="${rails.pkg.name}"
+                        includes="LICENSE, NOTICE"/>
+            <tarfileset dir="${relnotes.dir}" prefix="${rails.pkg.name}"
+                        includes="${rails.relnotes}"/>
+            <tarfileset dir="${docs.dir}" prefix="${rails.pkg.name}"
+                        includes="rails_setup_kit.html"/>
+            <tarfileset dir="${rails.workload.dir}/build" prefix="${rails.pkg.name}"
+                        includes="OlioDriver.jar"/>
+            <tarfileset dir="${geocoder.dir}/dist" prefix="${rails.pkg.name}"
+                        includes="geocoder.war"/>
+            <tarfileset dir="${rails.app.dir}" prefix="${rails.pkg.name}/oliorails"
+                        excludes="build.xml"/>
+        </tar>
+    </target>
+
+    <target name="package-php-src">
+        <tar destfile="${kit.dir}/${php.src.name}.tar.gz"
+            longfile="gnu" compression="gzip">
+            <tarfileset dir="${base.dir}" prefix="${php.src.name}">
+                <include name="dist/*"/>
+                <include name="dist/*"/>
+				<include name="dist/releasenotes/${php.relnotes}"/>
+                <include name="docs/**"/>
+                <include name="geocoder/**"/>
+                <include name="LICENSE"/>
+                <include name="NOTICE"/>
+                <include name="webapp/php/trunk/**"/>
+                <include name="workload/php/trunk/**"/>
+                <exclude name="dist/nightly/**"/>
+                <exclude name="dist/release/**"/>
+                <exclude name="dist/stage/**"/>
+                <exclude name="**/build/**"/>
+                <exclude name="geocoder/dist/**"/>
+                <exclude name="**/build.properties"/>
+            </tarfileset>
+        </tar>
+    </target>
+
+    <target name="package-rails-src">
+        <tar destfile="${kit.dir}/${rails.src.name}.tar.gz"
+            longfile="gnu" compression="gzip">
+            <tarfileset dir="${base.dir}" prefix="${rails.src.name}">
+                <include name="dist/*"/>
+				<include name="dist/releasenotes/${rails.relnotes}"/>
+                <include name="docs/**"/>
+                <include name="geocoder/**"/>
+                <include name="LICENSE"/>
+                <include name="NOTICE"/>
+                <include name="webapp/rails/trunk/**"/>
+                <include name="workload/rails/trunk/**"/>
+                <exclude name="dist/nightly/**"/>
+                <exclude name="dist/release/**"/>
+                <exclude name="dist/stage/**"/>
+                <exclude name="**/build/**"/>
+                <exclude name="geocoder/dist/**"/>
+                <exclude name="**/build.properties"/>
+            </tarfileset>
+        </tar>
+    </target>
+
+    <target name="package-driver">
+        <ant dir="${workload.dir}"/>
+    </target>
+
+
+    <target name="package-dist" depends="package-php-driver, geocoder, release-file">
+        <tar destfile="${kit.dir}/${php.pkg.name}.tar.gz"
+            longfile="gnu" compression="gzip">
+            <tarfileset dir="stage" prefix="${php.pkg.name}" includes="release"/>
+            <tarfileset dir="${base.dir}" prefix="${php.pkg.name}"
+                        includes="LICENSE, NOTICE"/>
+            <tarfileset dir="${docs.dir}" prefix="${php.pkg.name}"
+                        includes="php_setup_kit.html"/>
+            <tarfileset dir="${php.workload.dir}/build" prefix="${php.pkg.name}"
+                        includes="OlioDriver.jar"/>
+            <tarfileset dir="${geocoder.dir}/dist" prefix="${php.pkg.name}"
+                        includes="geocoder.war"/>
+            <tarfileset dir="${php.app.dir}" prefix="${php.pkg.name}/oliophp"
+                        excludes="build.xml, build.properties"/>
+        </tar>
+    </target>
+
+    <target name="package-src">
+        <tar destfile="${kit.dir}/${php.src.name}.tar.gz"
+            longfile="gnu" compression="gzip">
+            <tarfileset dir="${base.dir}" prefix="${php.src.name}">
+                <include name="dist/**"/>
+                <include name="docs/**"/>
+                <include name="geocoder/**"/>
+                <include name="LICENSE"/>
+                <include name="NOTICE"/>
+                <include name="webapp/php/trunk/**"/>
+                <include name="workload/php/trunk/**"/>
+                <exclude name="dist/nightly/**"/>
+                <exclude name="dist/release/**"/>
+                <exclude name="dist/stage/**"/>
+                <exclude name="**/build/**"/>
+                <exclude name="geocoder/dist/**"/>
+                <exclude name="**/build.properties"/>
+            </tarfileset>
+        </tar>
+    </target>
+
+    <target name="package-all" depends="package-php, package-rails, package-php-src, package-rails-src"/>
+</project> 

Added: incubator/olio/dist/release.template
URL: http://svn.apache.org/viewvc/incubator/olio/dist/release.template?rev=754995&view=auto
==============================================================================
--- incubator/olio/dist/release.template (added)
+++ incubator/olio/dist/release.template Mon Mar 16 20:10:10 2009
@@ -0,0 +1 @@
+Olio @@olio.version@@ b@@build.date@@

Added: incubator/olio/dist/releasenotes/RELEASE-NOTES-php-0.1.txt
URL: http://svn.apache.org/viewvc/incubator/olio/dist/releasenotes/RELEASE-NOTES-php-0.1.txt?rev=754995&view=auto
==============================================================================
--- incubator/olio/dist/releasenotes/RELEASE-NOTES-php-0.1.txt (added)
+++ incubator/olio/dist/releasenotes/RELEASE-NOTES-php-0.1.txt Mon Mar 16 20:10:10 2009
@@ -0,0 +1,15 @@
+This is the first release of the PHP implementation of Olio.
+There are two tarballs for this release: 
+apache-olio-php-0.1.tar.gz is the binary kit.
+apache-olio-php-src-0.1.tar.gz is the source that corresponds to the binary kit.
+
+Please use gtar to extract the contents:
+% gzcat apache-olio-php-0.1.tar.gz | gtar -xvf - 
+
+The instructions for setting up Olio from the binary kit are contained in 
+php_setup_kit.html which is located in the top-level directory. 
+You can also browse the document at 
+  https://svn.apache.org/repos/asf/incubator/olio/docs/php_setup_kit.html
+
+The instructions for setting up Olio from the source kit are contained in
+php_setup.html which is located in the 'docs' directory.

Added: incubator/olio/dist/releasenotes/RELEASE-NOTES-rails-0.1.txt
URL: http://svn.apache.org/viewvc/incubator/olio/dist/releasenotes/RELEASE-NOTES-rails-0.1.txt?rev=754995&view=auto
==============================================================================
--- incubator/olio/dist/releasenotes/RELEASE-NOTES-rails-0.1.txt (added)
+++ incubator/olio/dist/releasenotes/RELEASE-NOTES-rails-0.1.txt Mon Mar 16 20:10:10 2009
@@ -0,0 +1,15 @@
+This is the first release of the rails implementation of Olio.
+There are two tarballs for this release: 
+apache-olio-rails-0.1.tar.gz is the binary kit.
+apache-olio-rails-src-0.1.tar.gz is the source that corresponds to the binary kit.
+
+Please use gtar to extract the contents as there are some very long filenames:
+% gzcat apache-olio-rails-0.1.tar.gz | gtar -xvf - 
+
+The instructions for setting up Olio from the binary kit are contained in 
+rails_setup_kit.html which is located in the top-level directory.
+You can also browse the document at 
+  https://svn.apache.org/repos/asf/incubator/olio/docs/rails_setup_kit.html
+
+The instructions for setting up Olio from the source kit are contained in
+rails_setup.html which is located in the 'docs' directory.



Mime
View raw message