Changeset b6fab82 for build.xml


Ignore:
Timestamp:
May 25, 2011 11:09:58 PM (9 years ago)
Author:
kytv <kytv@…>
Branches:
master
Children:
e786da2
Parents:
150cb303
Message:

Debian packaging fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • build.xml

    r150cb303 rb6fab82  
    4646   </target>
    4747    <target name="debianhowto">
    48         <echo message="To build debian packages, you must run dpkg-buildpackage as root in the source directory. It will then run ant for you. dpkg-buildpackage is found in the 'dpkg-dev' package. Also it should work fine to use the 'fakeroot' package with dpkg-buildpackage, if you don't want to run as root. Please read 'man dpkg-buildpackage' before building any packages yourself." />
     48            <echo message="To build debian packages, you must make sure that you have" />
     49            <echo message="the necessary build-dependencies installed." />
     50            <echo message="The packages required to build can be found in the file "/>
     51            <echo message="&quot;debian/control&quot; in both the Build-Depends and Build-Depends-Indep fields."/>
     52            <echo message="In addition to those packages, be sure to install &quot;fakeroot&quot;,"/>
     53            <echo message="&quot;quilt&quot; and &quot;build-essential&quot;!" />
     54            <echo message="" />
     55            <echo message="The following command will install all dependencies for you:" />
     56            <echo message="apt-get install junit debhelper ant debconf default-jdk libgmp3-dev po-debconf fakeroot build-essential quilt" />
     57            <echo message=" " />
     58            <echo message="Once the dependencies are installed, run &quot;ant debian&quot;"/>
     59            <echo message="to patch the source and build the packages." />
    4960    </target>
    5061    <target name="dist" depends="pkg, javadoc">
     
    10311042    </target>
    10321043
    1033     <target name="debian" depends="distclean, debian-source, debian-binary" />
    1034 
    1035     <target name="debian-binary" depends="buildProperties" >
    1036         <echo message="Did you update the version in these files?" />
    1037         <exec executable="ls" failonerror="true">
    1038             <arg value="-l" />
    1039             <arg value="debian/changelog" />
    1040         </exec>
     1044    <target name="debian" depends="debian-clean, debian-binary" />
     1045
     1046    <target name="debian-binary" >
     1047        <echo message="Did you update the version using dch -i?" />
     1048        <echo message=" " />
     1049        <echo message="If the changelog was not updated with dch -i, press" />
     1050        <echo message="press CTRL+C to abort building this Debian package." />
     1051        <echo message="" />
     1052        <echo message="Pausing build for ten seconds to give enough time to read this notice." />
     1053        <exec executable="sleep" failonerror="true">
     1054                <arg value="10" />
     1055        </exec>
    10411056        <echo message="====================" />
    1042         <!-- bundle the 20MB jetty 5 lib since there probably isn't a deb for it -->
     1057        <!-- bundle the jetty 5 lib since there isn't a deb for it -->
    10431058        <ant dir="apps/jetty" target="ensureJettylib" />
    10441059       
    1045         <exec dir="debian" executable="./buildpackage.sh" failonerror="true">
    1046             <arg value="i386" />
    1047         </exec>
    1048         <exec dir="debian" executable="./buildpackage.sh" failonerror="true">
    1049             <arg value="amd64" />
    1050         </exec>
    1051     </target>
    1052     <target name="debian-source" depends="buildProperties" >
    1053         <!-- bundle the 20MB jetty 5 lib since there probably isn't a deb for it -->
    1054         <ant dir="apps/jetty" target="ensureJettylib" />
    1055         <echo message="Did you update the version in these files?" />
    1056         <exec executable="ls" failonerror="true">
    1057             <arg value="-l" />
    1058             <arg value="debian/changelog" />
     1060        <exec executable="fakeroot" failonerror="true">
     1061            <arg value="debian/rules" />
     1062            <arg value="patch" />
     1063            <arg value="binary" />
     1064            <arg value="clean" />
     1065        </exec>
     1066        <delete dir=".pc" />
     1067    </target>
     1068    <target name="debian-clean" depends="buildProperties" >
     1069        <exec executable="fakeroot" failonerror="true">
     1070            <arg value="debian/rules" />
     1071            <arg value="clean" />
     1072        </exec>
     1073        <delete dir="./.pc" />
     1074    </target>
     1075    <target name="debian-patch" depends="buildProperties" >
     1076        <exec executable="quilt" failonerror="true">
     1077            <arg value="-a" />
     1078            <arg value="push" />
    10591079        </exec>
    10601080        <echo message="====================" />
    1061         <exec dir="debian" executable="./buildpackage.sh" failonerror="true">
    1062             <arg value="source" />
    1063         </exec>
    1064     </target>
     1081    </target>
     1082    <target name="debian-unpatch" depends="buildProperties">
     1083        <exec executable="quilt" failonerror="false">
     1084            <arg value="-a" />
     1085            <arg value="pop" />
     1086        </exec>
     1087    </target>
     1088
    10651089    <target name="debianrepo" depends="debian">
    10661090        <exec dir="debian" executable="./makerepo.sh" failonerror="true"/>
Note: See TracChangeset for help on using the changeset viewer.