Permalink
Browse files

Adding build.xml for generating PEAR package.

  • Loading branch information...
1 parent 962b280 commit 6a3cda0b2fe0bbdc69395a74252dd3b1b58c66c5 @kiall kiall committed Dec 15, 2010
Showing with 68 additions and 1 deletion.
  1. +3 −1 .gitignore
  2. +14 −0 LICENSE.md
  3. +51 −0 build.xml
View
@@ -1,2 +1,4 @@
*.swp
-*.swo
+*.swo
+*.tgz
+package.xml
View
@@ -0,0 +1,14 @@
+# Kohana License Agreement
+
+This license is a legal agreement between you and the Kohana Team for the use of Kohana Framework (the "Software"). By obtaining the Software you agree to comply with the terms and conditions of this license.
+
+Copyright (c) 2007-2010 Kohana Team
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+* Neither the name of the Kohana nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
View
@@ -0,0 +1,51 @@
+<?xml version="1.0" ?>
+<project name="kohana-coding-standards" basedir="." default="dist">
+ <property name="version" value="1.0.${env.BUILD_NUMBER}" />
+
+ <target name="clean">
+ <echo>Cleaning...</echo>
+ <delete file="*.tgz"/>
+ <delete file="package.xml"/>
+ </target>
+
+ <!-- pear-package Create a PEAR package.xml which will guide the installation. -->
+ <target name="dist" depends="clean">
+ <echo>Creating PEAR package.xml...</echo>
+ <pearpkg2 name="PHP_CodeSniffer_Standards_Kohana" dir="${project.basedir}">
+ <option name="outputdirectory" value="${project.basedir}"/>
+ <option name="packagefile" value="package.xml"/>
+ <option name="packagedirectory" value="${project.basedir}"/>
+ <option name="channel" value="pear.kohanaframework.org"/>
+ <option name="summary" value="Kohana PHP_CodeSniffer standard"/>
+ <option name="description" value="Kohana PHP_CodeSniffer standard"/>
+ <option name="notes" value="Kohana PHP_CodeSniffer standard"/>
+ <option name="apiversion" value="${version}"/>
+ <option name="apistability" value="stable"/>
+ <option name="releaseversion" value="${version}"/>
+ <option name="releasestability" value="stable"/>
+ <option name="license" value="BSD"/>
+ <option name="phpdep" value="5.0.0"/>
+ <option name="pearinstallerdep" value="1.4.6"/>
+ <option name="packagetype" value="php"/>
+ <option name="baseinstalldir" value="."/>
+ <mapping name="maintainers">
+ <element>
+ <element key="handle" value="kohana-develoepers"/>
+ <element key="name" value="Kohana Developers"/>
+ <element key="email" value="developers@kohanaphp.com"/>
+ <element key="role" value="lead"/>
+ </element>
+ </mapping>
+ <fileset dir="${project.basedir}">
+ <include name="PHP/**/*.php" />
+ </fileset>
+ </pearpkg2>
+
+ <echo>Creating tgz package...</echo>
+ <tar compression="gzip" destFile="PHP_CodeSniffer_Standards_Kohana-${version}.tgz">
+ <fileset dir=".">
+ <exclude name="*.tgz"/>
+ </fileset>
+ </tar>
+ </target>
+</project>

0 comments on commit 6a3cda0

Please sign in to comment.