|
5 | 5 | <svnlastrevision workingcopy="." propertyname="svn.lastrevision"/> |
6 | 6 | <property name="VERSION" value="0.8.${svn.lastrevision}" /> |
7 | 7 |
|
8 | | - <fileset dir="${BUILDDIR}" id="pkgfiles"> |
9 | | - <include name="*.php" /> |
10 | | - <include name="**/*.php" /> |
| 8 | + <fileset id="pkgfiles" dir="."> |
| 9 | + <include name="lib/**/*.php" /> |
| 10 | + <include name="lib/**.php" /> |
| 11 | + <include name="examples/*.php" /> |
| 12 | + <include name="examples/**/*.php" /> |
| 13 | + <include name="tests/**.php" /> |
| 14 | + <include name="tests/**/*.php" /> |
11 | 15 | <include name="README" /> |
12 | 16 | <include name="LICENCE" /> |
13 | 17 | <include name="ChangeLog" /> |
14 | 18 | </fileset> |
15 | 19 |
|
16 | | - |
17 | 20 | <target name="prepare"> |
18 | 21 | <echo msg="Preparing build.." /> |
19 | 22 | <mkdir dir="${BUILDDIR}" /> |
20 | | - <copy file="LICENCE" todir="${BUILDDIR}" /> |
21 | 23 | </target> |
22 | 24 |
|
23 | 25 | <target name="build" depends="prepare"> |
24 | 26 | <echo msg="Copying source files" /> |
25 | | - <mkdir dir="${BUILDDIR}/lib" /> |
26 | | - <copy todir="${BUILDDIR}/lib"> |
27 | | - <fileset dir="lib/"> |
28 | | - <include name="*.php" /> |
29 | | - <include name="**/*.php" /> |
30 | | - </fileset> |
31 | | - </copy> |
32 | | - <copy todir="${BUILDDIR}/tests"> |
33 | | - <fileset dir="tests/"> |
34 | | - <include name="*.php" /> |
35 | | - <include name="**/*.php" /> |
36 | | - </fileset> |
| 27 | + <mkdir dir="${BUILDDIR}" /> |
| 28 | + <copy todir="${BUILDDIR}"> |
| 29 | + <fileset refid="pkgfiles" /> |
37 | 30 | </copy> |
38 | 31 | </target> |
39 | 32 |
|
40 | | - |
41 | | - <target name="buildexamples" depends="prepare"> |
42 | | - <echo msg="Copying examples" /> |
43 | | - <mkdir dir="${BUILDDIR}/examples" /> |
44 | | - <copy todir="${BUILDDIR}/examples"> |
45 | | - <fileset dir="examples/"> |
46 | | - <include name="*.php" /> |
47 | | - </fileset> |
48 | | - </copy> |
49 | | - </target> |
50 | | - |
51 | 33 | <target name="package" depends="build"> |
52 | 34 | <echo msg="packaging" /> |
53 | 35 | <tar destfile="SabreDAV-${VERSION}.tar.gz" basedir="${BUILDDIR}" compression="gzip" /> |
|
91 | 73 | <phpdoc title="SabreDAV API Documentation" destdir="build/apidocs" sourcepath="Sabre/" output="HTML:frames:default" /> |
92 | 74 | </target> |
93 | 75 |
|
94 | | - <target name="dist" depends="build, buildexamples, package, clean"> |
| 76 | + <target name="dist" depends="build, package, clean"> |
95 | 77 | <echo msg="Creating full featured SabreDAV package" /> |
96 | 78 | </target> |
97 | 79 |
|
|
0 commit comments