summaryrefslogtreecommitdiffhomepage
path: root/build.subr
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-02-27 17:33:19 +0000
committerLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-02-27 17:33:19 +0000
commitb947460aacf5861255b5d7f1e521b0daf30b3b11 (patch)
tree74a36d8d05352fbe9f80e68d401a6f49d93bf99d /build.subr
parent0724e525c8f3144b7fc689e5762ee04202dbd715 (diff)
downloadmidipix_build-b947460aacf5861255b5d7f1e521b0daf30b3b11.tar.bz2
midipix_build-b947460aacf5861255b5d7f1e521b0daf30b3b11.tar.xz
Adds -x (xtrace) and -X (xtrace and create debug tarball.)
Diffstat (limited to 'build.subr')
-rw-r--r--build.subr8
1 files changed, 8 insertions, 0 deletions
diff --git a/build.subr b/build.subr
index b696a285..46fc61bd 100644
--- a/build.subr
+++ b/build.subr
@@ -39,6 +39,14 @@ clean_prefix() {
find ${PREFIX}/tmp -mindepth 1 -maxdepth 1 -type f -iname .\* -exec rm -rf {} \;
};
+clean_build_status() {
+ set -- BUILD_STATUS_IN_PROGRESS_FNAME BUILD_STATUS_PROGRESS_FNAME BUILD_STATUS_TARBALL_PROGRESS_FNAME;
+ while [ ${#} -gt 0 ]; do
+ unset ${1}; shift;
+ done; touch ${PREFIX}/BUILD_ABORTED_AT_$(date %Y-%m-%d-%H-%M-%S);
+ log_msg fail "Build aborted at $(date %Y-%m-%d-%H-%M-%S).";
+};
+
export_vars_subst() {
_evs_pfx=${1}; _evs_pfx_new=${2}; shift 2;
while [ ${#} -gt 0 ]; do