aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.xml56
-rw-r--r--res/docs/header.tpl.html8
2 files changed, 40 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"
diff --git a/res/docs/header.tpl.html b/res/docs/header.tpl.html
new file mode 100644
index 0000000..ee0650f
--- /dev/null
+++ b/res/docs/header.tpl.html
@@ -0,0 +1,8 @@
+<ul class="menu">
+ <li><a href="index.html">Index</a></li>
+ <li><a href="INSTALL.html">Installation</a></li>
+ <li><a href="UPGRADE.html">Upgrade</a></li>
+ <li><a href="ChangeLog.html">ChangeLog</a></li>
+ <li><a href="http://semanticscuttle.sourceforget.net/">Homepage</a></li>
+ <li><a href="https://sourceforget.net/projects/semanticscuttle">Project page</a></li>
+</ul>