If MAKE_CONF and/or SRC_CONF are set and not character devices,

copy to chroot to use with release build.

Submitted by:	Garrett Cooper (original version)
Approved by:	kib (mentor)
MFC after:	1 week
This commit is contained in:
Glen Barber 2013-06-22 22:12:24 +00:00
parent 2e6a4b0c55
commit 13f8962353
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=252101

View File

@ -171,6 +171,17 @@ build_doc_ports() {
fi
}
# If MAKE_CONF and/or SRC_CONF are set and not character devices (/dev/null),
# copy them to the chroot.
if [ -e ${MAKE_CONF} ] && [ ! -c ${MAKE_CONF} ]; then
mkdir -p ${CHROOTDIR}/$(dirname ${MAKE_CONF})
cp ${MAKE_CONF} ${CHROOTDIR}/${MAKE_CONF}
fi
if [ -e ${SRC_CONF} ] && [ ! -c ${SRC_CONF} ]; then
mkdir -p ${CHROOTDIR}/$(dirname ${SRC_CONF})
cp ${SRC_CONF} ${CHROOTDIR}/${SRC_CONF}
fi
if [ -d ${CHROOTDIR}/usr/ports ]; then
cp /etc/resolv.conf ${CHROOTDIR}/etc/resolv.conf
build_doc_ports ${CHROOTDIR}