Copy from ${EXTLOCALDIR} to ${CHROOTDIR}/usr/local if EXTLOCALDIR is defined.

This commit is contained in:
Yoshihiro Takahashi 2002-11-17 13:35:12 +00:00
parent 263de9cd60
commit d101bd6452
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=107009

View File

@ -343,6 +343,10 @@ rerelease release:
if [ -f /etc/resolv.conf ]; then \
cp -p /etc/resolv.conf ${CHROOTDIR}/etc; \
fi
.if defined(EXTLOCALDIR)
rm -rf ${CHROOTDIR}/usr/local
cd ${CHROOTDIR}/usr && cp -R ${EXTLOCALDIR} local
.endif
rm -rf ${CHROOTDIR}/usr/src
.if defined(EXTSRCDIR)
cd ${CHROOTDIR}/usr && \