Skip to content

Commit

Permalink
Dropped pear packaging and went with a regular .tar.gz
Browse files Browse the repository at this point in the history
  • Loading branch information
evert committed Feb 17, 2009
1 parent 6190d50 commit 93f0532
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
0.6-alpha (2009-02-??)
0.6-alpha (2009-02-16)
* Added: Now uses streams for files, instead of strings.
This means it won't require to hold entire files in memory, which can be
an issue if you're dealing with big files. Note that this breaks
Expand Down
23 changes: 16 additions & 7 deletions build.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?xml version="1.0"?>
<project name="SabreDAV" default="dist" basedir=".">

<property name="BUILDDIR" value="build/" />
<property name="BUILDDIR" value="SabreDAV/" />
<svnlastrevision workingcopy="." propertyname="svn.lastrevision"/>
<property name="VERSION" value="0.6.${svn.lastrevision}" />

<fileset dir="${BUILDDIR}" id="pkgfiles">
<include name="*.php" />
Expand All @@ -21,13 +22,19 @@

<target name="build" depends="prepare">
<echo msg="Copying source files" />
<mkdir dir="${BUILDDIR}" />
<copy todir="${BUILDDIR}">
<mkdir dir="${BUILDDIR}/lib" />
<copy todir="${BUILDDIR}/lib">
<fileset dir="lib/">
<include name="*.php" />
<include name="**/*.php" />
</fileset>
</copy>
<copy todir="${BUILDDIR}/tests">
<fileset dir="tests/">
<include name="*.php" />
<include name="**/*.php" />
</fileset>
</copy>
</target>


Expand All @@ -41,8 +48,9 @@
</copy>
</target>

<target name="package" depends="build, pearpkg">
<target name="package" depends="build">
<echo msg="packaging" />
<tar destfile="SabreDAV-${VERSION}.tar.gz" basedir="${BUILDDIR}" compression="gzip" />
</target>

<target name="pearpkg" depends="prepare, build">
Expand All @@ -51,7 +59,7 @@
<option name="notes">Alpha release.</option>
<option name="description">SabreDAV is a WebDAV library allowing you to implement WebDAV servers using just PHP 5. Its focus is to create a library that allows you to easily build WebDAV shares based on existing web applications, and has many features to accomodate for common clients in a logical manner.</option>
<option name="summary">SabreDAV is a WebDAV library for PHP 5.</option>
<option name="version" value="0.6.${svn.lastrevision}" />
<option name="version" value="${VERSION}" />
<option name="state" value="alpha" />
<option name="licence" value="BSD" />
<option name="baseinstalldir" value="/" />
Expand All @@ -74,6 +82,7 @@
<element key="README" value="doc" />
<element key="LICENCE" value="doc" />
<element key="ChangeLog" value="doc" />
<element key="tests/*" value="test" />
</mapping>
</pearpkg>
</target>
Expand All @@ -82,13 +91,13 @@
<phpdoc title="SabreDAV API Documentation" destdir="build/apidocs" sourcepath="Sabre/" output="HTML:frames:default" />
</target>

<target name="dist" depends="build, buildexamples, pearpkg">
<target name="dist" depends="build, buildexamples, package, clean">
<echo msg="Creating full featured SabreDAV package" />
</target>

<target name="clean">
<echo msg="Removing build files (cleaning up distribution)" />
<delete dir="build/" />
<delete dir="${BUILDDIR}/" />
<delete dir="apidocs" />
</target>

Expand Down

0 comments on commit 93f0532

Please sign in to comment.