doc deployment task
This commit is contained in:
parent
6f93d0b020
commit
d970754ff1
1 changed files with 13 additions and 3 deletions
16
build.xml
16
build.xml
|
@ -283,7 +283,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<target name="deploy-sf-pear" depends="check,package,docs-to-website"
|
<target name="deploy-sf-pear" depends="check,package"
|
||||||
description="Update PEAR channel + website on sourceforge"
|
description="Update PEAR channel + website on sourceforge"
|
||||||
>
|
>
|
||||||
<available file="${websitedir}"
|
<available file="${websitedir}"
|
||||||
|
@ -348,17 +348,27 @@
|
||||||
/>
|
/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="docs-to-website" depends="build-docs"
|
|
||||||
description="copy docs to website directory"
|
<target name="deploy-docs" depends="build-docs"
|
||||||
|
description="sync docs to sourceforge website"
|
||||||
>
|
>
|
||||||
<copy todir="${websitedir}/docs">
|
<copy todir="${websitedir}/docs">
|
||||||
<fileset dir="dist/docs">
|
<fileset dir="dist/docs">
|
||||||
<include name="**"/>
|
<include name="**"/>
|
||||||
</fileset>
|
</fileset>
|
||||||
</copy>
|
</copy>
|
||||||
|
|
||||||
|
<exec
|
||||||
|
command="rsync -avP -e ssh . ${sfuser},${sfproject}@web.sourceforge.net:htdocs/docs"
|
||||||
|
dir="${websitedir}/docs"
|
||||||
|
escape="false" checkreturn="false"
|
||||||
|
passthru="true"
|
||||||
|
/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<target name="check"
|
<target name="check"
|
||||||
description="Check variables"
|
description="Check variables"
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in a new issue