diff options
author | Alain Magloire <alainm@rcsm.ee.mcgill.ca> | 2001-02-16 05:50:23 +0000 |
---|---|---|
committer | Alain Magloire <alainm@rcsm.ee.mcgill.ca> | 2001-02-16 05:50:23 +0000 |
commit | 75c653a6cb097d23e799711436bcac6505729298 (patch) | |
tree | d52220fd1f96c9634b6bf8c16fb56fa35d8b6706 /m4 | |
parent | da71c4a53c626c6dd18bc0c43591cbe897e5608c (diff) | |
download | grep-75c653a6cb097d23e799711436bcac6505729298.tar.gz |
new options --include --exclude.
* djgpp/config.bat : Fix for 4dos.com.
* m4/dosfile.m4 (HAVE_DOS_FILE_CONTENTS) : Was not set.
Bugs noted and patched by Juan Manuel Guerrero.
A much requested feature, the possibility to select
files when doing recurse :
# find . -name "*.c" | xargs grep main {}
# grep --include=*.c main .
# find . -not -name "*.c" | xargs grep main {}
# grep --exclude=*.c main .
* src/grep.c (short_options): -R equivalent to -r.
(#ifdef) : Fix some inconsistencies in the use of #ifdefs, prefer
#if defined() wen possible.
(long_options) : Add --color, --include and exclude.
(Usage) : Description of new options.
(color) : Rename color variable to color_option.
Removed 'always|never|auto' arguments, not necessary for grep.
(exclude_pattern) : new variable, holder for the file pattern.
(include_pattern) : new variable, hoder for the file pattern.
* src/savedir.c : Signature change, take two new argmuments.
* doc/grep.texi : Document, new options.
* doc/grep.man : Document, new options.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/dosfile.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/dosfile.m4 b/m4/dosfile.m4 index 609d042d..d7341bb1 100644 --- a/m4/dosfile.m4 +++ b/m4/dosfile.m4 @@ -7,7 +7,7 @@ AC_DEFUN(AC_DOSFILE, [AC_CACHE_CHECK([for dos file convention], ac_cv_dosfile, [if test -d ".\."; then ac_cv_dosfile=yes - AC_DEFINE(HAVE_DOS_FILE_CONTENTS, , [Define if text file lines end in CRLF.]) + AC_DEFINE(HAVE_DOS_FILE_CONTENTS, 1, [Define if text file lines end in CRLF.]) AC_DEFINE(HAVE_DOS_FILE_NAMES) else ac_cv_dosfile=no |