-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
executable file
·68 lines (61 loc) · 2.29 KB
/
build.xml
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
<?xml version="1.0" encoding="UTF-8" ?>
<project>
<property file="build.properties" />
<target name="textdomain">
<!-- Add the feed-stats-plugin text domain to all of the PHP
files in this project using the apply task. -->
<apply executable="php">
<arg value="${wpi18n}/add-textdomain.php" />
<arg value="-i" />
<arg value="feed-stats-plugin" />
<fileset dir="." includes="**/*.php" />
</apply>
</target>
<target name="makepot">
<!-- Run the WordPress i18n MakePOT utility. -->
<exec executable="php">
<arg value="${wpi18n}/makepot.php" />
<arg value="wp-plugin" />
<arg value="." />
</exec>
</target>
<target name="cleanup">
<fixcrlf srcdir="." includes="**/*.js" eol="asis" tab="remove"
tablength="4" eof="asis" />
<fixcrlf srcdir="." includes="**/*.xml" eol="asis" tab="remove"
tablength="4" eof="asis" />
<fixcrlf srcdir="." includes="**/*.html" eol="asis" tab="remove"
tablength="4" eof="asis" />
<fixcrlf srcdir="." includes="**/*.php" excludes="**/*simpletest*"
eol="asis" tab="remove" tablength="4" eof="asis" />
</target>
<target name="preptag">
<!-- Create a new directory for this release. -->
<exec executable="svn">
<arg value="mkdir" />
<arg value="../tags/${release}" />
</exec>
<!-- Copy all of the appropriate folders into the tag folder. -->
<apply executable="svn">
<arg value="cp" />
<srcfile />
<dirset dir=".">
<include name="*" />
<exclude name="tests" />
</dirset>
<arg value="../tags/${release}/" />
</apply>
<!-- Copy all of the appropriate files into the tag folder. -->
<apply executable="svn">
<arg value="cp" />
<srcfile />
<fileset dir=".">
<include name="*.php" />
<include name="changelog.txt" />
<include name="copying.txt" />
<include name="readme.txt" />
</fileset>
<arg value="../tags/${release}/" />
</apply>
</target>
</project>