Changeset 7efab75 for build.xml


Ignore:
Timestamp:
Jan 21, 2010 7:44:49 PM (10 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
15d1b00
Parents:
a9e4248
Message:

0.7.10

File:
1 edited

Legend:

Unmodified
Added
Removed
  • build.xml

    ra9e4248 r7efab75  
    650650        <echo message="================================================================" />
    651651        <echo message="Did you update these files?" />
    652         <exec executable="ls">
     652        <exec executable="ls" failonerror="true">
    653653            <arg value="-l" />
    654654            <arg value="history.txt" />
     
    660660        </exec>
    661661        <echo message="Everything is checked in, right? Let's be sure:" />
    662         <exec executable="mtn">
     662        <exec executable="mtn" failonerror="true">
    663663            <arg value="st" />
    664664        </exec>
    665         <input message="Enter new version number:" addproperty="release.number" />
    666         <fail message="You must enter a version number." >
    667             <condition>
    668                 <equals arg1="${release.number}" arg2=""/>
    669             </condition>
    670         </fail>
     665        <echo message="If there are any modified files above, stop now!" />
     666        <!-- get release version number -->
     667        <exec executable="grep" outputproperty="versionLine" failonerror="true" >
     668            <arg value="public final static String VERSION" />
     669            <arg value="core/java/src/net/i2p/CoreVersion.java" />
     670        </exec>
     671        <exec executable="cut" inputstring="${versionLine}" outputproperty="release.number" failonerror="true" >
     672            <arg value="-f2" />
     673            <arg value="-d&quot;" />
     674        </exec>
    671675        <echo message="New version number is ${release.number}" />
    672676        <copy file="i2pupdate.zip" tofile="i2pupdate_${release.number}.zip" />
     
    713717        <echo message="Checking out fresh copy into ../i2p-${release-number} for tarballing:" />
    714718        <delete dir="../i2p-${release.number}" />
    715         <exec executable="mtn">
     719        <exec executable="mtn" failonerror="true">
    716720            <arg value="co" />
    717721            <arg value="-b" />
    718722            <arg value="i2p.i2p" />
     723            <!-- w: is the revision of the current workspace -->
     724            <arg value="-r" />
     725            <arg value="w:" />
    719726            <arg value="../i2p-${release.number}/" />
    720727        </exec>
    721         <exec executable="tar">
     728        <exec executable="tar" failonerror="true">
    722729            <arg value="cjf" />
    723730            <arg value="i2psource_${release.number}.tar.bz2" />
     
    732739        <delete file="i2psource_${release.number}.tar.bz2.sig" />
    733740        <delete file="i2pupdate_${release.number}.zip.sig" />
    734         <exec executable="gpg">
     741        <exec executable="gpg" failonerror="true">
    735742            <arg value="-b" />
    736743            <arg value="i2pinstall_${release.number}.exe" />
    737744        </exec>
    738         <exec executable="gpg">
     745        <exec executable="gpg" failonerror="true">
    739746            <arg value="-b" />
    740747            <arg value="i2psource_${release.number}.tar.bz2" />
    741748        </exec>
    742         <exec executable="gpg">
     749        <exec executable="gpg" failonerror="true">
    743750            <arg value="-b" />
    744751            <arg value="i2pupdate_${release.number}.zip" />
    745752        </exec>
    746753        <echo message="File sizes:" />
    747         <exec executable="ls">
     754        <exec executable="ls" failonerror="true">
    748755            <arg value="-l" />
    749756            <arg value="i2pinstall_${release.number}.exe" />
     
    756763        </exec>
    757764        <echo message="SHA256 sums:" />
    758         <exec executable="sha256sum">
     765        <exec executable="sha256sum" failonerror="true">
    759766            <arg value="i2pinstall_${release.number}.exe" />
    760767            <arg value="i2psource_${release.number}.tar.bz2" />
     
    762769            <arg value="i2pupdate.sud" />
    763770        </exec>
    764         <echo message="Don't forget to mtn tag h: i2p-${release-number}" />
     771        <echo message="Don't forget to mtn tag h: i2p-${release.number}" />
     772        <echo message="... and mtn cert t:i2p-${release.number} branch i2p.i2p.release" />
    765773    </target>
    766774</project>
Note: See TracChangeset for help on using the changeset viewer.