diff options
author | marcel <marcel@FreeBSD.org> | 2003-06-04 05:17:18 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2003-06-04 05:17:18 +0000 |
commit | 1593ff46cb41e2d07a63f0896e5e8aedb24f74d8 (patch) | |
tree | 8e16580150eebd9e986a9cbbe13d8e641d7c38ce /release/Makefile | |
parent | ec49fe4651e2ab9d55a63341d81772f46f73785c (diff) | |
download | FreeBSD-src-1593ff46cb41e2d07a63f0896e5e8aedb24f74d8.zip FreeBSD-src-1593ff46cb41e2d07a63f0896e5e8aedb24f74d8.tar.gz |
Have the port readmes follow the same logic as buildworld. We skip
doing make readmes if /tmp/.skip_ports exists. This file is created
after a complete run, which avoids that we do the lengthy operation
again for a rerelease.
When NOPORTS or NOPORTREADMES are defined, we create the file prior
to starting the release.
Diffstat (limited to 'release/Makefile')
-rw-r--r-- | release/Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/release/Makefile b/release/Makefile index 1c19b8d..98eb409 100644 --- a/release/Makefile +++ b/release/Makefile @@ -453,14 +453,11 @@ release rerelease: echo " ${CROSSMAKE} ${WORLD_FLAGS} -DNOCLEAN buildworld && \\" >> ${CHROOTDIR}/mk echo " touch /tmp/.world_done" >> ${CHROOTDIR}/mk echo "fi" >> ${CHROOTDIR}/mk -.if defined(NOPORTS) || defined(NOPORTREADMES) - echo "if false; then" >> ${CHROOTDIR}/mk -.else - echo "if true; then" >> ${CHROOTDIR}/mk -.endif + echo "if [ ! -f /tmp/.skip_ports ]; then" >> ${CHROOTDIR}/mk echo " echo \">>> make readmes started on \`LC_ALL=C TZ=GMT date\`\"" >> ${CHROOTDIR}/mk echo " cd /usr/ports" >> ${CHROOTDIR}/mk echo " make ${PORTREADMES_FLAGS} readmes" >> ${CHROOTDIR}/mk + echo " touch /tmp/.skip_ports" >> ${CHROOTDIR}/mk echo " echo \">>> make readmes finished on \`LC_ALL=C TZ=GMT date\`\"" >> ${CHROOTDIR}/mk echo "fi" >> ${CHROOTDIR}/mk echo "cd /usr/src/release" >> ${CHROOTDIR}/mk @@ -468,6 +465,9 @@ release rerelease: echo "make \$${_RELTARGET}" >> ${CHROOTDIR}/mk echo "echo \">>> make ${.TARGET} for ${TARGET} finished on \`LC_ALL=C TZ=GMT date\`\"" >> ${CHROOTDIR}/mk chmod 755 ${CHROOTDIR}/mk +.if defined(NOPORTS) || defined(NOPORTREADMES) + touch ${CHROOTDIR}/tmp/.skip_ports +.endif # Ensure md.ko is loaded if md(4) is not statically compiled into the kernel -mdconfig 2>/dev/null env -i /usr/sbin/chroot ${CHROOTDIR} /mk |