summaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-11-14 10:24:08 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-11-14 10:24:08 +0000
commit88aea69812f676e4c677666229693f47772f8348 (patch)
treec5cf9de2f8a88b467b525d0258c1cb03e78b5299 /build.xml
parentf40e21b5e2e91b149529c1718d21525d76cbeb4d (diff)
downloadsemanticscuttle-88aea69812f676e4c677666229693f47772f8348.tar.gz
semanticscuttle-88aea69812f676e4c677666229693f47772f8348.tar.bz2
update release howto, make phing create svntag
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@547 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml27
1 files changed, 24 insertions, 3 deletions
diff --git a/build.xml b/build.xml
index 54af6a0..85194ec 100644
--- a/build.xml
+++ b/build.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<project name="SemanticScuttle" default="dist" basedir=".">
+<project name="SemanticScuttle" default="zip" basedir=".">
<!--
SemanticScuttle phing build file.
This script should provide a one-stop tool for all administrative
@@ -13,8 +13,9 @@
<property name="distfile" value="dist/${zipfile}" />
<property name="sfproject" value="SemanticScuttle" />
<property name="sffilepath" value="s/se/semanticscuttle/" />
+ <property name="svnpath" value="https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/" />
- <target name="dist" depends="check"
+ <target name="zip" depends="check"
description="Create zip file for release"
>
<!--
@@ -45,13 +46,21 @@
</target>
+
+ <target name="release" depends="check,zip,deploy-sf,svntag"
+ description="Release the version on sourceforge"
+ >
+ <!-- meta-target -->
+ </target>
+
+
<!--
/home/frs/project/s/se/semanticscuttle/SemanticScuttle/v0.94/
/home/frs/project/s/se/semanticscuttle/SemanticScuttle/v0.94/SemanticScuttle-v0.94.zip
/home/frs/project/s/se/semanticscuttle/SemanticScuttle/v0.94/SemanticScuttle-v0.94.1.zip
https://sourceforge.net/apps/trac/sourceforge/wiki/Release%20files%20for%20download
-->
- <target name="deploy-sf" depends="check,dist"
+ <target name="deploy-sf" depends="check,zip"
description="Upload release to sourceforge"
>
<delete dir="dist/deploy-sf" /><!-- make empty -->
@@ -63,6 +72,18 @@
-->
<exec
command="rsync -av -e ssh dist/deploy-sf/ ${sfuser},${sfproject}@frs.sourceforge.net:/home/frs/project/${sffilepath}/${sfproject}/"
+ escape="false" checkreturn="false"
+ />
+ <!-- rsync always returns code 23 on sourceforge releases, so we
+ can't check return values -->
+ </target>
+
+
+ <target name="svntag"
+ description="create the svn tag for the current version"
+ >
+ <exec
+ command="svn cp ${svnpath}trunk ${svnpath}/tags/${version}"
escape="false" checkreturn="true"
/>
</target>