Subject: Re: CVS question
To: None <skippy@macro.stanford.edu>
From: John Kohl <jtk@kolvir.arlington.ma.us>
List: current-users
Date: 09/29/1997 23:18:54
> THIS IS A MESSAGE IN 'MIME' FORMAT.
> If you are reading this, your mail reader may not support MIME.
> Some parts of this message will be readable as plain text.

--mysteryboxofun
Content-Type: text/plain

What I do with my local CVS tree is:
	(a) sup into a pristine area
	(b) run a script over the sup log to delete obsolete revisions
	    on the vendor branch
	(c) run a script over the sup log to import directories with new
	    changes onto the vendor branch.

Scripts enclosed below.  You'll need to tweak them somewhat (at least
the part about /usr/src being /u3/NetBSD-current/src).

==John

--mysteryboxofun
Content-Type: text/plain; charset=US-ASCII; name="cvs-delete-netbsd"
Content-Description: ~/bin/cvs-delete-netbsd
Content-Transfer-Encoding: quoted-printable

#!/bin/csh -f
#
cd /u4/sandbox
foreach i (`awk '/Deleted file/  {print $4}' < $1`)
	cvs co -P -rNetBSD $i
	rm -f $i
	cvs rm $i
	cvs commit -m"remove per latest current" $i
end


--mysteryboxofun
Content-Type: text/plain; charset=US-ASCII; name="cvs-import-list"
Content-Description: ~/bin/cvs-import-list
Content-Transfer-Encoding: quoted-printable

#!/bin/csh -f
#
awk '/Receiving file src/  {print $4}' < $1|grep -v '^src/.ctm_status$' |=
 sed -e 's:/[^/]*$::'|sort -u>/tmp/$$.sort
cat /tmp/$$.sort
foreach i (`cat /tmp/$$.sort`)
	echo -n import $i\?\ =

	set reply=3D$<
	if ($reply =3D~ [Yy]*) then
		pushd /usr/$i
		cvs import -ko -I\! -I obj -m"current as of `date +%D`" `pwd | sed -e s=
:/u3/NetBSD-current/::` NetBSD NetBSD_CURRENT |&tee -a /var/tmp/import-li=
st
		popd
	endif
end
rm -f /tmp/$$.sort


--mysteryboxofun--