update excludes
[phorkie.git] / build.xml
index dbf828d..174fe3a 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -55,8 +55,11 @@ Version 0.3.0 - 2012-09-27
    <include name="NEWS.rst"/>
    <include name="README.rst"/>
 
+   <exclude name="**/.git/"/>
    <exclude name="**/.gitignore/"/>
    <exclude name="data/config.php"/>
+   <exclude name="www/**/.phar"/>
+   <exclude name="www/repos"/>
   </fileset>
 
   <fileset id="fs.phar" dir="${phing.dir}">
@@ -70,8 +73,10 @@ Version 0.3.0 - 2012-09-27
    <include name="README.rst"/>
 
    <exclude name="data/config.php"/>
-   <exclude name="**/.gitignore/"/>
    <exclude name="**/.git/"/>
+   <exclude name="**/.gitignore/"/>
+   <exclude name="www/**/.phar"/>
+   <exclude name="www/repos"/>
   </fileset>
 
   <fileset id="fs.doc" dir=".">
@@ -82,7 +87,7 @@ Version 0.3.0 - 2012-09-27
   <taskdef name="d51pearpkg2" classname="phing.tasks.ext.d51PearPkg2Task" />
 
 
-  <target name="phar" depends="collectdeps"
+  <target name="phar" depends="preparedirs,collectdeps"
           description="Create phar file for release"
   >
    <delete file="${pharfile}"/>
@@ -108,7 +113,9 @@ Version 0.3.0 - 2012-09-27
 
    <!-- requires phing >= 2.8.0 -->
    <copy todir="${libdir}">
+    <pearPackageFileset package="pear.php.net/Cache_Lite"/><!-- OpenID -->
     <pearPackageFileset package="pear.php.net/Console_Getopt"/>
+    <pearPackageFileset package="pear.php.net/Crypt_DiffieHellman"/><!-- OpenID -->
     <pearPackageFileset package="pear.php.net/Date_HumanDiff"/>
     <pearPackageFileset package="pear.geshi.org/geshi">
      <!-- remove files that are probably not needed to save space in the .phar -->
@@ -133,15 +140,17 @@ Version 0.3.0 - 2012-09-27
      <include name="System.php"/>
     </pearPackageFileset>
     <pearPackageFileset package="pear.php.net/Services_Libravatar"/>
-    <pearPackageFileset package="pear2.php.net/Services_Linkback"/>
+    <pearPackageFileset package="pear2.php.net/PEAR2_Services_Linkback"/>
+    <pearPackageFileset package="pear.php.net/Services_Yadis"/>
     <pearPackageFileset package="pear.php.net/System_Command"/>
     <pearPackageFileset package="pear.twig-project.org/Twig"/>
+    <pearPackageFileset package="pear.php.net/Validate"/>
     <pearPackageFileset package="pear.php.net/VersionControl_Git"/>
    </copy>
   </target>
 
 
-  <target name="zip" depends="check"
+  <target name="zip" depends="preparedirs"
    description="Create zip file for release"
    >
     <!--
@@ -201,6 +210,10 @@ Version 0.3.0 - 2012-09-27
                 channel="pear.php.net"
                 minimum_version="2.4.8"
                 />
+       <package name="PEAR2_Services_Linkback"
+                channel="pear2.php.net"
+                minimum_version="0.2.1"
+                />
        <package name="Services_Libravatar"
                 channel="pear.php.net"
                 minimum_version="0.2.2"
@@ -349,15 +362,17 @@ Version 0.3.0 - 2012-09-27
   </target>
 
 
-  <target name="check"
+  <target name="preparedirs">
+    <mkdir dir="dist" />
+  </target>
+
+  <target name="check" depends="preparedirs"
    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!" />
-
-    <mkdir dir="dist" />
   </target>
 
 </project>