Changeset 84e4558 for build.xml


Ignore:
Timestamp:
Jan 1, 2012 11:31:41 PM (9 years ago)
Author:
kytv <kytv@…>
Branches:
master
Children:
dd9cae5
Parents:
b5f97d0
Message:

Updated packaging scripts to work with Debian's (and Ubuntu's) Jetty packages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • build.xml

    rb5f97d0 r84e4558  
    5151        <echo message="  slackpkg:  generate Slackware packages in ./Slackware/i2p and ./Slackware/i2p-base" />
    5252        <echo message="  debianhowto: instructions on building Debian packages" />
    53         <echo message="  debian: generate Debian packages in ../" />
    54         <echo message="          run &quot;ant debianhowto&quot; for instructions" />
    55         <echo message="  debian-clean: rollback debian specific patches and run the &quot;distclean&quot; target (done automatically at the end of the &quot;debian&quot; target)" />
    56         <!-- <echo message="  debianrepo: build a Debian repository (reprepro required)" /> -->
     53        <echo message="  debian: generate Debian packages in ../" />
     54        <echo message="          run &quot;ant debianhowto&quot; for instructions" />
     55        <echo message="  debian-clean: rollback debian specific patches and run the &quot;distclean&quot; target (done automatically at the end of the &quot;debian&quot; target)" />
     56        <!-- <echo message="  debianrepo: build a Debian repository (reprepro required)" /> -->
    5757        <echo message="  poupdate: update the .po files for translators" />
    5858        <echo message="  pkg-portable-win32:  build a minimum portable version for win32" />
    5959   </target>
    6060    <target name="debianhowto">
    61             <echo message="To build debian packages, you must make sure that you have" />
    62             <echo message="the necessary build-dependencies installed." />
    63             <echo message="The packages required to build can be found in the file "/>
    64             <echo message="&quot;debian/control&quot; in both the Build-Depends and Build-Depends-Indep fields."/>
    65             <echo message="In addition to those packages, be sure to install &quot;fakeroot&quot;,"/>
    66             <echo message="&quot;quilt&quot; and &quot;build-essential&quot;!" />
    67             <echo message="" />
    68             <echo message="The following command will install all dependencies for you:" />
    69             <echo message="apt-get install debhelper ant debconf default-jdk gettext libgmp3-dev po-debconf fakeroot build-essential quilt" />
    70             <echo message=" " />
    71             <echo message="Once the dependencies are installed, run &quot;ant debian&quot;"/>
    72             <echo message="to patch the source and build the packages." />
     61            <echo message="To build debian packages, you must make sure that you have" />
     62            <echo message="the necessary build-dependencies installed." />
     63            <echo message="The packages required to build can be found in the file "/>
     64            <echo message="&quot;debian/control&quot; in the &quot;Build-Depends&quot; field."/>
     65            <echo message="In addition to those packages, be sure to install &quot;fakeroot&quot;,"/>
     66            <echo message="&quot;quilt&quot; and &quot;build-essential&quot;!" />
     67            <echo message="" />
     68            <echo message="The following command will install all of the dependencies for you:" />
     69            <echo message=" " />
     70            <echo message="apt-get install debhelper ant debconf default-jdk gettext libgmp3-dev po-debconf fakeroot build-essential \" />
     71            <echo message="                   quilt libcommons-el-java libcommons-logging-java libjetty-extra-java libjetty-java" />
     72            <echo message=" " />
     73            <echo message="Once the dependencies are installed, run &quot;ant debian&quot;"/>
     74            <echo message="to patch the source and build the packages." />
    7375    </target>
    7476    <target name="dist" depends="pkg, javadoc">
     
    13801382    <target name="debian-binary" >
    13811383        <echo message="Did you update the version using dch -i?" />
    1382         <echo message=" " />
    1383         <echo message="If the changelog was not updated with dch -i, press" />
    1384         <echo message="press CTRL+C to abort building this Debian package." />
    1385         <echo message="" />
    1386         <echo message="Pausing build for ten seconds to give enough time to read this notice." />
    1387         <exec executable="sleep" failonerror="true">
    1388                 <arg value="10" />
    1389         </exec>
     1384        <echo message=" " />
     1385        <echo message="If the changelog was not updated with dch -i, press" />
     1386        <echo message="press CTRL+C to abort building this Debian package." />
     1387        <echo message="" />
     1388        <echo message="Pausing build for ten seconds to give enough time to read this notice." />
     1389        <exec executable="sleep" failonerror="true">
     1390                <arg value="10" />
     1391        </exec>
    13901392        <echo message="====================" />
    1391         <!-- bundle the jetty 5 lib since there isn't a deb for it -->
    1392         <ant dir="apps/jetty" target="ensureJettylib" />
    1393        
    1394         <exec executable="fakeroot" failonerror="true">
    1395             <arg value="debian/rules" />
    1396             <arg value="patch" />
    1397             <arg value="binary" />
    1398             <arg value="clean" />
    1399         </exec>
    1400         <delete dir=".pc" />
    1401     </target>
     1393
     1394        <exec executable="fakeroot" failonerror="true">
     1395            <arg value="debian/rules" />
     1396            <arg value="patch" />
     1397            <arg value="binary" />
     1398            <arg value="clean" />
     1399        </exec>
     1400        <delete dir=".pc" />
     1401    </target>
     1402
    14021403    <target name="debian-clean" depends="buildProperties" >
    14031404        <exec executable="fakeroot" failonerror="true">
    1404             <arg value="debian/rules" />
    1405             <arg value="clean" />
    1406         </exec>
    1407         <delete dir="./.pc" />
    1408     </target>
     1405            <arg value="debian/rules" />
     1406            <arg value="clean" />
     1407        </exec>
     1408        <delete dir="./.pc" />
     1409    </target>
     1410
    14091411    <target name="debian-patch" depends="buildProperties" >
    14101412        <exec executable="quilt" failonerror="true">
     
    14161418    <target name="debian-unpatch" depends="buildProperties">
    14171419        <exec executable="quilt" failonerror="false">
    1418             <arg value="-a" />
    1419             <arg value="pop" />
     1420            <arg value="-a" />
     1421            <arg value="pop" />
    14201422        </exec>
    14211423    </target>
Note: See TracChangeset for help on using the changeset viewer.