Enable overriding of the gpg binary

This commit is contained in:
str4d
2017-11-24 11:39:05 +00:00
parent 6cd5f1d83b
commit 7f6ba8cd15

View File

@@ -81,12 +81,14 @@
<echo message="to patch the source and build the packages." />
</target>
<property name="gpg" value="gpg" />
<macrodef name="gpgsign">
<attribute name="file" />
<sequential>
<delete file="@{file}.sig" quiet="true" />
<exec executable="gpg" failonerror="true">
<arg value="--default-key" />
<exec executable="${gpg}" failonerror="true">
<arg value="-u" />
<arg value="${release.gpg.keyid}" />
<arg value="-b" />
<arg value="@{file}" />
@@ -103,8 +105,8 @@
<attribute name="file" />
<sequential>
<delete file="@{file}.asc" quiet="true" />
<exec executable="gpg" failonerror="true">
<arg value="--default-key" />
<exec executable="${gpg}" failonerror="true">
<arg value="-u" />
<arg value="${release.gpg.keyid}" />
<arg value="-ab" />
<arg value="@{file}" />