summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-07-21 11:32:11 +0000
committerLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-07-21 11:32:11 +0000
commit9499b0a78ecf88c3cc573a4ef8fbb079e1d9b79d (patch)
tree98bd6e5b63a7c1a775345b9c423c1d8a718024f2
parentec813227662caaa5434a528768f7c1467172be89 (diff)
downloadmidipix_build-9499b0a78ecf88c3cc573a4ef8fbb079e1d9b79d.tar.bz2
midipix_build-9499b0a78ecf88c3cc573a4ef8fbb079e1d9b79d.tar.xz
Additionally build toolchain tarball.
-rw-r--r--999.tarballs.build11
-rw-r--r--build.vars2
2 files changed, 13 insertions, 0 deletions
diff --git a/999.tarballs.build b/999.tarballs.build
index a15a6349..531ef52b 100644
--- a/999.tarballs.build
+++ b/999.tarballs.build
@@ -25,6 +25,7 @@ fi;
PREFIX_BASENAME=${PREFIX_NATIVE##*/};
TARBALL_FNAME=${TARBALL_FNAME_PREFIX}${BUILD_USER}@${BUILD_HNAME}-${BUILD_DATE_START}.tar.${TARBALL_SUFFIX};
+TARBALL_CROSS_FNAME=${TARBALL_CROSS_FNAME_PREFIX}${BUILD_USER}@${BUILD_HNAME}-${BUILD_DATE_START}.tar.${TARBALL_SUFFIX};
TARBALL_MINIPIX_FNAME=${TARBALL_MINIPIX_FNAME_PREFIX}${BUILD_USER}@${BUILD_HNAME}-${BUILD_DATE_START}.tar.${TARBALL_SUFFIX};
TARBALL_SRC_FNAME=${TARBALL_SRC_FNAME_PREFIX}${BUILD_USER}@${BUILD_HNAME}-${BUILD_DATE_START}.tar.${TARBALL_SUFFIX};
@@ -55,6 +56,16 @@ fi;
secure_rm ${PREFIX_BASENAME}/lib; mv -- ${PREFIX_BASENAME}/lib.bak ${PREFIX_BASENAME}/lib;
log_msg info "Restored ${PREFIX_BASENAME}/lib.";
+tar -cpf - bin include lib lib64 libexec share ${PKG_TARGET} |\
+${TARBALL_COMPRESS_CMD} ${TARBALL_COMPRESS_ARGS} -c > ${TARBALL_CROSS_FNAME};
+log_msg info "Finished building toolchain tarball.";
+if [ -x "$(which gpg 2>/dev/null)" -a -n "${TARBALL_CROSS_SIGN_GPG_KEY}" ] &&\
+ gpg --list-keys "${TARBALL_CROSS_SIGN_GPG_KEY}" >/dev/null 2>&1; then
+ gpg --armor --passphrase-file /dev/null \
+ --local-user "${TARBALL_CROSS_SIGN_GPG_KEY}" --sign ${TARBALL_CROSS_FNAME};
+ log_msg info "Signed toolchain tarball.";
+fi;
+
tar -cpf - minipix \
"Create \`Midipix mintty shell' shortcut.vbs" midipix.sh README |\
${TARBALL_COMPRESS_CMD} ${TARBALL_COMPRESS_ARGS} -c > ${TARBALL_MINIPIX_FNAME};
diff --git a/build.vars b/build.vars
index a1488d79..736c618d 100644
--- a/build.vars
+++ b/build.vars
@@ -55,6 +55,8 @@ export PATH="${PREFIX}/bin${PATH:+:${PATH}}";
: ${LOG_MSG_WARN_COLOUR:=96};
: ${TARBALL_FNAME_PREFIX:=midipix-${ARCH}-${BUILD}.};
: ${TARBALL_SIGN_GPG_KEY:=};
+: ${TARBALL_CROSS_FNAME_PREFIX:=midipix-${ARCH}-${BUILD}_cross.};
+: ${TARBALL_CROSS_SIGN_GPG_KEY:=};
: ${TARBALL_MINIPIX_FNAME_PREFIX:=minipix-${ARCH}-${BUILD}.};
: ${TARBALL_MINIPIX_SIGN_GPG_KEY:=};
: ${TARBALL_SRC_FNAME_PREFIX:=midipix-${ARCH}-${BUILD}_src.};