27 Commits

Author SHA1 Message Date
Collin Funk
3612f5e218 maint: import tests/init.sh from Gnulib during bootstrap
* bootstrap.conf (bootstrap_post_import_hook): Use gnulib-tool
--copy-file to import tests/init.sh.
* tests/init.sh: Remove file.
* .gitignore (/tests/init.sh): Add entry.
2024-07-04 12:54:56 -07:00
Mark Veltzer
f6bc2e4ba5 ignore coverage generated files 2016-10-22 18:37:01 +03:00
Jim Meyering
775b724c36 maint: generate distributed THANKS from VC'd THANKS.in
* Makefile.am (THANKS): New rule.
* THANKS.in: New file.
* THANKS: Remove.  Now it's generated from the combination of
THANKS.in and git logs.
* .mailmap: New file.
* cfg.mk (sc_THANKS_in_duplicates): New syntax-check rule, from
coreutils.
* .gitignore: Add THANKS.
* thanks-gen: New file, from coreutils.
2014-06-27 13:01:36 -07:00
Mike Frysinger
825ab8547c maint: ignore configure.lineno
* .gitignore: Add configure.lineno.
2014-02-16 20:41:55 -08:00
Paul Eggert
c6e3ea61d9 grep: -r no longer follows symlinks; use fts
Change -r to follow only command-line symlinks, and by default to
read only devices named on the command line.  This is a simple
way to get a more-useful behavior when searching random
directories; the idea is to use 'find' if you want something fancy.
-R acts as before and gets a new alias --dereference-recursive.
The code now uses fts internally, so it is more robust and
faster with large hierarchies.
* .gitignore: Remove lib/savedir.c, lib/savedir.h.
* tests/symlink: New file
* Makefile.boot (LIB_OBJS_core): Remove isdir.o, savedir.o.
Perhaps other changes are needed too, but I'm not sure what
this makefile is for.
* NEWS: Document changes.
* doc/grep.texi (File and Directory Selection): Likewise.
* bootstrap.conf (gnulib_modules): Remove dirent, dirname, isdir, open.
Add fstatat, fts, openat-safer.
* lib/Makefile.am (libgreputils_a_SOURCES): Remove savedir.c, savedir.h.
* lib/savedir.c, lib/savedir.h: Remove.
* po/POTFILES.in: Add lib/openat-die.c.
* src/main.c: Include fcntl-safer.h, fts_.h.  Don't include
isdir.h, savedir.h.
(struct stats, stats_base): Remove.
(long_options, usage, main): Add --dereference-recursive and
implement -r vs -R.
(filename_prefix_len, fts_options): New static vars.
(basic_fts_options, READ_COMMAND_LINE_DEVICES): New constants.
(devices): Now defaults to READ_COMMAND_LINE_DEVICES.
(reset, grep): Now takes just struct stat rather than file name and
struct stats.  All callers changed.
(fillbuf): Now takes struct stat reather than struct stats.
All callers changed.
(grep): Don't worry about recursing too deeply; fts and grepdesc
handle this now.
(is_device_mode, grepdirent, grepdesc, grep_command_line_args):
New functions.
(grepfile): New args DIRDESC, FOLLOW, COMMAND_LINE.  Remove struct stats
arg.  All callers changed.  Use openat_safer rather than open.
Use desc == STDIN_FILENO to tell whether we're reading "-".
Don't worry about EINTR when closing -- not possible, since we're
not catching signals.
* tests/Makefile.am (TESTS): Add symlink.
* tests/symlink: New file.
2012-03-14 22:28:27 -07:00
Paolo Bonzini
a00ff6423c remove lib/ms/
* configure.ac: Create lib/colorize.c as a symbolic link.
* lib/colorize-posix.c: New name of lib/colorize-impl.c.
* lib/colorize-w32.c: New name of lib/ms/colorize-impl.c.
* lib/colorize.c: Delete.
* lib/Makefile.am (EXTRA_DIST): Adjust.
* .gitignore: Adjust.
* cfg.mk: Adjust syntax-check exclusions.
2012-01-03 09:25:59 +01:00
Paul Eggert
209bae502a maint: remove now-unused/obsolete files
* README.DOS: Remove file.
* m4/djgpp.m4: Likewise.
* .gitignore: Remove reference to m4/djgpp.m4.
2011-12-28 22:24:03 +01:00
Jim Meyering
fb205d2ab4 build: update gnulib submodule to latest
This should fix a few portability problems, including one on HP-UX
and a test-float failure on PPC, reported by Andreas Metzler.
2011-10-12 19:28:41 +02:00
Stefano Lattarini
88b29e577f gitignore: merge top-level and tests/ .gitignore files
* tests/.gitignore: Remove; what little remained of its
contents has been moved ...
* .gitignore: ... here.
2011-10-10 14:41:35 +02:00
Stefano Lattarini
5db565f668 tests: support development version of automake too
This change implements a more correct and idiomatic use of the
features of the Automake-provided 'parallel-tests' harness.
Moreover, this change is required in order for the testsuite to
continue to work with the new testsuite harness that is planned
to be introduced in Automake 1.12 (which, as of the writing date,
is still under development and in late alpha state).

* tests/Makefile.am (TESTS_ENVIRONMENT): The development version of
automake dos not support setting the interpreter delegated to run
the tests scripts in this variable; instead, use ...
(LOG_COMPILER): ... this variable.
* .gitignore: Ignore `.trs' files in directory `tests/'.
* build-aux/.gitignore: Ignore `test-driver' script.
2011-10-10 14:41:16 +02:00
Jim Meyering
63fe2825aa maint: update bootstrap from gnulib
* bootstrap: Update to latest, so it no longer inserts empty lines
in .gitignore files.
* .gitignore: Let bootstrap move "!..." lines to end of file.
2011-06-22 08:39:44 +02:00
Jim Meyering
ed23dd209b maint: use gnulib's new readme-release module
* bootstrap.conf (gnulib_modules): Add readme-release.
(bootstrap_epilogue): Add the recommended perl one-liner.
* README-release: Remove file; it is now generated from gnulib.
* .gitignore: Add it.
* gnulib: Update submodule to latest.
2011-05-07 16:22:28 +02:00
Jim Meyering
488112fc96 maint: tell git to ignore more build products
* .gitignore: Also ignore results of "make ID" and "make tags".
2010-04-07 14:15:49 +02:00
Jim Meyering
bc935b3574 doc: generate grep.1 from template
* doc/Makefile.am (grep.1): New rule.
(CLEANFILES): Add grep.1 to the list.
* .gitignore: Add /doc/grep.1
* doc/grep.in.1: Replace hard-coded "2.5.1-cvs" with @VERSION@.
Update copyright year list.
Omit the line-splitting \(co directive so that update-copyright
will perform future updates automatically.
Egmont Koblinger reported the outdated version string
and copyright year list in the man page:
http://savannah.gnu.org/bugs/?29390
2010-04-01 09:36:57 +02:00
Eric Blake
74902d9375 maint: ignore new test executable
* .gitignore: Enhance.
2010-03-29 11:31:59 -06:00
Eric Blake
188f1aa43e maint: ignore 'make dist pdf' droppings
* .gitignore: Add more exemptions.
2010-03-26 07:43:44 +01:00
Eric Blake
07505db6b9 build: allow compilation on cygwin
Gnulib is incompatible with -Wunused-macros.  Addtionally,
cygwin 1.7.1 coupled with --enable-gcc-warnings tripped on:

grep.c: In function 'print_line_middle':
grep.c:805: error: array subscript has type 'char' [-Wchar-subscripts]
grep.c: In function 'main':
grep.c:1833: error: 'optarg' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
grep.c:1834: error: 'optind' redeclared without dllimport attribute after being referenced with dll linkage

* configure.ac (GNULIB_WARN_FLAGS): Disable -Wunused-macros.
* src/grep.c (print_line_middle): Use correct type to tolower.
(main): Drop useless redeclarations.
* .gitignore: Ignore more built files.

Signed-off-by: Eric Blake <eblake@redhat.com>
2010-03-20 07:26:18 -06:00
Jim Meyering
876e90a53e maint: remove {m4,lib}/.gitignore; they were undergoing too much churn
* .gitignore: Ignore all of m4/* except m4/djgpp.m4
and all of lib/* except Makefile.am, savedir.c and savedir.h.
* m4/.gitignore: Remove file.
* lib/.gitignore: Remove file.
2010-01-06 10:34:26 +01:00
Jim Meyering
bdce2ecb29 maint: make .gitignore ignore more
* .gitignore: Ignore more.
2009-12-04 09:20:39 +01:00
Jim Meyering
ee55c663be build: add several build- and release-related gnulib modules
* bootstrap.conf (gnulib_modules): Add announce-gen update-copyright
do-release-commit-and-tag git-version-gen gnu-web-doc-update
gnupload maintainer-makefile useless-if-before-free
2009-11-30 16:55:04 +01:00
Jim Meyering
baea70f27f maint: generate ChangeLog from git logs
* Makefile.am (dist-hook, gen-ChangeLog): New rules.
* bootstrap.conf (gnulib_modules): Add gitlog-to-changelog.
Ensure that ChangeLog exists.
* ChangeLog-2009: Rename from ChangeLog
* ChangeLog: Remove file.
* .gitignore: Add ChangeLog.
2009-11-30 16:54:58 +01:00
Paolo Bonzini
171fadd3f8 add gnulib
* bootstrap: Use gnulib's build-aux/bootstrap.
* configure.ac: Add gl_INIT and gl_EARLY.
2009-11-26 18:47:42 +01:00
Paolo Bonzini
b83689b71f remove more gettext-provided m4 files
* m4/largefile.m4: Remove.
* m4/lib-ld.m4: Remove.
* m4/lib-prefix.m4: Remove.
* m4/missing.m4: Remove.
* m4/nls.m4: Remove.
* m4/progtest.m4: Remove.
2009-11-20 23:38:44 +01:00
Paolo Bonzini
5131ea8ee6 run autopoint and fetch po files from the bootstrap script
* bootstrap: Add autopoint invocation and fetching of .po files.
* configure.ac: Bump to GNU gettext 0.17.

* ABOUT-NLS: Remove.
* m4/gettext.m4: Remove.
* m4/iconv.m4: Remove.
* m4/lib-link.m4: Remove.
* m4/po.m4: Remove.
* po/*.po: Remove.
2009-11-20 23:29:05 +01:00
Paolo Bonzini
9ee0c5279f fix last `make distcheck' failure
* configure.ac.in: Remove pointless (?) stamp-h rule.
2009-11-20 22:52:21 +01:00
Paolo Bonzini
47f36af857 start modernizing autoconf infrastructure
* configure.ac: Slightly modernize.
* Makefile.am: Modernize, use dependencies.
* Makefile.am: Modernize, use dependencies.
* lib/Makefile.am: Remove ansi2knr.
* src/Makefile.am: Remove ansi2knr.

* .gitignore: Add INSTALL
* build-aux/.gitignore: New.
2009-11-20 17:48:15 +01:00
Paolo Bonzini
7730872b87 move .cvsignore files to .gitignore 2009-11-20 17:14:41 +01:00