add my script that helps me handle MFC's. It takes in a commit message

and generates the proper (hopefully) update -j lines + commit line to do
the MFC...  This has saved me a lot of time doing recent MFC's...

You still should use diff to verify the changes before doing the commit..
This commit is contained in:
jmg 2004-09-24 20:06:49 +00:00
parent a4ba66f4df
commit b069886175
2 changed files with 31 additions and 1 deletions

View File

@ -36,7 +36,7 @@ kerninclude Shellscript to find unused #includes in the kernel.
kernxref Shellscript to cross reference symbols in the LINT kernel.
kttcp An in-kernel version of the ttcp network performance tool
mfc Merge a directory from HEAD to a branch where it does not
already exist.
already exist and other MFC related script(s).
mid Create a Message-ID database for mailing lists.
pciid Generate src/share/misc/pci_vendors.
portsinfo Generate list of new ports for last two weeks.

30
tools/tools/mfc/mfc.awk Normal file
View File

@ -0,0 +1,30 @@
#!/usr/bin/awk -f
#
# $FreeBSD$
#
BEGIN {
CVSROOT="ncvs:/home/ncvs"
UPDATEOPTS="-kk"
}
/^>/ {
sub(">[ ]*", "")
}
/^Revision/ || $1 == "" {
next
}
{
if (sub("1.", "") != 1)
next
if (!(match($2, "\\+[0-9]") && match($3, "-[0-9]")))
next
printf("cvs -d %s update %s -j 1.%d -j 1.%d %s\n", CVSROOT, UPDATEOPTS, $1 - 1, $1, $4)
files = files " " $4
}
END {
printf("cvs -d %s commit %s\n", CVSROOT, files);
}