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:
parent
2e6a4b0c55
commit
13f8962353
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user