2009-11-10 17:49:19 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<project name="SemanticScuttle" default="dist" basedir=".">
|
|
|
|
<!--
|
|
|
|
SemanticScuttle phing build file.
|
|
|
|
This script should provide a one-stop tool for all administrative
|
|
|
|
tasks around SemanticScuttle, like creating a release version,
|
|
|
|
tagging a release, running unit tests etc.
|
|
|
|
-->
|
2009-11-13 23:15:30 +00:00
|
|
|
<property file="build.properties" />
|
2009-11-10 17:54:44 +00:00
|
|
|
|
2009-11-13 23:15:30 +00:00
|
|
|
<property name="version" value="0.95" />
|
2009-11-13 23:17:15 +00:00
|
|
|
<property name="zipfile" value="${phing.project.name}-${version}.zip" />
|
|
|
|
<property name="distfile" value="dist/${zipfile}" />
|
2009-11-13 23:15:30 +00:00
|
|
|
<property name="sfproject" value="SemanticScuttle" />
|
|
|
|
<property name="sffilepath" value="s/se/semanticscuttle/" />
|
|
|
|
|
|
|
|
<target name="dist" depends="check"
|
|
|
|
description="Create zip file for release"
|
|
|
|
>
|
2009-11-10 17:54:44 +00:00
|
|
|
<!--
|
|
|
|
The release file is for end users, so it is safe to
|
|
|
|
remove anything developer-related.
|
|
|
|
|
|
|
|
Test your zip with: unzip -l SemanticScuttle-0.95.0.zip
|
|
|
|
-->
|
2009-11-13 23:15:30 +00:00
|
|
|
<mkdir dir="dist" />
|
2009-11-10 17:54:44 +00:00
|
|
|
<echo msg="Creating distribution zip for SemanticScuttle ${version}"/>
|
2009-11-13 23:15:30 +00:00
|
|
|
<delete file="${distfile}" failonerror="false"/>
|
|
|
|
<zip destfile="${distfile}" prefix="${phing.project.name}-${version}/">
|
2009-11-10 17:49:19 +00:00
|
|
|
<fileset dir=".">
|
2009-11-13 23:16:23 +00:00
|
|
|
<include name="data/**"/>
|
|
|
|
<include name="doc/**"/>
|
|
|
|
<include name="src/**"/>
|
|
|
|
<include name="www/**"/>
|
|
|
|
<exclude name="**/.gitignore/"/>
|
2009-11-10 17:54:44 +00:00
|
|
|
<exclude name="**/.svn/"/>
|
2009-11-10 17:49:19 +00:00
|
|
|
<exclude name="data/config.php"/>
|
2009-11-10 17:54:44 +00:00
|
|
|
<exclude name="data/locales/messages.po"/>
|
|
|
|
<exclude name="data/locales/*/LC_MESSAGES/messages.po"/>
|
|
|
|
<exclude name="doc/developers/"/>
|
|
|
|
<exclude name="src/php-gettext/examples/" />
|
|
|
|
<exclude name="src/php-gettext/bin/"/>
|
2009-11-10 17:49:19 +00:00
|
|
|
</fileset>
|
|
|
|
</zip>
|
|
|
|
</target>
|
|
|
|
|
2009-11-13 23:15:30 +00:00
|
|
|
|
|
|
|
<!--
|
|
|
|
/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
|
2009-11-13 23:18:07 +00:00
|
|
|
https://sourceforge.net/apps/trac/sourceforge/wiki/Release%20files%20for%20download
|
2009-11-13 23:15:30 +00:00
|
|
|
-->
|
|
|
|
<target name="deploy-sf" depends="check,dist"
|
|
|
|
description="Upload release to sourceforge"
|
|
|
|
>
|
|
|
|
<delete dir="dist/deploy-sf" /><!-- make empty -->
|
|
|
|
<mkdir dir="dist/deploy-sf" />
|
|
|
|
<mkdir dir="dist/deploy-sf/v${version}" />
|
2009-11-13 23:17:15 +00:00
|
|
|
<copy file="${distfile}" tofile="dist/deploy-sf/v${version}/${zipfile}"/>
|
2009-11-13 23:15:30 +00:00
|
|
|
<!-- test
|
|
|
|
<exec command="rsync -av dist/deploy-sf/ /tmp/test/" escape="false" />
|
|
|
|
-->
|
|
|
|
<exec
|
|
|
|
command="rsync -av -e ssh dist/deploy-sf/ ${sfuser},${sfproject}@frs.sourceforge.net:/home/frs/project/${sffilepath}/${sfproject}/"
|
|
|
|
escape="false" checkreturn="true"
|
|
|
|
/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
|
|
<target name="check"
|
|
|
|
description="Check variables"
|
|
|
|
>
|
|
|
|
<fail unless="version" message="Version not defined!" />
|
|
|
|
<fail unless="sfuser" message="Sourceforge username not defined!" />
|
|
|
|
<fail unless="sfproject" message="Sourceforge project name not defined!" />
|
|
|
|
<fail unless="sffilepath" message="Sourceforge project file path not defined!" />
|
|
|
|
</target>
|
|
|
|
|
2009-11-10 17:49:19 +00:00
|
|
|
</project>
|