On Wed, 23 Feb 2000, Michael R. Wayne wrote:

> So, as I understand it, there's no way to build a release from the
> current local copy without doing a CVS to retreive new files?

I actually was looking into this about a week ago.  Applying the attached
patch to /usr/src/release/Makefile replaces the cvs checkout with a
recursive copy from local sources.  Note: I had to use -L with cp since my
/usr/src is a symlink.

If your local cvsup'd repo is in /usr/src/, /usr/ports, and /usr/doc, set
CVSROOT to /usr and the patch should do the trick.

BTW, I still haven't gotten make release to work all the way through.  My
build stops while trying to run makewhatis in the chroot'ed build
environment.  I can't figure out why, so maybe I *am* doing something
wrong.  Anyway, good luck.

--
Matt Loschert
Software Engineer
ServInt Internet Services
--- Makefile    Wed Dec 15 19:59:58 1999
+++ Makefile.localrepo  Wed Feb 23 17:47:04 2000
@@ -170,13 +170,8 @@
        for i in ${BOOTSTRAPUTILS} ; do \
                cp -p ${CHROOTDIR}$$i ${CHROOTDIR}/${BOOTSTRAPDIR} ; \
        done
-.if !defined(RELEASETAG)
        cd ${CHROOTDIR}/usr && rm -rf src && \
-               cvs -R -d ${CVSROOT} co -P ${RELEASESRCMODULE}
-.else
-       cd ${CHROOTDIR}/usr && rm -rf src && \
-               cvs -R -d ${CVSROOT} co -P -r ${RELEASETAG} ${RELEASESRCMODULE}
-.endif
+               cp -RL ${CVSROOT}/${RELEASESRCMODULE} ${RELEASESRCMODULE}
 .if defined(LOCAL_PATCHES) && exists(${LOCAL_PATCHES})
        cd ${CHROOTDIR}/usr/src && patch ${PATCH_FLAGS} < ${LOCAL_PATCHES}
 .endif
@@ -184,7 +179,7 @@
        cd ${CHROOTDIR} && env CHROOTDIR=${CHROOTDIR} BUILDNAME=${BUILDNAME} 
RELEASETAG=${RELEASETAG} ${LOCAL_SCRIPT}
 .endif
 .if !defined(NOPORTS)
-       cd ${CHROOTDIR}/usr && rm -rf ports && cvs -R -d ${CVSROOT} co -P 
${RELEASEPORTSMODULE} && cd ports && make readmes PORTSDIR=${CHROOTDIR}/usr/ports
+       cd ${CHROOTDIR}/usr && rm -rf ports && cp -RL ${CVSROOT}/${RELEASEPORTSMODULE} 
+${RELEASEPORTSMODULE} && cd ports && make readmes PORTSDIR=${CHROOTDIR}/usr/ports
 .endif
 .if !defined(NODOC)
        cd ${CHROOTDIR}/usr && rm -rf doc && cvs -R -d ${CVSROOT} co -P 
${RELEASEDOCMODULE}

Reply via email to