Skip to Content.
Sympa Menu

idok-commit - [idok-commit] idok commit r674 - branches/opensource/sites/psi

idok-commit AT lists.psi.ch

Subject: Commit emails of the iDok project

List archive

[idok-commit] idok commit r674 - branches/opensource/sites/psi


Chronological Thread 
  • From: "Apache" <apache AT savannah.psi.ch>
  • To: idok-commit AT lists.psi.ch
  • Subject: [idok-commit] idok commit r674 - branches/opensource/sites/psi
  • Date: Tue, 8 Jan 2008 14:08:34 +0100
  • List-archive: <https://lists.web.psi.ch/pipermail/idok-commit/>
  • List-id: Commit emails of the iDok project <idok-commit.lists.psi.ch>

Author: geus AT PSI.CH
Date: Tue Jan 8 14:08:34 2008
New Revision: 674

Log:
Implemented ant tasks for creating .zip and .tar.gz source archives from a
checked out working directory or directly from the repository

Modified:
branches/opensource/sites/psi/build.xml

Modified: branches/opensource/sites/psi/build.xml
==============================================================================
--- branches/opensource/sites/psi/build.xml (original)
+++ branches/opensource/sites/psi/build.xml Tue Jan 8 14:08:34 2008
@@ -2,11 +2,12 @@

<description>PSI specific top build file</description>

- <dirname property="psi-idok.basedir" file="${ant.file}"/>
+ <dirname property="psi-idok.basedir" file="${ant.file.psi-idok}"/>

<import file="../../build.xml"/>

<!-- set global properties for this build -->
+ <property name="svn.exec" value="svn" />
<property name="install.dir"
value="/afs/psi.ch/project/dms/admin/devel/opt/dms" />
<property name="cli_fat.script.name" value="idok" />
<property name="cli_thin.script.name" value="idok_thin" />
@@ -198,4 +199,41 @@
</exec>
</target>

+ <target name="sdist-from-workdir" depends="clean"
description="generate source distribution .zip and .tar.gz archives from a
checked out working directory">
+ <property name="sdist.release.name" value="idok-workspace" />
+ <property name="sdist.export.dir"
value="${idok.basedir}/ant_sdist" />
+ <property name="sdist.dir"
value="${sdist.export.dir}/${sdist.release.name}" />
+ <delete dir="${sdist.dir}" />
+ <copy todir="${sdist.dir}" verbose="true" overwrite="true">
+ <fileset dir="${idok.basedir}" excludes="**/*.svn"/>
+ </copy>
+ <tar basedir="${sdist.export.dir}"
destfile="${sdist.release.name}.tar.gz" compression="gzip" longfile="gnu" />
+ <zip basedir="${sdist.export.dir}"
destfile="${sdist.release.name}.zip" />
+ <delete dir="${sdist.dir}"/>
+ </target>
+
+ <target name="sdist-from-svn" description="generate source
distribution .zip and .tar.gz archives from svn repository">
+ <input
+ message="Enter version string (e.g. 1.0.1-beta2): "
+ addproperty="sdist.release.version"
+ />
+ <input
+ message="Enter repository directory to create archive
from (e.g. branches/1.0.x): "
+ addproperty="sdist.repo.dir"
+ />
+ <property name="sdist.release.name"
value="idok-${sdist.release.version}" />
+ <property name="sdist.export.dir"
value="${idok.basedir}/ant_sdist" />
+ <property name="sdist.dir"
value="${sdist.export.dir}/${sdist.release.name}" />
+ <mkdir dir="${sdist.dir}" />
+ <exec dir="" executable="${svn.exec}">
+ <arg value="export"/>
+ <arg value="--force"/>
+ <arg
value="https://svn.psi.ch/dms/dms/${sdist.repo.dir}"/>
+ <arg value="${sdist.dir}"/>
+ </exec>
+ <tar basedir="${sdist.export.dir}"
destfile="${sdist.release.name}.tar.gz" compression="gzip" longfile="gnu" />
+ <zip basedir="${sdist.export.dir}"
destfile="${sdist.release.name}.zip" />
+ <delete dir="${sdist.dir}"/>
+ </target>
+
</project>



  • [idok-commit] idok commit r674 - branches/opensource/sites/psi, Apache, 01/08/2008

Archive powered by MHonArc 2.6.19.

Top of Page