Kontakt - Datenschutz

Subversion

<?xml version="1.0" encoding="UTF-8"?>
<project name="yd-links" basedir="." default="build" phingVersion="2.16.1">
    <property file="build.properties"  />

    <!-- yd-links-0.1.0 -->
    <property name    ="name"    value  ="yd-links" />
    <loadfile property="version" srcfile="VERSION">
        <filterchain><striplinebreaks /></filterchain>
    </loadfile>

    <property name="build.dir"        value="build"             />
    <property name="build.dist.dir"   value="${build.dir}/dist" />
    <property name="build.dest.dir"   value="${build.dir}/dest" />

    <property name="deploy.local.dir" value="/tmp/${name}"      />


    <target name="clean" depends="build:clean"
            description="Clean all">
    </target>


    <target name="build:clean"
            description="Delete build directory">
        <delete dir="${build.dir}" />
    </target>


    <target name="build:prepare" depends="build:clean"
            description="Create build directory">
        <mkdir dir="${build.dir}"      />
        <mkdir dir="${build.dist.dir}" />
        <mkdir dir="${build.dest.dir}" />
    </target>


    <target name="build:tarball" depends="build:prepare"
            description="Create tar.gz archive">
        <copy todir="${build.dest.dir}">
            <fileset dir=".">
                <include name="*.php"     />
                <include name="config/**" />
                <include name="docs/**"   />
                <include name="LICENSE"   />
                <include name="README"    />
                <include name="TODO"      />
            </fileset>
        </copy>

        <!-- destfile="${build.dist.dir}/yd-links-0.1.0.tar.gz"                                 prefix="yd-links-0.1.0" -->
        <tar destfile="${build.dist.dir}/${name}-${version}.tar.gz" basedir="${build.dest.dir}" prefix="${name}-${version}" compression="gzip" />
    </target>


    <target name="deploy:local"
            description="Deploy on local computer">
        <mkdir dir="${deploy.local.dir}" />

        <copy todir="${deploy.local.dir}">
            <fileset dir=".">
                <include name="*.php" />
            </fileset>
        </copy>
    </target>


    <target name="build" depends="build:tarball"
            description="Build complete project">
    </target>
</project>