Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/grep Import grep-2.5.



details:   https://anonhg.NetBSD.org/src/rev/71d465e2536e
branches:  trunk
changeset: 542333:71d465e2536e
user:      wiz <wiz%NetBSD.org@localhost>
date:      Sun Jan 26 23:15:08 2003 +0000

description:
Import grep-2.5.
Warning: -o is now a valid GNU grep option (--only-matching (-o)), so we
will not be supporting the 4.4BSD -o any longer -- use -H instead.

diffstat:

 gnu/dist/grep/.cvsignore            |    13 +
 gnu/dist/grep/AUTHORS               |     5 +-
 gnu/dist/grep/COPYING               |     6 +-
 gnu/dist/grep/ChangeLog             |  1167 +++++-
 gnu/dist/grep/Makefile.am           |    45 +-
 gnu/dist/grep/Makefile.cvs          |    47 +
 gnu/dist/grep/NEWS                  |    86 +
 gnu/dist/grep/README-alpha          |    10 +
 gnu/dist/grep/README.DOS            |    76 +
 gnu/dist/grep/THANKS                |   118 +-
 gnu/dist/grep/TODO                  |    20 -
 gnu/dist/grep/autogen.sh            |    34 +
 gnu/dist/grep/config.guess          |   843 ++-
 gnu/dist/grep/config.sub            |   586 ++-
 gnu/dist/grep/configure.in          |   122 +-
 gnu/dist/grep/depcomp               |   411 +
 gnu/dist/grep/doc/.cvsignore        |     4 +
 gnu/dist/grep/doc/mdate-sh          |     7 +-
 gnu/dist/grep/grep.spec             |   165 +
 gnu/dist/grep/intl/.cvsignore       |     1 +
 gnu/dist/grep/intl/ChangeLog        |   958 ++++-
 gnu/dist/grep/intl/Makefile.in      |   294 +-
 gnu/dist/grep/intl/bindtextdom.c    |   354 +-
 gnu/dist/grep/intl/config.charset   |   440 +
 gnu/dist/grep/intl/dcgettext.c      |   600 +--
 gnu/dist/grep/intl/dcigettext.c     |  1169 +++++
 gnu/dist/grep/intl/dcngettext.c     |    62 +
 gnu/dist/grep/intl/dgettext.c       |    30 +-
 gnu/dist/grep/intl/dngettext.c      |    63 +
 gnu/dist/grep/intl/eval-plural.h    |   107 +
 gnu/dist/grep/intl/explodename.c    |    48 +-
 gnu/dist/grep/intl/finddomain.c     |    72 +-
 gnu/dist/grep/intl/gettext.c        |    42 +-
 gnu/dist/grep/intl/gettextP.h       |   148 +-
 gnu/dist/grep/intl/gmo.h            |   102 +
 gnu/dist/grep/intl/hash-string.h    |    32 +-
 gnu/dist/grep/intl/intl-compat.c    |   138 +-
 gnu/dist/grep/intl/l10nflist.c      |    69 +-
 gnu/dist/grep/intl/libgnuintl.h     |   139 +
 gnu/dist/grep/intl/libintl.glibc    |   116 +
 gnu/dist/grep/intl/loadinfo.h       |    69 +-
 gnu/dist/grep/intl/loadmsgcat.c     |   315 +-
 gnu/dist/grep/intl/localcharset.c   |   347 +
 gnu/dist/grep/intl/locale.alias     |    78 +
 gnu/dist/grep/intl/localealias.c    |   207 +-
 gnu/dist/grep/intl/localename.c     |   695 +++
 gnu/dist/grep/intl/ngettext.c       |    70 +
 gnu/dist/grep/intl/os2compat.c      |   111 +
 gnu/dist/grep/intl/os2compat.h      |    48 +
 gnu/dist/grep/intl/osdep.c          |    26 +
 gnu/dist/grep/intl/plural-exp.c     |   158 +
 gnu/dist/grep/intl/plural-exp.h     |   124 +
 gnu/dist/grep/intl/plural.c         |  1324 +++++
 gnu/dist/grep/intl/plural.y         |   411 +
 gnu/dist/grep/intl/ref-add.sin      |    31 +
 gnu/dist/grep/intl/ref-del.sin      |    26 +
 gnu/dist/grep/intl/textdomain.c     |   106 +-
 gnu/dist/grep/lib/.cvsignore        |     3 +
 gnu/dist/grep/lib/Makefile.am       |    20 +
 gnu/dist/grep/lib/alloca.c          |   505 ++
 gnu/dist/grep/lib/atexit.c          |    16 +
 gnu/dist/grep/lib/closeout.c        |   123 +
 gnu/dist/grep/lib/closeout.h        |    19 +
 gnu/dist/grep/lib/error.c           |   278 +
 gnu/dist/grep/lib/error.h           |    80 +
 gnu/dist/grep/lib/exclude.c         |   130 +
 gnu/dist/grep/lib/exclude.h         |    37 +
 gnu/dist/grep/lib/fnmatch.c         |   232 +
 gnu/dist/grep/lib/fnmatch.h         |    71 +
 gnu/dist/grep/lib/getopt.c          |  1051 ++++
 gnu/dist/grep/lib/getopt.h          |   171 +
 gnu/dist/grep/lib/getopt1.c         |   190 +
 gnu/dist/grep/lib/hard-locale.c     |    87 +
 gnu/dist/grep/lib/hard-locale.h     |    20 +
 gnu/dist/grep/lib/isdir.c           |    44 +
 gnu/dist/grep/lib/malloc.c          |    28 +
 gnu/dist/grep/lib/memchr.c          |   201 +
 gnu/dist/grep/lib/obstack.c         |   600 ++
 gnu/dist/grep/lib/obstack.h         |   595 ++
 gnu/dist/grep/lib/posix/.cvsignore  |     2 +
 gnu/dist/grep/lib/posix/Makefile.am |     4 +
 gnu/dist/grep/lib/posix/regex.h     |   568 ++
 gnu/dist/grep/lib/quotearg.c        |   615 ++
 gnu/dist/grep/lib/quotearg.h        |   112 +
 gnu/dist/grep/lib/realloc.c         |    34 +
 gnu/dist/grep/lib/regex.c           |  7890 +++++++++++++++++++++++++++++++++++
 gnu/dist/grep/lib/regex.h           |    48 +
 gnu/dist/grep/lib/savedir.c         |   181 +
 gnu/dist/grep/lib/savedir.h         |    20 +
 gnu/dist/grep/lib/stpcpy.c          |    52 +
 gnu/dist/grep/lib/strtol.c          |   478 ++
 gnu/dist/grep/lib/strtoul.c         |    24 +
 gnu/dist/grep/lib/strtoull.c        |    29 +
 gnu/dist/grep/lib/strtoumax.c       |    83 +
 gnu/dist/grep/lib/xalloc.h          |    89 +
 gnu/dist/grep/lib/xmalloc.c         |   118 +
 gnu/dist/grep/lib/xstrtol.c         |   284 +
 gnu/dist/grep/lib/xstrtol.h         |    66 +
 gnu/dist/grep/lib/xstrtoumax.c      |    33 +
 gnu/dist/grep/missing               |   109 +-
 gnu/dist/grep/mkinstalldirs         |     2 +-
 gnu/dist/grep/po/.cvsignore         |     4 +
 gnu/dist/grep/po/POTFILES.in        |    13 +-
 gnu/dist/grep/po/bg.po              |   403 +
 gnu/dist/grep/po/ca.po              |   410 +
 gnu/dist/grep/po/cat-id-tbl.c       |   119 +-
 gnu/dist/grep/po/cs.po              |   394 +
 gnu/dist/grep/po/da.po              |   324 +
 gnu/dist/grep/po/de.po              |   457 +-
 gnu/dist/grep/po/el.po              |   568 +-
 gnu/dist/grep/po/eo.po              |   379 +
 gnu/dist/grep/po/es.po              |   463 +-
 gnu/dist/grep/po/et.po              |   395 +
 gnu/dist/grep/po/fr.po              |   470 +-
 gnu/dist/grep/po/gl.po              |   436 +
 gnu/dist/grep/po/grep.pot           |   329 +-
 gnu/dist/grep/po/hr.po              |   351 +
 gnu/dist/grep/po/id.po              |   358 +
 gnu/dist/grep/po/it.po              |   400 +
 gnu/dist/grep/po/ja.po              |   387 +
 gnu/dist/grep/po/ko.po              |   198 +-
 gnu/dist/grep/po/nb.po              |   353 +
 gnu/dist/grep/po/nl.po              |   296 +-
 gnu/dist/grep/po/no.po              |   356 +-
 gnu/dist/grep/po/pl.po              |   456 +-
 gnu/dist/grep/po/pt_BR.po           |   224 +-
 gnu/dist/grep/po/ru.po              |   462 +-
 gnu/dist/grep/po/sl.po              |   461 +-
 gnu/dist/grep/po/sv.po              |   404 +-
 gnu/dist/grep/po/tr.po              |   396 +
 gnu/dist/grep/src/.cvsignore        |     2 +
 gnu/dist/grep/src/Makefile.am       |    25 +-
 gnu/dist/grep/src/ansi2knr.1        |    38 +
 gnu/dist/grep/src/ansi2knr.c        |   680 +++
 gnu/dist/grep/src/dfa.c             |  1526 +++++-
 gnu/dist/grep/src/dfa.h             |   110 +-
 gnu/dist/grep/src/dosbuf.c          |    13 +-
 gnu/dist/grep/src/getpagesize.h     |    73 +-
 gnu/dist/grep/src/grep.h            |    18 +-
 gnu/dist/grep/src/grepmat.c         |     2 +
 gnu/dist/grep/src/kwset.c           |   139 +-
 gnu/dist/grep/src/kwset.h           |    10 +-
 gnu/dist/grep/src/search.c          |   786 ++-
 gnu/dist/grep/src/system.h          |    36 +-
 gnu/dist/grep/src/vms_fab.c         |    18 +-
 gnu/dist/grep/src/vms_fab.h         |    15 +
 146 files changed, 37077 insertions(+), 4917 deletions(-)

diffs (truncated from 48305 to 300 lines):

diff -r 82c9c9e53ff6 -r 71d465e2536e gnu/dist/grep/.cvsignore
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/gnu/dist/grep/.cvsignore  Sun Jan 26 23:15:08 2003 +0000
@@ -0,0 +1,13 @@
+*.gmo
+Makefile
+Makefile.in
+aclocal.m4
+acinclude.m4
+configure
+config.cache
+config.h
+config.hin
+config.log
+config.status
+stamp-h.in
+stamp-h 
diff -r 82c9c9e53ff6 -r 71d465e2536e gnu/dist/grep/AUTHORS
--- a/gnu/dist/grep/AUTHORS     Sun Jan 26 22:19:36 2003 +0000
+++ b/gnu/dist/grep/AUTHORS     Sun Jan 26 23:15:08 2003 +0000
@@ -38,4 +38,7 @@
 Many folks contributed see THANKS, if I omited someone please
 send me email.
 
-Alain Magloire is the current maintainer.
+Alain Magloire maintained GNU grep until version 2.5e.
+
+Bernhard "Bero" Rosenkränzer <bero%redhat.com@localhost> is the current maintainer.
+
diff -r 82c9c9e53ff6 -r 71d465e2536e gnu/dist/grep/COPYING
--- a/gnu/dist/grep/COPYING     Sun Jan 26 22:19:36 2003 +0000
+++ b/gnu/dist/grep/COPYING     Sun Jan 26 23:15:08 2003 +0000
@@ -2,7 +2,7 @@
                       Version 2, June 1991
 
  Copyright (C) 1989, 1991 Free Software Foundation, Inc.
-     59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+                       59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  Everyone is permitted to copy and distribute verbatim copies
  of this license document, but changing it is not allowed.
 
@@ -291,7 +291,7 @@
 the "copyright" line and a pointer to where the full notice is found.
 
     <one line to give the program's name and a brief idea of what it does.>
-    Copyright (C) <year>  <name of author>
+    Copyright (C) 19yy  <name of author>
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -313,7 +313,7 @@
 If the program is interactive, make it output a short notice like this
 when it starts in an interactive mode:
 
-    Gnomovision version 69, Copyright (C) year  name of author
+    Gnomovision version 69, Copyright (C) 19yy name of author
     Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
     This is free software, and you are welcome to redistribute it
     under certain conditions; type `show c' for details.
diff -r 82c9c9e53ff6 -r 71d465e2536e gnu/dist/grep/ChangeLog
--- a/gnu/dist/grep/ChangeLog   Sun Jan 26 22:19:36 2003 +0000
+++ b/gnu/dist/grep/ChangeLog   Sun Jan 26 23:15:08 2003 +0000
@@ -1,3 +1,1158 @@
+2002-03-13  Bernhard Rosenkraenzer <bero%redhat.com@localhost>
+       * configure.in, m4/regex.m4, m4/malloc.m4, m4/realloc.m4:
+         Don't set LIBOBJS directly, autoconf 2.53 doesn't like it
+       * intl/*: Sync with gettext 0.11
+       * po/*: Sync with translation project
+       * configure.in, src/Makefile.am: Don't duplicate code - make
+         egrep and fgrep links to grep and set matcher based on
+         application name, suggestion from
+         Guillaume Cottenceau <gc%mandrakesoft.com@localhost>
+       * src/grep.c: (prline) Add fix for -i --color from
+         Jim Meyering <meyering%lucent.com@localhost>
+       * configure.in: Version 2.5; release
+
+2002-01-23  Bernhard Rosenkraenzer <bero%redhat.com@localhost>
+       * configure.in: Version 2.5g
+       * Makefile.cvs, grep.spec: Add packaging tools
+       Merge djgpp changes from Andrew Cottrell <anddjgpp%ihug.coml.au@localhost>:
+       * src/grep.c: Added conditional compilation for DJGPP
+       * djgpp: remove directory as it is no longer required with DJGPP 2.03
+                 (or 2.04 when released)
+       * README.DOS: Moved djgpp/readme to readme.dos
+       * PATCHES.AC, PATCHES.AM: delete files - redundant
+       * configure.in, Makefile.am: remove djgpp directory from list
+
+2002-01-22  Bernhard Rosenkraenzer <bero%redhat.com@localhost>
+       * doc/grep.texi, doc/grep.1, NEWS: Document --label
+       * po/ru.po: Sync with translation project
+       * po/grep.pot: Sync with source
+
+2002-01-18  Bernhard Rosenkraenzer <bero%redhat.com@localhost>
+       * src/grep.c: Add --label, based on patch from Stepan Koltsov
+
+2001-11-20  Bernhard Rosenkraenzer <bero%redhat.com@localhost>
+       * autogen.sh: Don't hardcode aclocal dir
+
+2001-11-19  Bernhard Rosenkraenzer <bero%redhat.com@localhost>
+       * src/grep.c: Add --only-matching (-o) switch (see NEWS)
+       * doc/grep.texi, doc/grep.1, NEWS: Document changes
+       * configure.in, lib/Makefile.am: Don't use internal getopt if
+          we're on a system that provides a working getopt function
+
+2001-09-25  Bernhard Rosenkraenzer <bero%redhat.com@localhost>
+       * configure.in: Detect pcre correctly even when it's in
+         non-standard locations, using pcre-config
+       * src/grep.c: Add --color={always,never,tty} argument (like in ls)
+       * src/grep.c: Turn off blinking in the default colorization
+       * src/grep.c: Add --devices (-D) switch (analogous to --directories)
+       * src/dfa.c: Fix an i18n bug: echo "A" | grep '[A-Z0-9]' wouldn't work
+         in non-C-Locales on systems using current versions of glibc.
+       * AUTHORS: Change maintainer, credit Alain for his work until now
+       * configure.in, m4/decl.m4, m4/dosfile.m4, m4/gettext.m4,
+         m4/init.m4, m4/install.m4, m4/largefile.m4, m4/lcmessage.m4,
+         m4/header.m4, m4/isc-posix.m4, m4/missing.m4, m4/progtest.m4,
+         m4/sanity.m4:
+         Fix build with autoconf 2.5x, retain 2.1x compatibility for now
+       * autogen.sh: Add some crude hacks to make it possible to build with
+         both autoconf 2.5x and 2.1x
+       * acconfig.h: removed (no longer required)
+       * Makefile.am: add cvs-clean target
+       * doc/grep.texi, doc/grep.1, NEWS: Document changes
+         (--color, --devices, -D)
+       * src/dfa.c, src/grep.c: Add vim modelines
+
+2001-08-30  Alain Magloire
+
+       * configure.in: Add gl in ALL_LINGUAS.
+
+2001-08-30  Kurt D Schwehr
+
+       * doc/grep.1: Warn that grep insert a "--" between groups of matches,
+       when using the context options.
+       * doc/grep.texi: Likewised.
+
+2001-08-25  Heikki Korpela
+
+       * doc/grep.texi: Point out that some Platforms do not support
+       reading of directories and silently ignore them.
+
+2001-08-21  Alain Magloire
+
+       * lib/malloc.c: New file:
+       * lib/realloc.c: New file:
+       * lib/Makefile.am: Add malloc.c and realloc.c in EXTRA_DIST.
+
+2001-07-31  Alain Magloire
+
+       * po/*.po: New files from the translation team:
+       grep-2.5e.de.po  grep-2.5e.el.po  grep-2.5e.eo.po grep-2.5e.es.po
+       grep-2.5e.et.po  grep-2.5e.fr.po  grep-2.5e.gl.po grep-2.5e.it.po
+       grep-2.5e.pl.po  grep-2.5e.sl.po
+
+2001-07-31  Andreas Schwab
+
+       * src/grep.c: Fix all uses of error to pass a proper format
+       string.
+
+2001-07-29  Alain Magloire
+
+       * grep/src/grep.c (usage): Typos corrected.
+       Patches from Santiago Vila.
+
+2001-07-29  Alain Magloire
+
+       David Clissold, wrote:
+       a small bug in the GNU grep 2.4.2, which may have gone unnoticed
+       because it only causes a failure if building on a system with large
+       files enabled (e.g. an "off_t" is a "long long" rather than a "long").
+       savedir() takes on off_t argument, but in grepdir() the parameter
+       is cast to an (unsigned).  Well, if an off_t is larger than an int,
+       the value gets truncated.  This would not normally have an effect on a
+       little-endian platform (unless the file is >2GB), but on a big-endian
+       system it will always fail.  The external effect is that
+       "grep -r foo dir_name" fails with ENOMEM (from malloc() within
+       savedir()).
+
+       * grep/src/grep.c (grepdir): Remove the (unsigned) cast when calling
+       savedir().
+       Patch from David Clissold.
+
+2001-07-29  Alain Magloire
+
+       * grep/doc/grep.texi: In Bugs report use {n,m} for consistency.
+       * grep/doc/grep.1: Likewised.
+       Noted by Steven Lucy.
+
+2001-04-27  Isamu Hasegawa
+
+       * dfa.c (mblen_buf) : New variable contains the amount of remain
+       byte of corresponding multibyte character in the input string.
+       (SKIP_REMAIN_MB_IF_INITIAL_STATE) : Use mblen_buf.
+       (match_anychar) : Use mblen_buf.
+       (match_mb_charset) : Use mblen_buf.
+       (transit_state_consume_1char) : Use mblen_buf.
+       (transit_state) : Use inputwcs to get current (multibyte) character.
+       (dfaexec) : Add initialization of mblen_buf.
+
+2001-04-27  Isamu Hasegawa
+
+       * dfa.c (addtok) : Set appropriate value to multibyte_prop.
+       (dfastate) : Add the initialization of the variable.
+       (dfaexec) : Call transit_state if d->fail may transit by
+       multibyte characters.
+       (transit_state_singlebyte) : Clean up unnecessary code.
+       (transit_state_consume_1char) : Likewise.
+        (transit_state) : Add checking for word and newline.
+
+2001-04-19  Isamu Hasegawa
+
+       * search.c (check_multibyte_string) : Check the case when mbclen == 0.
+
+2001-04-11  Isamu Hasegawa
+
+       * search.c (check_multibyte_string) : Check the head of multibyte
+       characters, and optimize a bit.
+       (EGexecute) : Optimize a bit.
+       (Fexecute) : Fix the index.
+
+2001-04-02  Alain Magloire
+
+       * lib/regex.c: Update from GNU lib C, with the changes
+       provided by Paul Eggert.
+       * lib/posix/regex.h: Likewise.
+
+2001-02-17  Paul Eggert
+
+       Stop trying to support hosts that have nonstandard declarations for
+       mbrtowc and/or mbstate_t.  It's not worth the portability hassle.
+
+       * lib/quotearg.c (mbrtowc, mbsinit): Remove workaround macros
+       for hosts that have mbrtowc but not mbstate_t, as we now
+       insist on proper declarations for both before using mbrtowc.
+
+2001-03-18  Alain Magloire
+
+       * configure.in: Call AC_MBSTATE_T.
+       * Makefile.am: Add mbstate_t.m4
+       * m4/Makefile.am: Add mbstate_t.m4
+       * m4/mbstate_t.m4: New m4 macro.
+       * lib/strtol.c: Define CHAR_BITS.
+       Uwe H. Steinfeld, Ruslan Ermilov, Volkert Bochert, noted
+       that mbstate_t was not define for certain platforms.
+
+2001-03-18  Paul Eggert
+
+       * src/grep.c (fillbuf): Fix storage allocation performance
+       bug: buffer was doubling in size in many cases where it didn't
+       have to.
+
+2001-03-17  Paul Eggert
+
+       * src/grep.c (fillbuf): Avoid unnecessary division by 2.
+       Don't check xrealloc return value; it's guaranteed to be nonzero.
+       (fillbuf, grepdir): Use xalloc_die rather than error; it's shorter.
+
+2001-03-17  Alain Magloire
+
+       * src/grep.c (context_length_arg): error () passing wrong format.
+       Spotted by Jim Meyering.
+
+2001-03-07  Alain Magloire
+
+       * README-alpha: Removed reference to GNU tar, add the location
+       of the CVSROOT.
+
+2001-03-06  Alain Magloire
+
+       Only the Regex patterns should be split in an array, patterns[].
+       The dfa and KWset compiled patterns should remain global and the
+       patterns compiled all at once.
+
+       * src/search.c: include "error.h" and "xalloc.h" to get prototyping
+       of x*alloc() and error().
+       (kwsinit): Reverse to previous behaviour and takes no argument.
+       (kwsmusts): Likewised.
+       (Gcompile): For the regex pattern, split them and each pattern
+       is put in different compiled structure patterns[]. The patterns
+       are given to dfacomp() and kwsmusts() as is.
+       (Ecompile): Likewised.
+       (Fcompile): Reverse to the old behaviour of compiling the enire
+       patterns in one shot.
+       (EGexecute): If falling to GNU regex for the matching, loop in the
+       array of compile patterns[] to find a match.
+       (error): Many error () were call with arguments in the wrong order.
+       * tests/file.sh: Simple test to check for pattern in files.
+
+       Reaction to bug report fired by Greg Louis <glouis%dynamicro.on.ca@localhost>
+
+2001-03-06  Isamu Hasegawa
+
+       In multibyte environments, handle multibyte characters as single
+       characters in bracket expressions.
+
+       * src/dfa.h (mb_char_classes) : new structure.
+       (mbcsets): new variable.
+       (nmbcsets): new variable.
+       (mbcsets_alloc) : new variable.
+       * src/dfa.c (prtok) : handle MBCSET.



Home | Main Index | Thread Index | Old Index