Date: Thu, 22 Jul 2010 19:11:57 +0000 (UTC) From: Gabor Kovesdan <gabor@FreeBSD.org> To: cvs-src-old@freebsd.org 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 ... Message-ID: <201007221919.o6MJJ3qH005020@repoman.freebsd.org>
index | next in thread | raw e-mail
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)
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007221919.o6MJJ3qH005020>
