From owner-cvs-src-old@FreeBSD.ORG Thu Jul 22 19:19:04 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3A2F2106566C for ; Thu, 22 Jul 2010 19:19:04 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 1FBA88FC17 for ; Thu, 22 Jul 2010 19:19:04 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o6MJJ4KV005021 for ; Thu, 22 Jul 2010 19:19:04 GMT (envelope-from gabor@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o6MJJ3qH005020 for cvs-src-old@freebsd.org; Thu, 22 Jul 2010 19:19:03 GMT (envelope-from gabor@repoman.freebsd.org) Message-Id: <201007221919.o6MJJ3qH005020@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to gabor@repoman.freebsd.org using -f From: Gabor Kovesdan Date: Thu, 22 Jul 2010 19:11:57 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src UPDATING src/share/mk bsd.own.mk src/tools/build/options WITHOUT_GNU_GREP WITH_GNU_GREP src/usr.bin Makefile src/usr.bin/grep Makefile fastgrep.c file.c grep.1 grep.c grep.h queue.c util.c src/usr.bin/grep/nls C.msg Makefile.inc ... X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jul 2010 19:19:04 -0000 gabor 2010-07-22 19:11:57 UTC FreeBSD src repository Modified files: . UPDATING share/mk bsd.own.mk usr.bin Makefile Added files: tools/build/options WITH_GNU_GREP usr.bin/grep Makefile fastgrep.c file.c grep.1 grep.c grep.h queue.c util.c usr.bin/grep/nls C.msg Makefile.inc es_ES.ISO8859-1.msg gl_ES.ISO8859-1.msg hu_HU.ISO8859-2.msg pt_BR.ISO8859-1.msg Removed files: tools/build/options WITHOUT_GNU_GREP Log: SVN rev 210389 on 2010-07-22 19:11:57Z by gabor Add BSD grep to the base system and make it our default grep. Deliverables: Small and clean code (1,4 KSLOC vs GNU's 8,5 KSLOC), lower memory usage than GNU grep, GNU compatibility, BSD license. TODO: Performance is somewhat behind GNU grep but it is only significant for bigger searches. The reason is complex, the most important factor is that GNU grep uses lots of optimizations to improve the speed of the regex library. First, we need a modern regex library (practically by adopting TRE), add support for GNU-style non-standard regexes and then reevalute the performance issues and look for bottlenecks. In the meantime, for those, who need better performance, it is possible to build GNU grep by setting WITH_GNU_GREP. Approved by: delphij (mentor) Obtained from: OpenBSD (http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/grep/), freegrep (http://github.com/howardjp/freegrep) Sponsored by: Google SoC 2008 Portbuild tests run by: kris, pav, erwin Acknowledgements to: fjoe (as SoC 2008 mentor), everyone who helped in reviewing and testing Revision Changes Path 1.662 +12 -0 src/UPDATING 1.89 +1 -1 src/share/mk/bsd.own.mk 1.2 +0 -2 src/tools/build/options/WITHOUT_GNU_GREP (dead) 1.1 +2 -0 src/tools/build/options/WITH_GNU_GREP (new) 1.336 +5 -0 src/usr.bin/Makefile 1.1 +35 -0 src/usr.bin/grep/Makefile (new) 1.1 +333 -0 src/usr.bin/grep/fastgrep.c (new) 1.1 +255 -0 src/usr.bin/grep/file.c (new) 1.1 +461 -0 src/usr.bin/grep/grep.1 (new) 1.1 +667 -0 src/usr.bin/grep/grep.c (new) 1.1 +162 -0 src/usr.bin/grep/grep.h (new) 1.1 +14 -0 src/usr.bin/grep/nls/C.msg (new) 1.1 +12 -0 src/usr.bin/grep/nls/Makefile.inc (new) 1.1 +14 -0 src/usr.bin/grep/nls/es_ES.ISO8859-1.msg (new) 1.1 +14 -0 src/usr.bin/grep/nls/gl_ES.ISO8859-1.msg (new) 1.1 +14 -0 src/usr.bin/grep/nls/hu_HU.ISO8859-2.msg (new) 1.1 +14 -0 src/usr.bin/grep/nls/pt_BR.ISO8859-1.msg (new) 1.1 +104 -0 src/usr.bin/grep/queue.c (new) 1.1 +464 -0 src/usr.bin/grep/util.c (new)