blob: 700ea7405ba8001dcb22901907ed3b08f35a662f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#
# set -o errexit -o noglob are assumed.
#
pre_build_files() {
if [ -e ${BUILD_STATUS_IN_PROGRESS_FNAME} ]; then
log_msg failexit "Error: another build targeting this architecture and build type is currently in progress.";
else
touch ${BUILD_STATUS_IN_PROGRESS_FNAME};
fi;
if [ -e ${BUILD_LOG_FNAME} ]; then
mv -- ${BUILD_LOG_FNAME} ${BUILD_LOG_LAST_FNAME};
fi;
BUILD_DATE_START="$(date %Y-%m-%d-%H-%M-%S)";
BUILD_NFINI=${BUILD_NSKIP:=${BUILD_NFAIL:=${BUILD_NBUILT:=0}}};
BUILD_TIMES_SECS=$(command date +%s);
};
# vim:filetype=sh
|