Changeset f653b03 for build.xml


Ignore:
Timestamp:
May 26, 2016 6:29:24 PM (4 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
8807787
Parents:
498280b
Message:

Ubuntu: Launchpad precise build fixes

  • Mods to the trusty debian files for precise
  • New precise-tarball build target
File:
1 edited

Legend:

Unmodified
Added
Removed
  • build.xml

    r498280b rf653b03  
    20952095    </target>
    20962096
     2097    <!-- same as debian-tarball but with bundled jetty -->
     2098    <target name="precise-tarball" depends="getExtendedVersion">
     2099        <!-- this will use the monotonerc file in the current workspace -->
     2100        <fail message="This target cannot be used without Monotone! Use &quot;fakeroot debian/rules get-orig-source&quot; instead.">
     2101            <condition>
     2102                <not>
     2103                    <isset property="mtn.available" />
     2104                </not>
     2105            </condition>
     2106        </fail>
     2107        <property name="debian.tarball.name" value="i2p_${Extended.Version}.orig.tar.bz2" />
     2108        <echo message="Checking out fresh copy into ../i2p-${Extended.Version} for tarballing:" />
     2109        <delete dir="../i2p-${Extended.Version}" />
     2110        <exec executable="mtn" failonerror="true">
     2111            <arg value="co" />
     2112            <!-- w: is the revision of the current workspace -->
     2113            <arg value="-r" />
     2114            <arg value="w:" />
     2115            <arg value="../i2p-${Extended.Version}" />
     2116        </exec>
     2117        <delete includeemptydirs="true" quiet="false">
     2118            <fileset dir="../i2p-${Extended.Version}/debian-alt/" />
     2119            <fileset dir="../i2p-${Extended.Version}/installer/lib/" />
     2120            <fileset dir="../i2p-${Extended.Version}/Slackware" />
     2121            <fileset dir="../i2p-${Extended.Version}/_MTN" />
     2122            <!-- gettext-base -->
     2123            <fileset dir="../i2p-${Extended.Version}/core/java/src/gnu/gettext" />
     2124            <!-- libgetopt-java -->
     2125            <fileset dir="../i2p-${Extended.Version}/core/java/src/gnu/getopt" />
     2126            <!-- libhttpclient-java and libhttpcore-java -->
     2127          <!--
     2128            <fileset dir="../i2p-${Extended.Version}/core/java/src/org/apache/http" />
     2129           -->
     2130            <!-- systray4j -->
     2131            <fileset dir="../i2p-${Extended.Version}/apps/systray/java/lib" />
     2132            <file name="../i2p-${Extended.Version}/apps/systray/java/src/net/i2p/apps/systray/SysTrayImpl.java" />
     2133            <!-- geoip-database -->
     2134            <file name="../i2p-${Extended.Version}/installer/resources/geoip.txt" />
     2135            <file name="../i2p-${Extended.Version}/installer/resources/geoipv6.dat.gz" />
     2136            <!-- libjetty8-java -->
     2137          <!--
     2138            <fileset dir="../i2p-${Extended.Version}/apps/jetty/jetty-distribution-8.1.17.v20150415" />
     2139           -->
     2140            <!-- libjstl1.1-java or glassfish-javaee -->
     2141            <file name="../i2p-${Extended.Version}/apps/susidns/src/lib/jstl.jar" />
     2142            <!-- libjakarta-taglibs-standard-java or glassfish-javaee -->
     2143            <file name="../i2p-${Extended.Version}/apps/susidns/src/lib/standard.jar" />
     2144            <!-- libtomcat6-java or libtomcat7-java -->
     2145          <!--
     2146            <fileset dir="../i2p-${Extended.Version}/apps/jetty/apache-tomcat" />
     2147            <fileset dir="../i2p-${Extended.Version}/apps/jetty/apache-tomcat-deployer/" />
     2148           -->
     2149            <!-- anything added above, add in debian-release-tarball also -->
     2150        </delete>
     2151        <tar longfile="gnu" destfile="../${debian.tarball.name}" compression="bzip2">
     2152            <tarfileset dir="../i2p-${Extended.Version}" prefix="/i2p-${Extended.Version}">
     2153                <include name="**/**" />
     2154                <exclude name="debian/**"/>
     2155                <exclude name="debian-alt/**"/>
     2156                <exclude name="**/*.sh"/>
     2157                <exclude name="installer/resources/geoip.txt"/>
     2158                <exclude name="installer/resources/geoipv6.dat.gz"/>
     2159          <!--
     2160                <exclude name="apps/jetty/jetty-distribution-*/**"/>
     2161           -->
     2162                <exclude name="apps/susidns/src/lib/jstl.jar" />
     2163                <exclude name="apps/susidns/src/lib/standard.jar" />
     2164          <!--
     2165                <exclude name="apps/jetty/apache-tomcat/**"/>
     2166                <exclude name="apps/jetty/apache-tomcat-deployer/**"/>
     2167           -->
     2168                <!-- anything added above, add in debian-release-tarball also -->
     2169            </tarfileset>
     2170            <tarfileset dir="../i2p-${Extended.Version}" prefix="/i2p-${Extended.Version}" filemode="755">
     2171                <exclude name="debian/**" />
     2172                <include name="**/*.sh" />
     2173            </tarfileset>
     2174        </tar>
     2175    </target>
     2176
    20972177    <!-- same as debian-tarball but with a release tar.bz2 file name and tar prefix -->
    20982178    <target name="debian-release-tarball" depends="getExtendedVersion">
Note: See TracChangeset for help on using the changeset viewer.