diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-03-18 19:18:56 +0000 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-03-18 19:18:56 +0000 |
commit | b0384ac71168adb8786945e22339b66ce7d748d9 (patch) | |
tree | c6e9bce4403a052d5060249104461b5062cca572 | |
parent | 5a3901a1577bd99715893ce41b0d778af341df07 (diff) | |
download | midipix_build-b0384ac71168adb8786945e22339b66ce7d748d9.tar.bz2 midipix_build-b0384ac71168adb8786945e22339b66ce7d748d9.tar.xz |
Create sha256sum(1) sums when creating tarballs.
-rwxr-xr-x | build.sh | 5 | ||||
-rw-r--r-- | build.vars | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -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; @@ -14,7 +14,7 @@ : ${BUILD_STATUS_FINISHED_AT_CURRENT_FNAME:=${PREFIX}/BUILD_FINISHED_AT}; : ${BUILD_STATUS_IN_PROGRESS_FNAME:=${PREFIX}/BUILD_IN_PROGRESS}; : ${CFLAGS_DEFAULT:=-g3 -O0}; -: ${CHECK_PREREQ_CMDS:="aclocal autopoint bunzip2 flex git gunzip install libtool make mktemp openssl patch pkg-config sed sort tar tee tr wget xz"}; +: ${CHECK_PREREQ_CMDS:="aclocal autopoint bunzip2 flex git gunzip install libtool make mktemp openssl patch pkg-config sed sort tar tee tr sha256sum wget xz"}; : ${CHECK_PATH_VARS:="PREFIX PREFIX_NATIVE WORKDIR"}; : ${CLEAR_ENV_VARS_EXCEPT:="HOME PATH SHELL TERM USER"}; : ${GITROOT:=git://midipix.org}; |