summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2011-08-02 17:10:26 +0200
committerChristian Weiske <cweiske@cweiske.de>2011-08-02 17:10:26 +0200
commit5743a34a6c7757d3030479f96326f09fe5dce0b2 (patch)
tree920187a055eb5f1a373e37fa92f727abb8714499
parent008b65a1b2e167e0b8749d42b72220e8c2b53dc9 (diff)
downloadsemanticscuttle-5743a34a6c7757d3030479f96326f09fe5dce0b2.tar.gz
semanticscuttle-5743a34a6c7757d3030479f96326f09fe5dce0b2.tar.bz2
move filesets into project so we can re-use them later for the phar
-rw-r--r--build.xml56
1 files changed, 32 insertions, 24 deletions
diff --git a/build.xml b/build.xml
index ebbf6da..27a7fe8 100644
--- a/build.xml
+++ b/build.xml
@@ -26,6 +26,32 @@
<property name="sffilepath" value="s/se/semanticscuttle/" />
<property name="svnpath" value="https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/" />
+ <fileset id="fs.zip" dir=".">
+ <include name="data/**"/>
+ <include name="doc/**"/>
+ <include name="src/**"/>
+ <include name="www/**"/>
+ <exclude name="**/.gitignore/"/>
+ <exclude name="**/.svn/"/>
+ <exclude name="data/config.php"/>
+ <exclude name="data/config.testing.php"/>
+ <exclude name="data/config.testing-tmp.php"/>
+ <exclude name="data/locales/messages.po"/>
+ <exclude name="data/locales/*/LC_MESSAGES/messages.po"/>
+ <exclude name="src/php-gettext/examples/" />
+ <exclude name="src/php-gettext/tests/"/>
+ </fileset>
+
+ <fileset id="fs.doc" dir="doc">
+ <include name="ChangeLog"/>
+ <include name="**.txt"/>
+ <include name="**.rst"/>
+ <include name="**/*.rst"/>
+ <exclude name="LICENSE.txt"/>
+ <exclude name="developers/TODO.rst"/>
+ <exclude name="allinone.rst"/>
+ </fileset>
+
<taskdef name="rST" classname="phing.tasks.ext.rSTTask" />
<taskdef name="d51pearpkg2" classname="phing.tasks.ext.d51PearPkg2Task" />
@@ -41,21 +67,7 @@
<echo msg="Creating distribution zip for SemanticScuttle ${version}"/>
<delete file="${distfile}" failonerror="false"/>
<zip destfile="${distfile}" prefix="${phing.project.name}-${version}/">
- <fileset dir=".">
- <include name="data/**"/>
- <include name="doc/**"/>
- <include name="src/**"/>
- <include name="www/**"/>
- <exclude name="**/.gitignore/"/>
- <exclude name="**/.svn/"/>
- <exclude name="data/config.php"/>
- <exclude name="data/config.testing.php"/>
- <exclude name="data/config.testing-tmp.php"/>
- <exclude name="data/locales/messages.po"/>
- <exclude name="data/locales/*/LC_MESSAGES/messages.po"/>
- <exclude name="src/php-gettext/examples/" />
- <exclude name="src/php-gettext/tests/"/>
- </fileset>
+ <fileset refid="fs.zip"/>
</zip>
</target>
@@ -244,15 +256,7 @@
<rST format="html" uptodate="true"
toolparam="--stylesheet=res/docs/style.css"
>
- <fileset dir="doc">
- <include name="ChangeLog"/>
- <include name="**.txt"/>
- <include name="**.rst"/>
- <include name="**/*.rst"/>
- <exclude name="LICENSE.txt"/>
- <exclude name="developers/TODO.rst"/>
- <exclude name="allinone.rst"/>
- </fileset>
+ <fileset refid="fs.doc"/>
<mapper type="regexp" from="^doc/(.+?)(.rst|.txt)?$" to="dist/docs/\1.html"/>
<!--
<filterchain>
@@ -264,6 +268,10 @@
</rST>
</target>
+ <target name="clean-docs" description="delete rendered documentation files">
+ <delete dir="dist/docs" includeemptydirs="yes"/>
+ </target>
+
<target name="release" depends="check,zip,package,deploy-sf"
description="Release the version on sourceforge"