diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-02-07 16:34:58 +0100 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-02-07 16:34:58 +0100 |
commit | 96b3097e548d741fe34bc2b54b5f59c725c06cec (patch) | |
tree | b52ebabf5dfdd62c0c4b1e88bed4b3f3566de179 /build.sh | |
parent | 680d83f768298ed0fcabd553f5d48ee8facf203b (diff) | |
download | midipix_build-96b3097e548d741fe34bc2b54b5f59c725c06cec.tar.bz2 midipix_build-96b3097e548d741fe34bc2b54b5f59c725c06cec.tar.xz |
- Ensure global variable names are consistently capitalised and that
no values are inherited when and wherever they should not be.
- Remove pointless CFLAGS export in 007.gcc.full.build when doing a
runtime or full build.
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -8,7 +8,7 @@ check_prereqs git make openssl sed sort tar tr wget; log_msg info "Build started by ${BUILD_USER:=${USER}}@${BUILD_HNAME:=$(hostname)} at ${BUILD_DATE:=$(date %Y-%m-%d-%H-%M-%S)}."; #trap (set -o errexit; mkdir -p ${PREFIX} ${WORKDIR}); -BUILD_NFINI=${BUILD_NSKIP:=${BUILD_NFAIL:=${_nbuild:=0}}}; +BUILD_NFINI=${BUILD_NSKIP:=${BUILD_NFAIL:=${BUILD_NBUILT:=0}}}; for BUILD_LVL in 0 1 2; do for BUILD_SCRIPT_FNAME in ${BUILD_LVL}[0-9][0-9].*.build; do if [ -n "${DEBUG_SCRIPT}" ]\ @@ -17,7 +17,7 @@ for BUILD_LVL in 0 1 2; do elif [ ! -f ${BUILD_SCRIPT_FNAME} ]; then continue; else - unset BUILD_SCRIPT_RC; : $((_nbuild+=1)); + unset BUILD_SCRIPT_RC; : $((BUILD_NBUILT+=1)); log_msg info "Invoking build script \`${BUILD_SCRIPT_FNAME}'"; (set -o errexit -- $(split . ${BUILD_SCRIPT_FNAME%.build}); \ SCRIPT_FNAME=${BUILD_SCRIPT_FNAME}; _pwd=$(pwd); \ @@ -38,7 +38,7 @@ for BUILD_LVL in 0 1 2; do break; fi; done; -log_msg info "${BUILD_NFINI} finished, ${BUILD_NSKIP} skipped, and ${BUILD_NFAIL} failed builds in ${_nbuild} build script(s)."; +log_msg info "${BUILD_NFINI} finished, ${BUILD_NSKIP} skipped, and ${BUILD_NFAIL} failed builds in ${BUILD_NBUILT} build script(s)."; if [ $(( ${BUILD_NFINI} + ${BUILD_NSKIP} )) -ge 0 ]\ && [ ${BUILD_NFAIL} -eq 0 ]; then log_msg info "Building distribution tarball."; @@ -59,7 +59,7 @@ if [ $(( ${BUILD_NFINI} + ${BUILD_NSKIP} )) -ge 0 ]\ -not -path ./${PREFIX_NATIVE##*/}/lib.bak |\ tar -T - -cpf - | bzip2 -9c - > ${DISTRIB_FNAME} rm -rf ${PREFIX_NATIVE##*/}/lib; - mv ${PREFIX_NATIVE##*/}/lib.bak ${PREFIX_NATIVE##*/}/lib); + mv ${PREFIX_NATIVE##*/}/lib.bak ${PREFIX_NATIVE##*/}/lib); wait; fi; exit ${BUILD_SCRIPT_RC}; } 2>&1 | tee build.log; |