Permalink
Browse files

initial build file; creates release file and renders documentation

  • Loading branch information...
1 parent 0167c3d commit 3d6e99fd69bb5b0619160406c373589a39385153 @cweiske cweiske committed Sep 2, 2011
Showing with 67 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +1 −0 build.properties.dist
  3. +64 −0 build.xml
View
2 .gitignore
@@ -1 +1,3 @@
README.html
+build.properties
+dist/
View
1 build.properties.dist
@@ -0,0 +1 @@
+sfuser=FIXME
View
64 build.xml
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="utf-8"?>
+<project name="phpfarm" default="zip" basedir=".">
+ <!--
+ phpfarm phing build file.
+ This file is the one-stop tool for all phpfarm administrative tasks
+ -->
+ <property file="build.properties" />
+
+ <property name="version-m" value="0.1" />
+ <property name="version" value="0.1.0" />
+ <property name="stability" value="beta" />
+
+ <property name="zipfile" value="${phing.project.name}-${version}.tar.bz2" />
+ <property name="distfile" value="dist/${zipfile}" />
+ <property name="sfproject" value="phpfarm" />
+ <property name="sffilepath" value="p/ph/phpfarm/" />
+
+ <fileset id="fs.zip" dir=".">
+ <include name="inst/bin/.keep-phpfarm"/>
+ <include name="src/bzips/.keep-phpfarm"/>
+ <include name="src/compile.sh"/>
+ <include name="src/default-custom-php.ini"/>
+ <include name="src/options.sh"/>
+ <include name="src/pyrus.sh"/>
+ <include name="README"/>
+ <include name="README.html"/>
+ </fileset>
+
+ <fileset id="fs.doc" dir=".">
+ <include name="README"/>
+ </fileset>
+
+
+ <target name="zip" depends="check,build-docs"
+ description="Create release file"
+ >
+ <echo msg="Creating distribution file ${phing.project.name} ${version}"/>
+ <delete file="${distfile}" failonerror="false"/>
+ <tar destfile="${distfile}"
+ compression="bzip2"
+ prefix="${phing.project.name}-${version}/">
+ <fileset refid="fs.zip"/>
+ </tar>
+ </target>
+
+ <target name="build-docs" description="render documentation">
+ <rST format="html" uptodate="true">
+ <fileset refid="fs.doc"/>
+ </rST>
+ </target>
+
+
+ <target name="check"
+ 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>

0 comments on commit 3d6e99f

Please sign in to comment.