From b4f721685ee7fb17a7b1a337583d3be229206de9 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Wed, 26 Feb 2003 15:32:12 +0000 Subject: [PATCH] If we are told to update the sources in "make rerelease", we also probably want to re-buildworld. If we are not going to rebuild (make rerelease -DRELEASENOUPDATE and the file ${CHROOTDIR}/tmp/.world_done exists), do not touch ${CHROOTDIR}/usr/src/sys/conf/newvers.sh, as the only effect that is has is upsetting release.2. Hey, have you ever seen this "touch: not found" during rerelease? :-) --- release/Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/release/Makefile b/release/Makefile index 34b92e68520..8e6bdab831f 100644 --- a/release/Makefile +++ b/release/Makefile @@ -398,6 +398,7 @@ release rerelease: .else cd ${CHROOTDIR}/usr/src && ${CVSPREFIX} cvs -R ${CVSARGS} -q update ${CVSCMDARGS} -P -d -r ${RELEASETAG} .endif + rm -f ${CHROOTDIR}/tmp/.world_done .if !defined(NOPORTS) cd ${CHROOTDIR}/usr/ports && ${CVSPREFIX} cvs -R ${CVSARGS} -q update ${CVSCMDARGS} -P -d .endif @@ -412,9 +413,12 @@ release rerelease: .endif .endif # Add version information to those things that need it. - ( cd ${CHROOTDIR}/usr/src/sys/conf && \ - mv newvers.sh foo && \ - sed "s/^RELEASE=.*/RELEASE=${BUILDNAME}/" foo > newvers.sh && rm foo ) + if [ ! -f ${CHROOTDIR}/tmp/.world_done ]; then \ + cd ${CHROOTDIR}/usr/src/sys/conf && \ + mv newvers.sh foo && \ + sed "s/^RELEASE=.*/RELEASE=${BUILDNAME}/" foo > newvers.sh && \ + rm foo; \ + fi -test -f install.cfg && cp install.cfg ${CHROOTDIR}/usr/src/release echo "#!/bin/sh" > ${CHROOTDIR}/mk echo "set -ex" >> ${CHROOTDIR}/mk