Mkdir ${CHROOTDIR}/usr/ports/distfiles if RELEASEDISTFILES is not set.

We ensure that 'ports.tgz' tarball should have ports/distfiles directory.

At first, ${CHROOTDIR}/usr/ports is empty (rm -rf ports), then extract
ports files from CVS repository.  Then if RELEASEDISTFILES is defined,
${CHROOTDIR}/usr/ports/distfiles directory is created by cp(1).  However,
if you don't specify RELEASEDISTFILES, there is no chance to create
${CHROOTDIR}/usr/ports/distfiles directory.

Submitted by:	{ushi,tora}.jp.FreeBSD.org
MFC after:	5 days
This commit is contained in:
Makoto Matsushita 2002-02-12 16:56:06 +00:00
parent 2c028bf06a
commit b389e7aaef
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=90571

View File

@ -305,6 +305,8 @@ rerelease release:
.endif
if [ -d ${RELEASEDISTFILES}/ ]; then \
cp -rp ${RELEASEDISTFILES} ${CHROOTDIR}/usr/ports/distfiles; \
else \
mkdir -p ${CHROOTDIR}/usr/ports/distfiles \
fi
.endif
.endif