Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl2/grep/dist Import latest GPLv2 grep
details: https://anonhg.NetBSD.org/src/rev/4a4ae4816ceb
branches: trunk
changeset: 342839:4a4ae4816ceb
user: christos <christos%NetBSD.org@localhost>
date: Sun Jan 10 21:36:14 2016 +0000
description:
Import latest GPLv2 grep
diffstat:
external/gpl2/grep/dist/ABOUT-NLS | 226 +
external/gpl2/grep/dist/AUTHORS | 46 +
external/gpl2/grep/dist/COPYING | 340 +
external/gpl2/grep/dist/ChangeLog | 2500 +++++
external/gpl2/grep/dist/INSTALL | 182 +
external/gpl2/grep/dist/Makefile.am | 51 +
external/gpl2/grep/dist/Makefile.cvs | 47 +
external/gpl2/grep/dist/Makefile.in | 474 +
external/gpl2/grep/dist/NEWS | 238 +
external/gpl2/grep/dist/README | 25 +
external/gpl2/grep/dist/README-alpha | 10 +
external/gpl2/grep/dist/README.DOS | 76 +
external/gpl2/grep/dist/THANKS | 74 +
external/gpl2/grep/dist/TODO | 42 +
external/gpl2/grep/dist/aclocal.m4 | 1829 ++++
external/gpl2/grep/dist/autogen.sh | 34 +
external/gpl2/grep/dist/config.guess | 1314 +++
external/gpl2/grep/dist/config.hin | 340 +
external/gpl2/grep/dist/config.sub | 1410 +++
external/gpl2/grep/dist/configure | 10072 ++++++++++++++++++++++++
external/gpl2/grep/dist/configure.in | 144 +
external/gpl2/grep/dist/depcomp | 411 +
external/gpl2/grep/dist/doc/Makefile.am | 18 +
external/gpl2/grep/dist/doc/Makefile.in | 400 +
external/gpl2/grep/dist/doc/egrep.man | 1 +
external/gpl2/grep/dist/doc/fgrep.man | 1 +
external/gpl2/grep/dist/doc/grep.1 | 782 +
external/gpl2/grep/dist/doc/grep.texi | 2090 ++++
external/gpl2/grep/dist/doc/mdate-sh | 97 +
external/gpl2/grep/dist/doc/texinfo.tex | 6200 ++++++++++++++
external/gpl2/grep/dist/grep.spec | 168 +
external/gpl2/grep/dist/install-sh | 251 +
external/gpl2/grep/dist/intl/ChangeLog | 2030 ++++
external/gpl2/grep/dist/intl/Makefile | 337 +
external/gpl2/grep/dist/intl/Makefile.in | 337 +
external/gpl2/grep/dist/intl/VERSION | 1 +
external/gpl2/grep/dist/intl/bindtextdom.c | 371 +
external/gpl2/grep/dist/intl/config.charset | 440 +
external/gpl2/grep/dist/intl/dcgettext.c | 60 +
external/gpl2/grep/dist/intl/dcigettext.c | 1169 ++
external/gpl2/grep/dist/intl/dcngettext.c | 62 +
external/gpl2/grep/dist/intl/dgettext.c | 61 +
external/gpl2/grep/dist/intl/dngettext.c | 63 +
external/gpl2/grep/dist/intl/eval-plural.h | 107 +
external/gpl2/grep/dist/intl/explodename.c | 194 +
external/gpl2/grep/dist/intl/finddomain.c | 200 +
external/gpl2/grep/dist/intl/gettext.c | 66 +
external/gpl2/grep/dist/intl/gettextP.h | 203 +
external/gpl2/grep/dist/intl/gmo.h | 102 +
external/gpl2/grep/dist/intl/hash-string.h | 61 +
external/gpl2/grep/dist/intl/intl-compat.c | 168 +
external/gpl2/grep/dist/intl/l10nflist.c | 402 +
external/gpl2/grep/dist/intl/libgnuintl.h | 139 +
external/gpl2/grep/dist/intl/libintl.glibc | 116 +
external/gpl2/grep/dist/intl/loadinfo.h | 123 +
external/gpl2/grep/dist/intl/loadmsgcat.c | 447 +
external/gpl2/grep/dist/intl/localcharset.c | 347 +
external/gpl2/grep/dist/intl/locale.alias | 78 +
external/gpl2/grep/dist/intl/localealias.c | 421 +
external/gpl2/grep/dist/intl/localename.c | 695 +
external/gpl2/grep/dist/intl/ngettext.c | 70 +
external/gpl2/grep/dist/intl/os2compat.c | 111 +
external/gpl2/grep/dist/intl/os2compat.h | 48 +
external/gpl2/grep/dist/intl/osdep.c | 26 +
external/gpl2/grep/dist/intl/plural-exp.c | 158 +
external/gpl2/grep/dist/intl/plural-exp.h | 124 +
external/gpl2/grep/dist/intl/plural.c | 1324 +++
external/gpl2/grep/dist/intl/plural.y | 411 +
external/gpl2/grep/dist/intl/ref-add.sin | 31 +
external/gpl2/grep/dist/intl/ref-del.sin | 26 +
external/gpl2/grep/dist/intl/textdomain.c | 144 +
external/gpl2/grep/dist/lib/Makefile.am | 20 +
external/gpl2/grep/dist/lib/Makefile.in | 514 +
external/gpl2/grep/dist/lib/alloca.c | 505 +
external/gpl2/grep/dist/lib/atexit.c | 16 +
external/gpl2/grep/dist/lib/closeout.c | 123 +
external/gpl2/grep/dist/lib/closeout.h | 19 +
external/gpl2/grep/dist/lib/error.c | 278 +
external/gpl2/grep/dist/lib/error.h | 80 +
external/gpl2/grep/dist/lib/exclude.c | 130 +
external/gpl2/grep/dist/lib/exclude.h | 37 +
external/gpl2/grep/dist/lib/fnmatch.c | 232 +
external/gpl2/grep/dist/lib/fnmatch.h | 71 +
external/gpl2/grep/dist/lib/getopt.c | 1051 ++
external/gpl2/grep/dist/lib/getopt.h | 171 +
external/gpl2/grep/dist/lib/getopt1.c | 190 +
external/gpl2/grep/dist/lib/hard-locale.c | 87 +
external/gpl2/grep/dist/lib/hard-locale.h | 20 +
external/gpl2/grep/dist/lib/isdir.c | 44 +
external/gpl2/grep/dist/lib/malloc.c | 28 +
external/gpl2/grep/dist/lib/memchr.c | 201 +
external/gpl2/grep/dist/lib/obstack.c | 600 +
external/gpl2/grep/dist/lib/obstack.h | 595 +
external/gpl2/grep/dist/lib/posix/Makefile.am | 4 +
external/gpl2/grep/dist/lib/posix/Makefile.in | 219 +
external/gpl2/grep/dist/lib/posix/regex.h | 568 +
external/gpl2/grep/dist/lib/quotearg.c | 615 +
external/gpl2/grep/dist/lib/quotearg.h | 112 +
external/gpl2/grep/dist/lib/realloc.c | 34 +
external/gpl2/grep/dist/lib/regex.c | 7890 ++++++++++++++++++
external/gpl2/grep/dist/lib/regex.h | 48 +
external/gpl2/grep/dist/lib/savedir.c | 181 +
external/gpl2/grep/dist/lib/savedir.h | 20 +
external/gpl2/grep/dist/lib/stpcpy.c | 52 +
external/gpl2/grep/dist/lib/strtol.c | 478 +
external/gpl2/grep/dist/lib/strtoul.c | 24 +
external/gpl2/grep/dist/lib/strtoull.c | 29 +
external/gpl2/grep/dist/lib/strtoumax.c | 83 +
external/gpl2/grep/dist/lib/xalloc.h | 89 +
external/gpl2/grep/dist/lib/xmalloc.c | 118 +
external/gpl2/grep/dist/lib/xstrtol.c | 284 +
external/gpl2/grep/dist/lib/xstrtol.h | 66 +
external/gpl2/grep/dist/lib/xstrtoumax.c | 33 +
external/gpl2/grep/dist/missing | 283 +
external/gpl2/grep/dist/mkinstalldirs | 40 +
external/gpl2/grep/dist/po/ChangeLog | 7 +
external/gpl2/grep/dist/po/Makefile.in.in | 248 +
external/gpl2/grep/dist/po/POTFILES.in | 13 +
external/gpl2/grep/dist/po/bg.po | 403 +
external/gpl2/grep/dist/po/ca.po | 410 +
external/gpl2/grep/dist/po/cat-id-tbl.c | 2 +
external/gpl2/grep/dist/po/cs.po | 394 +
external/gpl2/grep/dist/po/da.po | 324 +
external/gpl2/grep/dist/po/de.po | 403 +
external/gpl2/grep/dist/po/el.po | 562 +
external/gpl2/grep/dist/po/eo.po | 379 +
external/gpl2/grep/dist/po/es.po | 469 +
external/gpl2/grep/dist/po/et.po | 395 +
external/gpl2/grep/dist/po/fr.po | 573 +
external/gpl2/grep/dist/po/gl.po | 436 +
external/gpl2/grep/dist/po/grep.pot | 333 +
external/gpl2/grep/dist/po/hr.po | 351 +
external/gpl2/grep/dist/po/id.po | 395 +
external/gpl2/grep/dist/po/it.po | 400 +
external/gpl2/grep/dist/po/ja.po | 404 +
external/gpl2/grep/dist/po/ko.po | 397 +
external/gpl2/grep/dist/po/nb.po | 353 +
external/gpl2/grep/dist/po/nl.po | 337 +
external/gpl2/grep/dist/po/no.po | 417 +
external/gpl2/grep/dist/po/pl.po | 408 +
external/gpl2/grep/dist/po/pt_BR.po | 367 +
external/gpl2/grep/dist/po/ru.po | 404 +
external/gpl2/grep/dist/po/sl.po | 444 +
external/gpl2/grep/dist/po/sv.po | 390 +
external/gpl2/grep/dist/po/tr.po | 396 +
external/gpl2/grep/dist/src/Makefile.am | 30 +
external/gpl2/grep/dist/src/Makefile.in | 391 +
external/gpl2/grep/dist/src/ansi2knr.1 | 38 +
external/gpl2/grep/dist/src/ansi2knr.c | 680 +
external/gpl2/grep/dist/src/dfa.c | 3585 ++++++++
external/gpl2/grep/dist/src/dfa.h | 434 +
external/gpl2/grep/dist/src/dosbuf.c | 183 +
external/gpl2/grep/dist/src/getpagesize.h | 48 +
external/gpl2/grep/dist/src/grep.c | 1744 ++++
external/gpl2/grep/dist/src/grep.h | 44 +
external/gpl2/grep/dist/src/grepmat.c | 8 +
external/gpl2/grep/dist/src/kwset.c | 773 +
external/gpl2/grep/dist/src/kwset.h | 59 +
external/gpl2/grep/dist/src/search.c | 726 +
external/gpl2/grep/dist/src/system.h | 208 +
external/gpl2/grep/dist/src/vms_fab.c | 88 +
external/gpl2/grep/dist/src/vms_fab.h | 35 +
162 files changed, 77336 insertions(+), 0 deletions(-)
diffs (truncated from 77984 to 300 lines):
diff -r ef233bb1b3cb -r 4a4ae4816ceb external/gpl2/grep/dist/ABOUT-NLS
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/gpl2/grep/dist/ABOUT-NLS Sun Jan 10 21:36:14 2016 +0000
@@ -0,0 +1,226 @@
+Notes on the Free Translation Project
+*************************************
+
+ Free software is going international! The Free Translation Project
+is a way to get maintainers of free software, translators, and users all
+together, so that will gradually become able to speak many languages.
+A few packages already provide translations for their messages.
+
+ If you found this `ABOUT-NLS' file inside a distribution, you may
+assume that the distributed package does use GNU `gettext' internally,
+itself available at your nearest GNU archive site. But you do *not*
+need to install GNU `gettext' prior to configuring, installing or using
+this package with messages translated.
+
+ Installers will find here some useful hints. These notes also
+explain how users should proceed for getting the programs to use the
+available translations. They tell how people wanting to contribute and
+work at translations should contact the appropriate team.
+
+ When reporting bugs in the `intl/' directory or bugs which may be
+related to internationalization, you should tell about the version of
+`gettext' which is used. The information can be found in the
+`intl/VERSION' file, in internationalized packages.
+
+One advise in advance
+=====================
+
+ If you want to exploit the full power of internationalization, you
+should configure it using
+
+ ./configure --with-included-gettext
+
+to force usage of internationalizing routines provided within this
+package, despite the existence of internationalizing capabilities in the
+operating system where this package is being installed. So far, only
+the `gettext' implementation in the GNU C library version 2 provides as
+many features (such as locale alias or message inheritance) as the
+implementation here. It is also not possible to offer this additional
+functionality on top of a `catgets' implementation. Future versions of
+GNU `gettext' will very likely convey even more functionality. So it
+might be a good idea to change to GNU `gettext' as soon as possible.
+
+ So you need not provide this option if you are using GNU libc 2 or
+you have installed a recent copy of the GNU gettext package with the
+included `libintl'.
+
+INSTALL Matters
+===============
+
+ Some packages are "localizable" when properly installed; the
+programs they contain can be made to speak your own native language.
+Most such packages use GNU `gettext'. Other packages have their own
+ways to internationalization, predating GNU `gettext'.
+
+ By default, this package will be installed to allow translation of
+messages. It will automatically detect whether the system provides
+usable `catgets' (if using this is selected by the installer) or
+`gettext' functions. If neither is available, the GNU `gettext' own
+library will be used. This library is wholly contained within this
+package, usually in the `intl/' subdirectory, so prior installation of
+the GNU `gettext' package is *not* required. Installers may use
+special options at configuration time for changing the default
+behaviour. The commands:
+
+ ./configure --with-included-gettext
+ ./configure --with-catgets
+ ./configure --disable-nls
+
+will respectively bypass any pre-existing `catgets' or `gettext' to use
+the internationalizing routines provided within this package, enable
+the use of the `catgets' functions (if found on the locale system), or
+else, *totally* disable translation of messages.
+
+ When you already have GNU `gettext' installed on your system and run
+configure without an option for your new package, `configure' will
+probably detect the previously built and installed `libintl.a' file and
+will decide to use this. This might be not what is desirable. You
+should use the more recent version of the GNU `gettext' library. I.e.
+if the file `intl/VERSION' shows that the library which comes with this
+package is more recent, you should use
+
+ ./configure --with-included-gettext
+
+to prevent auto-detection.
+
+ By default the configuration process will not test for the `catgets'
+function and therefore they will not be used. The reasons are already
+given above: the emulation on top of `catgets' cannot provide all the
+extensions provided by the GNU `gettext' library. If you nevertheless
+want to use the `catgets' functions use
+
+ ./configure --with-catgets
+
+to enable the test for `catgets' (this causes no harm if `catgets' is
+not available on your system). If you really select this option we
+would like to hear about the reasons because we cannot think of any
+good one ourself.
+
+ Internationalized packages have usually many `po/LL.po' files, where
+LL gives an ISO 639 two-letter code identifying the language. Unless
+translations have been forbidden at `configure' time by using the
+`--disable-nls' switch, all available translations are installed
+together with the package. However, the environment variable `LINGUAS'
+may be set, prior to configuration, to limit the installed set.
+`LINGUAS' should then contain a space separated list of two-letter
+codes, stating which languages are allowed.
+
+Using This Package
+==================
+
+ As a user, if your language has been installed for this package, you
+only have to set the `LANG' environment variable to the appropriate
+ISO 639 `LL' two-letter code prior to using the programs in the
+package. For example, let's suppose that you speak German. At the
+shell prompt, merely execute `setenv LANG de' (in `csh'),
+`export LANG; LANG=de' (in `sh') or `export LANG=de' (in `bash'). This
+can be done from your `.login' or `.profile' file, once and for all.
+
+ An operating system might already offer message localization for
+many of its programs, while other programs have been installed locally
+with the full capabilities of GNU `gettext'. Just using `gettext'
+extended syntax for `LANG' would break proper localization of already
+available operating system programs. In this case, users should set
+both `LANGUAGE' and `LANG' variables in their environment, as programs
+using GNU `gettext' give preference to `LANGUAGE'. For example, some
+Swedish users would rather read translations in German than English for
+when Swedish is not available. This is easily accomplished by setting
+`LANGUAGE' to `sv:de' while leaving `LANG' to `sv'.
+
+Translating Teams
+=================
+
+ For the Free Translation Project to be a success, we need interested
+people who like their own language and write it well, and who are also
+able to synergize with other translators speaking the same language.
+Each translation team has its own mailing list, courtesy of Linux
+International. You may reach your translation team at the address
+`LL%li.org@localhost', replacing LL by the two-letter ISO 639 code for your
+language. Language codes are *not* the same as the country codes given
+in ISO 3166. The following translation teams exist, as of December
+1997:
+
+ Chinese `zh', Czech `cs', Danish `da', Dutch `nl', English `en',
+ Esperanto `eo', Finnish `fi', French `fr', German `de', Hungarian
+ `hu', Irish `ga', Italian `it', Indonesian `id', Japanese `ja',
+ Korean `ko', Latin `la', Norwegian `no', Persian `fa', Polish
+ `pl', Portuguese `pt', Russian `ru', Slovenian `sl', Spanish `es',
+ Swedish `sv', and Turkish `tr'.
+
+For example, you may reach the Chinese translation team by writing to
+`zh%li.org@localhost'.
+
+ If you'd like to volunteer to *work* at translating messages, you
+should become a member of the translating team for your own language.
+The subscribing address is *not* the same as the list itself, it has
+`-request' appended. For example, speakers of Swedish can send a
+message to `sv-request%li.org@localhost', having this message body:
+
+ subscribe
+
+ Keep in mind that team members are expected to participate
+*actively* in translations, or at solving translational difficulties,
+rather than merely lurking around. If your team does not exist yet and
+you want to start one, or if you are unsure about what to do or how to
+get started, please write to `translation%iro.umontreal.ca@localhost' to reach the
+coordinator for all translator teams.
+
+ The English team is special. It works at improving and uniformizing
+the terminology in use. Proven linguistic skill are praised more than
+programming skill, here.
+
+Available Packages
+==================
+
+ Languages are not equally supported in all packages. The following
+matrix shows the current state of internationalization, as of December
+1997. The matrix shows, in regard of each package, for which languages
+PO files have been submitted to translation coordination.
+
+ Ready PO files cs da de en es fi fr it ja ko nl no pl pt ru sl sv
+ .----------------------------------------------------.
+ bash | [] [] [] | 3
+ bison | [] [] [] | 3
+ clisp | [] [] [] [] | 4
+ cpio | [] [] [] [] [] [] | 6
+ diffutils | [] [] [] [] [] | 5
+ enscript | [] [] [] [] [] [] | 6
+ fileutils | [] [] [] [] [] [] [] [] [] [] | 10
+ findutils | [] [] [] [] [] [] [] [] [] | 9
+ flex | [] [] [] [] | 4
+ gcal | [] [] [] [] [] | 5
+ gettext | [] [] [] [] [] [] [] [] [] [] [] | 12
+ grep | [] [] [] [] [] [] [] [] [] [] | 10
+ hello | [] [] [] [] [] [] [] [] [] [] [] | 11
+ id-utils | [] [] [] | 3
+ indent | [] [] [] [] [] | 5
+ libc | [] [] [] [] [] [] [] | 7
+ m4 | [] [] [] [] [] [] | 6
+ make | [] [] [] [] [] [] | 6
+ music | [] [] | 2
+ ptx | [] [] [] [] [] [] [] [] | 8
+ recode | [] [] [] [] [] [] [] [] [] | 9
+ sh-utils | [] [] [] [] [] [] [] [] | 8
+ sharutils | [] [] [] [] [] [] | 6
+ tar | [] [] [] [] [] [] [] [] [] [] [] | 11
+ texinfo | [] [] [] | 3
+ textutils | [] [] [] [] [] [] [] [] [] | 9
+ wdiff | [] [] [] [] [] [] [] [] | 8
+ `----------------------------------------------------'
+ 17 languages cs da de en es fi fr it ja ko nl no pl pt ru sl sv
+ 27 packages 6 4 25 1 18 1 26 2 1 12 20 9 19 7 4 7 17 179
+
+ Some counters in the preceding matrix are higher than the number of
+visible blocks let us expect. This is because a few extra PO files are
+used for implementing regional variants of languages, or language
+dialects.
+
+ For a PO file in the matrix above to be effective, the package to
+which it applies should also have been internationalized and
+distributed as such by its maintainer. There might be an observable
+lag between the mere existence a PO file and its wide availability in a
+distribution.
+
+ If December 1997 seems to be old, you may fetch a more recent copy
+of this `ABOUT-NLS' file on most GNU archive sites.
+
diff -r ef233bb1b3cb -r 4a4ae4816ceb external/gpl2/grep/dist/AUTHORS
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/gpl2/grep/dist/AUTHORS Sun Jan 10 21:36:14 2016 +0000
@@ -0,0 +1,46 @@
+Mike Haertel wrote the main program and the dfa and kwset matchers.
+
+Arthur David Olson contributed the heuristics for finding fixed substrings
+at the end of dfa.c.
+
+Richard Stallman and Karl Berry wrote the regex backtracking matcher.
+
+Henry Spencer wrote the original test suite from which grep's was derived.
+
+Scott Anderson invented the Khadafy test.
+
+David MacKenzie wrote the automatic configuration software use to
+produce the configure script.
+
+Authors of the replacements for standard library routines are identified
+in the corresponding source files.
+
+The idea of using Boyer-Moore type algorithms to quickly filter out
+non-matching text before calling the regexp matcher was originally due
+to James Woods. He also contributed some code to early versions of
+GNU grep.
+
+Mike Haertel would like to thank Andrew Hume for many fascinating discussions
+of string searching issues over the years. Hume & Sunday's excellent
+paper on fast string searching (AT&T Bell Laboratories CSTR #156)
+describes some of the history of the subject, as well as providing
+exhaustive performance analysis of various implementation alternatives.
+The inner loop of GNU grep is similar to Hume & Sunday's recommended
+"Tuned Boyer Moore" inner loop.
+
+More work was done on regex.[ch] by Ulrich Drepper and Arnold
+Robbins. Regex is now part of GNU C library, see this package
+for complete details and credits.
+
+Arnold Robbins contributed to improve dfa.[ch]. In fact
+it came straight from gawk-3.0.3 with small editing and fixes.
+
+Many folks contributed see THANKS, if I omited someone please
+send me email.
+
+Alain Magloire maintained GNU grep until version 2.5e.
+
+Bernhard "Bero" Rosenkränzer <bero%arklinux.org@localhost> maintained GNU grep until
+version 2.5.1, ie. from Sep 2001 till 2003.
+
+Stepan Kasal <kasal%ucw.cz@localhost> maintains GNU grep since Feb 2004.
diff -r ef233bb1b3cb -r 4a4ae4816ceb external/gpl2/grep/dist/COPYING
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/gpl2/grep/dist/COPYING Sun Jan 10 21:36:14 2016 +0000
@@ -0,0 +1,340 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+ 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.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
Home |
Main Index |
Thread Index |
Old Index