Can now build Debian package with the ant "deb" task.

cusax-fix
Martin Andre 19 years ago
parent d86bf7cc89
commit 81088bdaa0

@ -23,7 +23,8 @@
<property name="release" value="release"/>
<property name="log" value="log"/>
<property name="release.src" value="${release}/install"/>
<property name="inst.resrc" value="resources/install"/>
<property name="resources" value="resources"/>
<property name="inst.resrc" value="${resources}/install"/>
<!-- Put here the release directory -->
<property name="macosx.app.dir" value="${release}/macosx"/>
@ -34,6 +35,13 @@
<!-- Put here the Application version -->
<property name="macosx.app.ver" value="1.0.rc1"/>
<!-- The release directory for Debian packages -->
<property name="debian.dir" value="${release}/debian"/>
<!-- Can we build debian packages? -->
<condition property="dpkg.present">
<available file="/usr/bin/dpkg-buildpackage"/>
</condition>
<!-- load properties needed for running the automated tests (e.g. test.list)-->
<property file="${basedir}/lib/testing.properties"/>
@ -334,6 +342,28 @@
</exec>
</target>
<!-- Create a Debian package - This needs dpkg utilities -->
<target name="deb" depends="make"
if="dpkg.present"
description="Create a .deb package for Debian (needs dpkg utilities)">
<exec executable="/usr/bin/dpkg-buildpackage" dir="${inst.resrc}">
<arg value="-rfakeroot"/>
<arg value="-tc"/>
<arg value="-us"/>
<arg value="-uc"/>
<arg value="-b"/>
</exec>
<mkdir dir="${debian.dir}"/>
<move todir="${debian.dir}">
<fileset dir="${resources}">
<include name="sip-communicator*"/>
</fileset>
</move>
</target>
<!-- - - - - - - - - - - - - - UNIT TESTING - - - - - - - - - - - - - - -->
<!--PREPARE-TESTS-->

@ -1,3 +1,5 @@
generic
linux
windows
debian
macosx

@ -28,7 +28,7 @@ build-stamp: configure-stamp
dh_testdir
# Add here commands to compile the package.
-$(ANT) -file $(BASEDIR)/build.xml rebuild
#-$(ANT) -file $(BASEDIR)/build.xml rebuild
touch $@
@ -38,7 +38,7 @@ clean:
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
-$(ANT) -file $(BASEDIR)/build.xml clean
#-$(ANT) -file $(BASEDIR)/build.xml clean
dh_clean

Loading…
Cancel
Save