summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2010-08-22 11:10:15 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2010-08-22 11:10:15 +0000
commit19bcf4933f4478ab97290501fc22440a1242cb7d (patch)
treef1963522848efa796c5c7bc3307c433ffca73f84
parent05832245e26758d5f758038024e86f2082471a10 (diff)
downloadsemanticscuttle-19bcf4933f4478ab97290501fc22440a1242cb7d.tar.gz
semanticscuttle-19bcf4933f4478ab97290501fc22440a1242cb7d.tar.bz2
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
-rw-r--r--build.properties.dist1
-rw-r--r--build.xml55
2 files changed, 49 insertions, 7 deletions
diff --git a/build.properties.dist b/build.properties.dist
index b50ad08..887f888 100644
--- a/build.properties.dist
+++ b/build.properties.dist
@@ -1 +1,2 @@
sfuser=FIXME
+websitedir=FIXME
diff --git a/build.xml b/build.xml
index 1a979dd..3da2c89 100644
--- a/build.xml
+++ b/build.xml
@@ -21,12 +21,13 @@
- Fix bug #2960663: do not send content-type headers twice for ajax/api scripts
- Fix bug #2976593: fr_FR locale is vietnamese
" />
- <property name="zipfile" value="${phing.project.name}-${version}.zip" />
- <property name="pkgfile" value="${phing.project.name}-${version}.tgz" />
- <property name="distfile" value="dist/${zipfile}" />
- <property name="sfproject" value="SemanticScuttle" />
- <property name="sffilepath" value="s/se/semanticscuttle/" />
- <property name="svnpath" value="https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/" />
+ <property name="zipfile" value="${phing.project.name}-${version}.zip" />
+ <property name="pkgfile" value="${phing.project.name}-${version}.tgz" />
+ <property name="distfile" value="dist/${zipfile}" />
+ <property name="distpkgfile" value="dist/pear/${pkgfile}" />
+ <property name="sfproject" value="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" />
@@ -73,7 +74,7 @@
A social bookmarking tool experimenting with new features
like structured tags or collaborative descriptions of tags.
</description>
- <channel>__uri</channel>
+ <channel>semanticscuttle.sourceforge.net</channel>
<lead user="cweiske" name="Christian Weiske" email="cweiske@cweiske.de" />
<license>GPL</license>
@@ -237,6 +238,46 @@
</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"
description="create the svn tag for the current version"
>