Commit f0d04c2f authored by Ian Craggs's avatar Ian Craggs

Create a better build package

parent e4b8443f
<!--*******************************************************************************
Copyright (c) 2012, 2013 IBM Corp.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
and Eclipse Distribution License v1.0 which accompany this distribution.
The Eclipse Public License is available at
http://www.eclipse.org/legal/epl-v10.html
and the Eclipse Distribution License is available at
http://www.eclipse.org/org/documents/edl-v10.php.
Contributors:
Ian Craggs - initial API and implementation and/or initial documentation
*******************************************************************************-->
<project name="MQTT C Client" default="full">
<taskdef resource="net/sf/antcontrib/antlib.xml">
......@@ -8,7 +24,7 @@
</taskdef>
<property name="output.folder" value="build/output" />
<property name="release.version" value="1.0.0.2" />
<property name="release.version" value="0.4.0" />
<property name="libname" value="mqttv3c" />
<property name="libname.ssl" value="mqttv3cs" />
......@@ -287,9 +303,25 @@
<exec executable="make" dir="."/>
</then>
</if>
<zip destfile="${output.folder}/paho-client-mqtt-c.zip">
<zipfileset dir="${output.folder}" includes="libpaho*,include/*,MQTTVersion,samples/*"/>
</zip>
<mkdir dir="${output.folder}/include"/>
<copy overwrite="true" todir="${output.folder}/include">
<fileset dir="src" includes="MQTTClient.h,MQTTAsync.h,MQTTClientPersistence.h"/>
</copy>
<copy overwrite="true" todir="${output.folder}">
<fileset dir="." includes="README.md,CONTRIBUTING.md,about.html,notice.html,edl-v10,epl-v10"/>
</copy>
<delete>
<fileset dir="." includes="paho-mqtt-c-unix-${release.version}.tar.gz"/>
</delete>
<exec executable="tar" failonerror="true" dir="${output.folder}">
<arg value="acf"/>
<arg value="../../paho-mqtt-c-unix-${release.version}.tar.gz"/>
<arg value="."/>
<arg value="--exclude=test"/>
</exec>
</then>
</if>
</target>
......@@ -301,8 +333,8 @@
<mkdir dir="/shared/technology/paho/C/${build.level}"/>
<echo message="Copying the build output to /shared" />
<copy overwrite="true" todir="/shared/technology/paho/C/${build.level}">
<fileset dir="${output.folder}">
<include name="*.zip"/>
<fileset dir=".">
<include name="*.gz"/>
</fileset>
</copy>
</then>
......
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