Previously, `make-*-flight' would not work unless FREEBSD_*_BUILDJOB
was set. Now we use the anointed values if we can find them.
If we can't, mg-anoint retrieve will print a warning.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Roger Pau Monné <roger.pau@citrix.com>
# 3. Config file FreeBSDDist, FreeBSDVersion: same as 2. except that
# they are set on the config file.
#
+ # 4. Look for an anointed build of FreeBSD `master' (Executive only)
+ #
local envvar="FREEBSD_${arch^^}_BUILDJOB"
if [ -n "${!envvar}" ]; then
freebsd_runvars="freebsdbuildjob=${!envvar}"
freebsd_version=$version"
return
fi
+ local anointment="freebsd build master $arch"
+ local flightjob=`./mg-anoint retrieve --tolerate-unprepared "$anointment"`
+ if [ -n "$flightjob" ]; then
+ freebsd_runvars="freebsdbuildjob=${flightjob/ /.}"
+ return
+ fi
}
create_build_jobs () {