Changeset 17b1d524


Ignore:
Timestamp:
Mar 29, 2016 7:06:56 PM (5 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
b95f30b
Parents:
66be140
Message:

Debian: Delete debian-alt in debian-tarball target
Add debian-release-tarball target

File:
1 edited

Legend:

Unmodified
Added
Removed
  • build.xml

    r66be140 r17b1d524  
    19781978        </exec>
    19791979        <delete includeemptydirs="true" quiet="false">
     1980            <fileset dir="../i2p-${Extended.Version}/debian-alt/" />
    19801981            <fileset dir="../i2p-${Extended.Version}/installer/lib/" />
    19811982            <fileset dir="../i2p-${Extended.Version}/Slackware" />
     
    19901991            </tarfileset>
    19911992            <tarfileset dir="../i2p-${Extended.Version}" prefix="/i2p-${Extended.Version}" filemode="755">
     1993                <exclude name="debian/**" />
     1994                <include name="**/*.sh" />
     1995            </tarfileset>
     1996        </tar>
     1997    </target>
     1998
     1999    <!-- same as debian-tarball but with a release tar.bz2 file name and tar prefix -->
     2000    <target name="debian-release-tarball" depends="getExtendedVersion">
     2001        <!-- this will use the monotonerc file in the current workspace -->
     2002        <fail message="This target cannot be used without Monotone! Use &quot;fakeroot debian/rules get-orig-source&quot; instead.">
     2003            <condition>
     2004                <not>
     2005                    <isset property="mtn.available" />
     2006                </not>
     2007            </condition>
     2008        </fail>
     2009        <property name="debian.tarball.name" value="i2p_${release.number}.orig.tar.bz2" />
     2010        <echo message="Checking out fresh copy into ../i2p-${Extended.Version} for tarballing:" />
     2011        <delete dir="../i2p-${Extended.Version}" />
     2012        <exec executable="mtn" failonerror="true">
     2013            <arg value="co" />
     2014            <arg value="-b" />
     2015            <arg value="i2p.i2p" />
     2016            <!-- w: is the revision of the current workspace -->
     2017            <arg value="-r" />
     2018            <arg value="w:" />
     2019            <arg value="../i2p-${Extended.Version}" />
     2020        </exec>
     2021        <delete includeemptydirs="true" quiet="false">
     2022            <fileset dir="../i2p-${Extended.Version}/debian-alt/" />
     2023            <fileset dir="../i2p-${Extended.Version}/installer/lib/" />
     2024            <fileset dir="../i2p-${Extended.Version}/Slackware" />
     2025            <fileset dir="../i2p-${Extended.Version}/_MTN" />
     2026        </delete>
     2027        <tar longfile="gnu" destfile="../${debian.tarball.name}" compression="bzip2">
     2028            <tarfileset dir="../i2p-${Extended.Version}" prefix="/i2p-${release.number}">
     2029                <include name="**/**" />
     2030                <exclude name="debian/**"/>
     2031                <exclude name="debian-alt/**"/>
     2032                <exclude name="**/*.sh"/>
     2033            </tarfileset>
     2034            <tarfileset dir="../i2p-${Extended.Version}" prefix="/i2p-${release.number}" filemode="755">
    19922035                <exclude name="debian/**" />
    19932036                <include name="**/*.sh" />
Note: See TracChangeset for help on using the changeset viewer.