make pear channel update deployment work via phing!

git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@720 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
cweiske 2010-08-22 11:10:15 +00:00
parent 05832245e2
commit 19bcf4933f
2 changed files with 49 additions and 7 deletions

View File

@ -1 +1,2 @@
sfuser=FIXME sfuser=FIXME
websitedir=FIXME

View File

@ -21,12 +21,13 @@
- Fix bug #2960663: do not send content-type headers twice for ajax/api scripts - Fix bug #2960663: do not send content-type headers twice for ajax/api scripts
- Fix bug #2976593: fr_FR locale is vietnamese - Fix bug #2976593: fr_FR locale is vietnamese
" /> " />
<property name="zipfile" value="${phing.project.name}-${version}.zip" /> <property name="zipfile" value="${phing.project.name}-${version}.zip" />
<property name="pkgfile" value="${phing.project.name}-${version}.tgz" /> <property name="pkgfile" value="${phing.project.name}-${version}.tgz" />
<property name="distfile" value="dist/${zipfile}" /> <property name="distfile" value="dist/${zipfile}" />
<property name="sfproject" value="SemanticScuttle" /> <property name="distpkgfile" value="dist/pear/${pkgfile}" />
<property name="sffilepath" value="s/se/semanticscuttle/" /> <property name="sfproject" value="SemanticScuttle" />
<property name="svnpath" value="https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/" /> <property name="sffilepath" value="s/se/semanticscuttle/" />
<property name="svnpath" value="https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/" />
<taskdef classname="phing.tasks.ext.d51PearPkg2Task" name="d51pearpkg2" /> <taskdef classname="phing.tasks.ext.d51PearPkg2Task" name="d51pearpkg2" />
@ -73,7 +74,7 @@
A social bookmarking tool experimenting with new features A social bookmarking tool experimenting with new features
like structured tags or collaborative descriptions of tags. like structured tags or collaborative descriptions of tags.
</description> </description>
<channel>__uri</channel> <channel>semanticscuttle.sourceforge.net</channel>
<lead user="cweiske" name="Christian Weiske" email="cweiske@cweiske.de" /> <lead user="cweiske" name="Christian Weiske" email="cweiske@cweiske.de" />
<license>GPL</license> <license>GPL</license>
@ -237,6 +238,46 @@
</target> </target>
<target name="deploy-sf-pear" depends="check,package"
description="Update PEAR channel on sourceforge"
>
<available file="${websitedir}"
type="dir" property="available.websitedir"
/>
<fail unless="available.websitedir"
message="Website directory not set"
/>
<!--
1. rsync channel data from sourceforge to local, deleting
superfluous channel files. Need to do that so pirum knows
all previous releases when adding the new package
2. update channel with pirum update
3. rsync to sourceforge
-->
<exec
command="rsync --include-from=.rsync-include-files --delete -avP -e ssh ${sfuser},${sfproject}@web.sourceforge.net:htdocs/ ."
dir="${websitedir}"
escape="false" checkreturn="false"
passthru="true"
/>
<exec
command="pirum add ${websitedir} ${distpkgfile}"
passthru="true"
/>
<!-- rsync always returns code 23 on sourceforge releases, so we
can't check return values -->
<exec
command="rsync --include-from=.rsync-include-files -avP -e ssh . ${sfuser},${sfproject}@web.sourceforge.net:htdocs/"
dir="${websitedir}"
escape="false" checkreturn="false"
passthru="true"
/>
</target>
<target name="svntag" <target name="svntag"
description="create the svn tag for the current version" description="create the svn tag for the current version"
> >