2009-11-10 18:49:19 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2009-11-14 11:24:08 +01:00
|
|
|
<project name="SemanticScuttle" default="zip" basedir=".">
|
2009-11-10 18:49:19 +01:00
|
|
|
<!--
|
|
|
|
SemanticScuttle phing build file.
|
|
|
|
This script should provide a one-stop tool for all administrative
|
|
|
|
tasks around SemanticScuttle, like creating a release version,
|
|
|
|
tagging a release, running unit tests etc.
|
|
|
|
-->
|
2009-11-14 00:15:30 +01:00
|
|
|
<property file="build.properties" />
|
2009-11-10 18:54:44 +01:00
|
|
|
|
2010-06-09 07:59:51 +02:00
|
|
|
<property name="version-m" value="0.97" />
|
|
|
|
<property name="version" value="0.97.0" />
|
2010-08-12 22:01:48 +02:00
|
|
|
<property name="stability" value="beta" />
|
|
|
|
<property name="releasenotes" value="- Many SQL optimizations
|
|
|
|
- SemanticScuttle shows bookmarks 4 times faster now
|
|
|
|
- New config option to skip 'SET NAMES UTF8' call: $dbneedssetnames
|
|
|
|
- Do not highlight admin bookmarks when $enableAdminColors is disabled
|
|
|
|
- Add russian translation
|
|
|
|
- Make HTML export follow the specifications a bit better
|
|
|
|
- Fix bug #2953732: faulty error message for duplicate bookmarks
|
|
|
|
- Fix bug #2960663: do not send content-type headers twice for ajax/api scripts
|
|
|
|
- Fix bug #2976593: fr_FR locale is vietnamese
|
|
|
|
" />
|
2009-11-14 00:17:15 +01:00
|
|
|
<property name="zipfile" value="${phing.project.name}-${version}.zip" />
|
|
|
|
<property name="distfile" value="dist/${zipfile}" />
|
2009-11-14 00:15:30 +01:00
|
|
|
<property name="sfproject" value="SemanticScuttle" />
|
|
|
|
<property name="sffilepath" value="s/se/semanticscuttle/" />
|
2009-11-14 11:24:08 +01:00
|
|
|
<property name="svnpath" value="https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/" />
|
2009-11-14 00:15:30 +01:00
|
|
|
|
2010-08-22 00:25:54 +02:00
|
|
|
<taskdef classname="phing.tasks.ext.d51PearPkg2Task" name="d51pearpkg2" />
|
|
|
|
|
2009-11-14 11:24:08 +01:00
|
|
|
<target name="zip" depends="check"
|
2009-11-14 00:15:30 +01:00
|
|
|
description="Create zip file for release"
|
|
|
|
>
|
2009-11-10 18:54:44 +01:00
|
|
|
<!--
|
|
|
|
The release file is for end users, so it is safe to
|
|
|
|
remove anything developer-related.
|
|
|
|
|
|
|
|
Test your zip with: unzip -l SemanticScuttle-0.95.0.zip
|
|
|
|
-->
|
2009-11-14 00:15:30 +01:00
|
|
|
<mkdir dir="dist" />
|
2009-11-10 18:54:44 +01:00
|
|
|
<echo msg="Creating distribution zip for SemanticScuttle ${version}"/>
|
2009-11-14 00:15:30 +01:00
|
|
|
<delete file="${distfile}" failonerror="false"/>
|
|
|
|
<zip destfile="${distfile}" prefix="${phing.project.name}-${version}/">
|
2009-11-10 18:49:19 +01:00
|
|
|
<fileset dir=".">
|
2009-11-14 00:16:23 +01:00
|
|
|
<include name="data/**"/>
|
|
|
|
<include name="doc/**"/>
|
|
|
|
<include name="src/**"/>
|
|
|
|
<include name="www/**"/>
|
|
|
|
<exclude name="**/.gitignore/"/>
|
2009-11-10 18:54:44 +01:00
|
|
|
<exclude name="**/.svn/"/>
|
2009-11-10 18:49:19 +01:00
|
|
|
<exclude name="data/config.php"/>
|
2009-11-10 18:54:44 +01:00
|
|
|
<exclude name="data/locales/messages.po"/>
|
|
|
|
<exclude name="data/locales/*/LC_MESSAGES/messages.po"/>
|
|
|
|
<exclude name="doc/developers/"/>
|
|
|
|
<exclude name="src/php-gettext/examples/" />
|
|
|
|
<exclude name="src/php-gettext/bin/"/>
|
2009-11-10 18:49:19 +01:00
|
|
|
</fileset>
|
|
|
|
</zip>
|
|
|
|
</target>
|
|
|
|
|
2009-11-14 00:15:30 +01:00
|
|
|
|
2009-11-14 11:24:08 +01:00
|
|
|
|
2010-02-16 21:38:59 +01:00
|
|
|
<target name="package" depends="check"
|
|
|
|
description="Creates the pear package"
|
|
|
|
>
|
|
|
|
<!-- fixme: create package.xml with d51pearpkg2 -->
|
2010-08-22 00:25:54 +02:00
|
|
|
<d51pearpkg2 dir="." baseinstalldir="/">
|
|
|
|
<name>SemanticScuttle</name>
|
|
|
|
<summary>A social bookmarking tool</summary>
|
|
|
|
<description>
|
|
|
|
A social bookmarking tool experimenting with new features
|
|
|
|
like structured tags or collaborative descriptions of tags.
|
|
|
|
</description>
|
|
|
|
<channel>__uri</channel>
|
|
|
|
|
|
|
|
<lead user="cweiske" name="Christian Weiske" email="cweiske@cweiske.de" />
|
|
|
|
<license>GPL</license>
|
|
|
|
|
|
|
|
<version release="${version}" api="${version}" />
|
|
|
|
<stability release="${stability}" api="${stability}" />
|
|
|
|
|
|
|
|
<notes>${releasenotes}</notes>
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<php minimum_version="5.2.0" />
|
|
|
|
<pear minimum_version="1.8.1" />
|
|
|
|
|
|
|
|
<package name="HTML_QuickForm2"
|
|
|
|
channel="pear.php.net"
|
|
|
|
minimum_version="0.4.0"
|
|
|
|
/>
|
|
|
|
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<dirroles key="www">www</dirroles>
|
|
|
|
<dirroles key="data">data</dirroles>
|
|
|
|
<dirroles key="doc">doc</dirroles>
|
|
|
|
<dirroles key="src">php</dirroles>
|
|
|
|
<dirroles key="tests">test</dirroles>
|
|
|
|
|
|
|
|
<ignore>build*</ignore>
|
|
|
|
<ignore>dist</ignore>
|
|
|
|
<ignore>doc/developers</ignore>
|
|
|
|
<ignore>scripts</ignore>
|
|
|
|
<ignore>**/messages.po</ignore>
|
|
|
|
|
|
|
|
<changelog version="0.97" date="2010-06-09" license="GPL">
|
|
|
|
- Many SQL optimizations - SemanticScuttle shows bookmarks 4 times faster now
|
|
|
|
- New config option to skip "SET NAMES UTF8" call: $dbneedssetnames
|
|
|
|
- Do not highlight admin bookmarks when $enableAdminColors is disabled
|
|
|
|
- Add russian translation
|
|
|
|
- Make HTML export follow the specifications a bit better
|
|
|
|
- Fix bug #2953732: faulty error message for duplicate bookmarks
|
|
|
|
- Fix bug #2960663: do not send content-type headers twice for ajax/api scripts
|
|
|
|
- Fix bug #2976593: fr_FR locale is vietnamese
|
|
|
|
</changelog>
|
|
|
|
|
|
|
|
<!-- <dirroles key="bin">script</dirroles> -->
|
|
|
|
<!-- <replacement path="bin/doctrine" type="pear-config" from="@php_bin@" to="php_bin" /> -->
|
|
|
|
<!-- <release>
|
|
|
|
<install as="doctrine" name="bin/doctrine" />
|
|
|
|
-->
|
|
|
|
</d51pearpkg2>
|
|
|
|
<!-- <tar destfile="${dist.dir}/DoctrineORM-${version_name}.tgz" basedir="${build.dir}/orm" compression="gzip" />-->
|
2010-08-12 22:01:48 +02:00
|
|
|
|
2010-02-16 21:38:59 +01:00
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-11-14 11:24:08 +01:00
|
|
|
<target name="release" depends="check,zip,deploy-sf,svntag"
|
|
|
|
description="Release the version on sourceforge"
|
|
|
|
>
|
|
|
|
<!-- meta-target -->
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
2009-11-14 00:15:30 +01:00
|
|
|
<!--
|
|
|
|
/home/frs/project/s/se/semanticscuttle/SemanticScuttle/v0.94/
|
|
|
|
/home/frs/project/s/se/semanticscuttle/SemanticScuttle/v0.94/SemanticScuttle-v0.94.zip
|
|
|
|
/home/frs/project/s/se/semanticscuttle/SemanticScuttle/v0.94/SemanticScuttle-v0.94.1.zip
|
2009-11-14 00:18:07 +01:00
|
|
|
https://sourceforge.net/apps/trac/sourceforge/wiki/Release%20files%20for%20download
|
2009-11-14 00:15:30 +01:00
|
|
|
-->
|
2009-11-14 11:24:08 +01:00
|
|
|
<target name="deploy-sf" depends="check,zip"
|
2009-11-14 00:15:30 +01:00
|
|
|
description="Upload release to sourceforge"
|
|
|
|
>
|
|
|
|
<delete dir="dist/deploy-sf" /><!-- make empty -->
|
|
|
|
<mkdir dir="dist/deploy-sf" />
|
2009-11-16 21:51:00 +01:00
|
|
|
<mkdir dir="dist/deploy-sf/v${version-m}" />
|
|
|
|
<copy file="${distfile}" tofile="dist/deploy-sf/v${version-m}/${zipfile}"/>
|
2009-11-14 00:15:30 +01:00
|
|
|
<!-- test
|
|
|
|
<exec command="rsync -av dist/deploy-sf/ /tmp/test/" escape="false" />
|
|
|
|
-->
|
|
|
|
<exec
|
|
|
|
command="rsync -av -e ssh dist/deploy-sf/ ${sfuser},${sfproject}@frs.sourceforge.net:/home/frs/project/${sffilepath}/${sfproject}/"
|
2009-11-14 11:24:08 +01:00
|
|
|
escape="false" checkreturn="false"
|
|
|
|
/>
|
|
|
|
<!-- rsync always returns code 23 on sourceforge releases, so we
|
|
|
|
can't check return values -->
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
|
|
<target name="svntag"
|
|
|
|
description="create the svn tag for the current version"
|
|
|
|
>
|
|
|
|
<exec
|
2009-11-16 21:51:00 +01:00
|
|
|
command="svn cp ${svnpath}trunk ${svnpath}/tags/${version} -m 'tag version ${version}'"
|
2009-11-14 00:15:30 +01:00
|
|
|
escape="false" checkreturn="true"
|
|
|
|
/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
|
|
<target name="check"
|
|
|
|
description="Check variables"
|
|
|
|
>
|
|
|
|
<fail unless="version" message="Version not defined!" />
|
|
|
|
<fail unless="sfuser" message="Sourceforge username not defined!" />
|
|
|
|
<fail unless="sfproject" message="Sourceforge project name not defined!" />
|
|
|
|
<fail unless="sffilepath" message="Sourceforge project file path not defined!" />
|
|
|
|
</target>
|
|
|
|
|
2009-11-10 18:49:19 +01:00
|
|
|
</project>
|