blob: bda5641398564d307279efccedb5aa714c712a6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
|
<?xml version="1.0" encoding="utf-8"?>
<project name="SemanticScuttle" default="zip" basedir=".">
<!--
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.
-->
<property file="build.properties" />
<property name="version-m" value="0.97" />
<property name="version" value="0.97.0" />
<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
" />
<property name="zipfile" value="${phing.project.name}-${version}.zip" />
<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/" />
<target name="zip" depends="check"
description="Create zip file for release"
>
<!--
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
-->
<mkdir dir="dist" />
<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/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/"/>
</fileset>
</zip>
</target>
<target name="package" depends="check"
description="Creates the pear package"
>
<!-- fixme: create package.xml with d51pearpkg2 -->
<pearpkg2 name="SemanticScuttle" dir=".">
<option name="packagefile" value="package.xml" />
<option name="channel" value="__uri" />
<option name="summary" value="A social bookmarking tool"/>
<option name="description" value="A social bookmarking tool experimenting with new features like structured tags or collaborative descriptions of tags."/>
<option name="apiversion" value="${version}" />
<option name="apistability" value="${stability}" />
<option name="releaseversion" value="${version}" />
<option name="releasestability" value="${stability}" />
<option name="license" value="http://www.gnu.org/licenses/gpl.html" />
<option name="phpdep" value="5.2.0" />
<option name="pearinstallerdep" value="1.8.1" />
<option name="packagetype" value="php" />
<option name="notes" value="${releasenotes}" />
<mapping name="maintainers">
<element>
<element key="handle" value="cweiske" />
<element key="name" value="Christian Weiske" />
<element key="email" value="cweiske@cweiske.de" />
<element key="role" value="lead" />
<element key="active" value="no" />
</element>
</mapping>
<mapping name="deps">
<element>
<element key="channel" value="pear.php.net" />
<element key="name" value="HTML_QuickForm2" />
<element key="version" value="0.4.0" />
</element>
</mapping>
<option name="baseinstalldir" value="/" />
<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/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/"/>
</fileset>
</pearpkg2>
</target>
<target name="release" depends="check,zip,deploy-sf,svntag"
description="Release the version on sourceforge"
>
<!-- meta-target -->
</target>
<!--
/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
https://sourceforge.net/apps/trac/sourceforge/wiki/Release%20files%20for%20download
-->
<target name="deploy-sf" depends="check,zip"
description="Upload release to sourceforge"
>
<delete dir="dist/deploy-sf" /><!-- make empty -->
<mkdir dir="dist/deploy-sf" />
<mkdir dir="dist/deploy-sf/v${version-m}" />
<copy file="${distfile}" tofile="dist/deploy-sf/v${version-m}/${zipfile}"/>
<!-- 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}/"
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
command="svn cp ${svnpath}trunk ${svnpath}/tags/${version} -m 'tag version ${version}'"
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>
</project>
|