Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

initial build file; creates release file and renders documentation

  • Loading branch information...
commit 3d6e99fd69bb5b0619160406c373589a39385153 1 parent 0167c3d
Christian Weiske cweiske authored

Showing 3 changed files with 67 additions and 0 deletions. Show diff stats Hide diff stats

  1. +2 0  .gitignore
  2. +1 0  build.properties.dist
  3. +64 0 build.xml
2  .gitignore
... ... @@ -1 +1,3 @@
1 1 README.html
  2 +build.properties
  3 +dist/
1  build.properties.dist
... ... @@ -0,0 +1 @@
  1 +sfuser=FIXME
64 build.xml
... ... @@ -0,0 +1,64 @@
  1 +<?xml version="1.0" encoding="utf-8"?>
  2 +<project name="phpfarm" default="zip" basedir=".">
  3 + <!--
  4 + phpfarm phing build file.
  5 + This file is the one-stop tool for all phpfarm administrative tasks
  6 + -->
  7 + <property file="build.properties" />
  8 +
  9 + <property name="version-m" value="0.1" />
  10 + <property name="version" value="0.1.0" />
  11 + <property name="stability" value="beta" />
  12 +
  13 + <property name="zipfile" value="${phing.project.name}-${version}.tar.bz2" />
  14 + <property name="distfile" value="dist/${zipfile}" />
  15 + <property name="sfproject" value="phpfarm" />
  16 + <property name="sffilepath" value="p/ph/phpfarm/" />
  17 +
  18 + <fileset id="fs.zip" dir=".">
  19 + <include name="inst/bin/.keep-phpfarm"/>
  20 + <include name="src/bzips/.keep-phpfarm"/>
  21 + <include name="src/compile.sh"/>
  22 + <include name="src/default-custom-php.ini"/>
  23 + <include name="src/options.sh"/>
  24 + <include name="src/pyrus.sh"/>
  25 + <include name="README"/>
  26 + <include name="README.html"/>
  27 + </fileset>
  28 +
  29 + <fileset id="fs.doc" dir=".">
  30 + <include name="README"/>
  31 + </fileset>
  32 +
  33 +
  34 + <target name="zip" depends="check,build-docs"
  35 + description="Create release file"
  36 + >
  37 + <echo msg="Creating distribution file ${phing.project.name} ${version}"/>
  38 + <delete file="${distfile}" failonerror="false"/>
  39 + <tar destfile="${distfile}"
  40 + compression="bzip2"
  41 + prefix="${phing.project.name}-${version}/">
  42 + <fileset refid="fs.zip"/>
  43 + </tar>
  44 + </target>
  45 +
  46 + <target name="build-docs" description="render documentation">
  47 + <rST format="html" uptodate="true">
  48 + <fileset refid="fs.doc"/>
  49 + </rST>
  50 + </target>
  51 +
  52 +
  53 + <target name="check"
  54 + description="Check variables"
  55 + >
  56 + <fail unless="version" message="Version not defined!" />
  57 + <fail unless="sfuser" message="Sourceforge username not defined!" />
  58 + <fail unless="sfproject" message="Sourceforge project name not defined!" />
  59 + <fail unless="sffilepath" message="Sourceforge project file path not defined!" />
  60 +
  61 + <mkdir dir="dist" />
  62 + </target>
  63 +
  64 +</project>

0 comments on commit 3d6e99f

Please sign in to comment.
Something went wrong with that request. Please try again.