summaryrefslogtreecommitdiffhomepage
path: root/build.sh
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-03-18 19:18:56 +0000
committerLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-03-18 19:18:56 +0000
commitb0384ac71168adb8786945e22339b66ce7d748d9 (patch)
treec6e9bce4403a052d5060249104461b5062cca572 /build.sh
parent5a3901a1577bd99715893ce41b0d778af341df07 (diff)
downloadmidipix_build-b0384ac71168adb8786945e22339b66ce7d748d9.tar.bz2
midipix_build-b0384ac71168adb8786945e22339b66ce7d748d9.tar.xz
Create sha256sum(1) sums when creating tarballs.
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/build.sh b/build.sh
index 14cb7b68..7f7a7f04 100755
--- a/build.sh
+++ b/build.sh
@@ -109,10 +109,13 @@ if [ $(( ${BUILD_NFINI} + ${BUILD_NSKIP} )) -ge 0 ] \
-exec sh -c '[ -f "${DEST:=native/lib/$(readlink -- "${0}")}" ] && \
rm -f -- "${0}" && ln -f -- "${DEST}" "${0}"' {} \;;
log_msg info "Converted symbolic links in ${PREFIX_BASENAME}/lib to hard links.";
+
tar -cJpf ${TARBALL_FNAME_PREFIX}${BUILD_USER}@${BUILD_HNAME}-${BUILD_DATE_START}.tar.xz\
$(find_with_no_paths "${TARBALL_EXCLUDE_PATHS} native/lib.bak" . \
-mindepth 1 -maxdepth 2 -type d -not -path ./native) midipix.sh;
log_msg info "Finished building distribution tarball.";
+ sha256sum ${TARBALL_FNAME_PREFIX}${BUILD_USER}@${BUILD_HNAME}-${BUILD_DATE_START}.tar.xz\
+ > ${TARBALL_FNAME_PREFIX}${BUILD_USER}@${BUILD_HNAME}-${BUILD_DATE_START}.sha256sum;
rm -rf ${PREFIX_BASENAME}/lib; mv ${PREFIX_BASENAME}/lib.bak ${PREFIX_BASENAME}/lib;
log_msg info "Restored ${PREFIX_BASENAME}/lib.";
log_msg info "Building source tarball...";
@@ -120,6 +123,8 @@ if [ $(( ${BUILD_NFINI} + ${BUILD_NSKIP} )) -ge 0 ] \
$(find tmp -mindepth 1 -maxdepth 1 -type d \
\( -name \*-native-\* -or -name \*-cross-\* \));
log_msg info "Finished building source tarball.";
+ sha256sum ${TARBALL_SRC_FNAME_PREFIX}${BUILD_USER}@${BUILD_HNAME}-${BUILD_DATE_START}.tar.xz\
+ > ${TARBALL_SRC_FNAME_PREFIX}${BUILD_USER}@${BUILD_HNAME}-${BUILD_DATE_START}.sha256sum;
cd ${OLDPWD};
update_build_status tarball_finish;
fi;