config root man

Current Path : /usr/src/tools/tools/mfc/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/src/tools/tools/mfc/mfc.awk

#!/usr/bin/awk -f
#
# $FreeBSD: release/9.1.0/tools/tools/mfc/mfc.awk 158356 2006-05-08 06:47:59Z jmg $
#

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[$4] = 1
}

END {
	for (i in files)
		fl = fl " " i
	printf("cvs -d %s diff -kk %s | less\n", CVSROOT, fl);
	printf("cvs -d %s commit %s\n", CVSROOT, fl);
}

Man Man