70df12
Followup to last commit.
@@ -122,9 +122,9 @@ if [ $(( ${BUILD_NFINI} + ${BUILD_NSKIP} )) -ge 0 ] \
|
|
122
122
|
-mindepth 1 -maxdepth 2 -type d -not -path ./native) \
|
123
123
|
"Create \`Midipix mintty shell' shortcut.vbs" midipix.sh;
|
124
124
|
log_msg info "Finished building distribution tarball.";
|
125
|
-
if [ -x
|
125
|
+
if [ -x "$(which gpg 2>/dev/null)" -a -n "${TARBALL_SRC_SIGN_GPG_KEY}" ] &&\
|
126
126
|
gpg --list-keys "${TARBALL_SRC_SIGN_GPG_KEY}" >/dev/null 2>&1; then
|
127
|
-
gpg --
|
127
|
+
gpg --passphrase-file /dev/null \
|
128
128
|
--local-user "${TARBALL_SRC_SIGN_GPG_KEY}" --sign \
|
129
129
|
${TARBALL_FNAME_PREFIX}${BUILD_USER}@${BUILD_HNAME}-${BUILD_DATE_START}.tar.xz;
|
130
130
|
fi;
|
@@ -135,9 +135,9 @@ if [ $(( ${BUILD_NFINI} + ${BUILD_NSKIP} )) -ge 0 ] \
|
|
135
135
|
$(find tmp -mindepth 1 -maxdepth 1 -type d \
|
136
136
|
\( -name \*-native-\* -or -name \*-cross-\* \));
|
137
137
|
log_msg info "Finished building source tarball.";
|
138
|
-
if [ -x
|
138
|
+
if [ -x "$(which gpg 2>/dev/null)" -a -n "${TARBALL_SIGN_GPG_KEY}" ] &&\
|
139
139
|
gpg --list-keys "${TARBALL_SIGN_GPG_KEY}" >/dev/null 2>&1; then
|
140
|
-
gpg --
|
140
|
+
gpg --passphrase-file /dev/null \
|
141
141
|
--local-user "${TARBALL_SIGN_GPG_KEY}" --sign \
|
142
142
|
${TARBALL_SRC_FNAME_PREFIX}${BUILD_USER}@${BUILD_HNAME}-${BUILD_DATE_START}.tar.xz;
|
143
143
|
fi;
|