Verified Commit e3616698 authored by R's avatar R
Browse files

Add build.xml

parent 4ab07459
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="pmplus" default="build">
<scriptdef language="javascript" name="lower">
<attribute name="string" />
<attribute name="to" />
project.setProperty( attributes.get( "to" ),
attributes.get( "string" ).toLowerCase() );
</scriptdef>
<property name="bin.directory" value="bin" />
<property name="build.directory" value="${bin.directory}/build" />
<property name="source.directory" value="src" />
<xmlproperty file="${source.directory}/install.rdf" keeproot="false"/>
<lower string="${Description(em:name)}" to="lower"/>
<property name="outputfile" value="${lower}-${Description(em:version)}.xpi"/>
<target name="build" depends="clean">
<echo message="Building ${outputfile}"/>
<mkdir dir="${build.directory}"/>
<copy todir="${build.directory}">
<fileset dir="${source.directory}">
<exclude name="Makefile"/>
</fileset>
<fileset file="LICENSE" />
</copy>
<zip destfile="${bin.directory}/${outputfile}" update="true">
<fileset dir="${build.directory}">
</fileset>
</zip>
<delete dir="${build.directory}" failonerror="true"/>
</target>
<target name="clean">
<echo message="Removing old ${outputfile}"/>
<delete>
<fileset dir="${bin.directory}">
<include name="${outputfile}"/>
</fileset>
</delete>
</target>
</project>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment