Changeset cfdbef0 for build.xml


Ignore:
Timestamp:
May 8, 2014 7:23:15 PM (6 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
837bf9e
Parents:
47b10e9
Message:

set GPG key ID in release target

File:
1 edited

Legend:

Unmodified
Added
Removed
  • build.xml

    r47b10e9 rcfdbef0  
    15061506        <!-- make this a lot easier by putting release.privkey=/path/to/privkey in override.properties -->
    15071507        <input message="Enter private signing key file:" addproperty="release.privkey" />
    1508         <fail message="You must enter a path." >
     1508        <fail message="You must enter an existing file path." >
    15091509            <condition>
    1510                 <equals arg1="${release.privkey}" arg2=""/>
     1510                <or>
     1511                    <equals arg1="${release.privkey}" arg2=""/>
     1512                    <not>
     1513                        <length file="${release.privkey}" when="greater" length="0" />
     1514                    </not>
     1515                </or>
    15111516            </condition>
    15121517        </fail>
     
    15801585        <!-- now build and verify the packed su3 from the packed zip -->
    15811586        <input message="Enter su3 private signing key store:" addproperty="release.privkey.su3" />
    1582         <fail message="You must enter a path." >
     1587        <fail message="You must enter an existing file path." >
    15831588            <condition>
    1584                 <equals arg1="${release.privkey.su3}" arg2=""/>
     1589                <or>
     1590                    <equals arg1="${release.privkey.su3}" arg2=""/>
     1591                    <not>
     1592                        <length file="${release.privkey.su3}" when="greater" length="0" />
     1593                    </not>
     1594                </or>
    15851595            </condition>
    15861596        </fail>
     
    16511661        </exec>
    16521662        <echo message="Sign the files:" />
     1663        <input message="Enter GPG key ID (e.g. 0x12345678) for signing:" addproperty="release.gpg.keyid" />
     1664        <fail message="You must enter a key ID." >
     1665            <condition>
     1666                <equals arg1="${release.gpg.keyid}" arg2=""/>
     1667            </condition>
     1668        </fail>
    16531669        <delete file="i2pinstall_${release.number}_windows.exe.sig" />
    16541670        <delete file="i2pinstall_${release.number}.jar.sig" />
     
    16561672        <delete file="i2pupdate_${release.number}.zip.sig" />
    16571673        <exec executable="gpg" failonerror="true">
     1674            <arg value="--default-key" />
     1675            <arg value="${release.gpg.keyid}" />
    16581676            <arg value="-b" />
    16591677            <arg value="i2pinstall_${release.number}_windows.exe" />
    16601678        </exec>
    16611679        <exec executable="gpg" failonerror="true">
     1680            <arg value="--default-key" />
     1681            <arg value="${release.gpg.keyid}" />
    16621682            <arg value="-b" />
    16631683            <arg value="i2pinstall_${release.number}.jar" />
    16641684        </exec>
    16651685        <exec executable="gpg" failonerror="true">
     1686            <arg value="--default-key" />
     1687            <arg value="${release.gpg.keyid}" />
    16661688            <arg value="-b" />
    16671689            <arg value="i2psource_${release.number}.tar.bz2" />
    16681690        </exec>
    16691691        <exec executable="gpg" failonerror="true">
     1692            <arg value="--default-key" />
     1693            <arg value="${release.gpg.keyid}" />
    16701694            <arg value="-b" />
    16711695            <arg value="i2pupdate_${release.number}.zip" />
Note: See TracChangeset for help on using the changeset viewer.