diff options
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 27 |
1 files changed, 24 insertions, 3 deletions
@@ -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> |