Lucio Andrés Illanes Albornoz (arab, vxp) e2fea1
#
Lucio Andrés Illanes Albornoz (arab, vxp) 802215
# set -o errexit -o noglob are assumed.
Lucio Andrés Illanes Albornoz (arab, vxp) e2fea1
#
Lucio Andrés Illanes Albornoz (arab, vxp) e2fea1
Lucio Andrés Illanes Albornoz (arab, vxp) e2fea1
pre_build_files() {
Lucio Andrés Illanes Albornoz (arab, vxp) 771584
	if [ -e ${BUILD_STATUS_IN_PROGRESS_FNAME} ]; then
Lucio Andrés Illanes Albornoz (arab, vxp) 771584
		log_msg failexit "Error: another build targeting this architecture and build type is currently in progress.";
Lucio Andrés Illanes Albornoz (arab, vxp) 771584
	else
Lucio Andrés Illanes Albornoz (arab, vxp) 771584
		touch ${BUILD_STATUS_IN_PROGRESS_FNAME};
Lucio Andrés Illanes Albornoz (arab, vxp) 771584
	fi;
Lucio Andrés Illanes Albornoz (arab, vxp) e2fea1
	if [ -e ${BUILD_LOG_FNAME} ]; then
Lucio Andrés Illanes Albornoz (arab, vxp) e2fea1
		mv -- ${BUILD_LOG_FNAME} ${BUILD_LOG_LAST_FNAME};
Lucio Andrés Illanes Albornoz (arab, vxp) e2fea1
	fi;
Lucio Andrés Illanes Albornoz (arab, vxp) e2fea1
	BUILD_DATE_START="$(date %Y-%m-%d-%H-%M-%S)";
Lucio Andrés Illanes Albornoz (arab, vxp) e2fea1
	BUILD_NFINI=${BUILD_NSKIP:=${BUILD_NFAIL:=${BUILD_NBUILT:=0}}};
Lucio Andrés Illanes Albornoz (arab, vxp) e2fea1
	BUILD_TIMES_SECS=$(command date +%s);
Lucio Andrés Illanes Albornoz (arab, vxp) e2fea1
};
Lucio Andrés Illanes Albornoz (arab, vxp) e2fea1
Lucio Andrés Illanes Albornoz (arab, vxp) e2fea1
# vim:filetype=sh