summaryrefslogtreecommitdiff
path: root/cfg.mk
Commit message (Collapse)AuthorAgeFilesLines
* maint: sort test names in tests/Makefile.am and add syntax-check ruleJim Meyering2015-04-261-0/+6
| | | | | * cfg.mk (sc_sorted_tests): New rule. * tests/Makefile.am (TESTS): Alphabetize.
* maint: update copyright year ranges to include 2015Jim Meyering2015-01-011-1/+1
| | | | | Run "make update-copyright". Also, ... * grep.texi: Update manually, converting each "--" to "-".
* dfa: avoid invalid match or infinite loop in unused matching modeNorihiro Tanaka2014-12-061-1/+5
| | | | | | | | | | | | | | | | | | | | | | Neither grep nor gawk uses this DFA code in its matching mode, since each always calls dfacomp with a nonzero final argument. However, when used in that mode, it had bug: After failing to match in matching mode, it should return NULL, but instead would either report a false match or enter an infinite loop. * src/dfa.c (dfaexec_main): After failing to match in matching mode return NULL, rather than transitioning to the next state. * tests/dfa-match: Add a new test. * tests/dfa-match-aux.c: Add a new program to exercise this otherwise-unused part of dfa.c. * tests/Makefile.am: Add a rule to build new test. (check_PROGRAMS): Add dfa-match-aux. (AM_CPPFLAGS): Add -I$(top_srcdir)/src. (TESTS): Add dfa-match. * cfg.mk (exclude_file_name_regexp--sc_bindtextdomain): (exclude_file_name_regexp--sc_prohibit_atoi_atof): Exempt the new test file from some syntax-check rules.
* maint: post-release administriviaJim Meyering2014-11-231-1/+1
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* grep: avoid false alarms for mb_clen and to_ucharPaul Eggert2014-09-161-0/+4
| | | | | * cfg.mk (_gl_TS_unmarked_extern_functions): New var, to bypass the tight_scope false alarms on mb_clen and to_uchar.
* maint: split long lines, and enforce the 80-column limitJim Meyering2014-06-271-0/+21
| | | | | | | | | | | | | | * cfg.mk (sc_long_lines): New rule, from coreutils; exempt tests/* * src/grep.c (usage): Tweak -F wording to shorten a line. Correct grammar in a comment. Split the --exclude-file=... description to fit within 80 columns. Use emit_bug_reporting_address, eliminating another long line. * src/dfa.c: Split long lines. No semantic change. * doc/grep.texi: Likewise. * tests/include-exclude: Split a long line. * tests/backref: Split long lines. * tests/empty: Likewise. * tests/fmbtest: Likewise.
* maint: generate distributed THANKS from VC'd THANKS.inJim Meyering2014-06-271-0/+13
| | | | | | | | | | | | * 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.
* maint: post-release administriviaJim Meyering2014-06-031-1/+1
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* maint: post-release administriviaJim Meyering2014-05-221-1/+1
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* maint: avoid new false-positive syntax-check failureJim Meyering2014-05-211-0/+2
| | | | | * cfg.mk (exclude_file_name_regexp--sc_prohibit_doubled_word): Exempt new test file that contains legitimate use of "in in".
* maint: remove differences from gnulib regex codePaul Eggert2014-03-051-2/+1
| | | | | | | | | | | | These don't seem to be needed with GCC 4.8.2, and are making maintenance harder. If we need to disable warnings with older compilers, we can add pragmas to the gnulib versions. See <http://bugs.gnu.org/16911#24>. * gl/lib/regcomp.c.diff, gl/lib/regex_internal.c.diff: * gl/lib/regex_internal.h.diff, gl/lib/regexec.c.diff: Remove. * cfg.mk (exclude_file_name_regexp--sc_prohibit_tab_based_indentation): Don't mention gl/* files.
* maint: post-release administriviaJim Meyering2014-02-201-1/+1
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* maint: post-release administriviaJim Meyering2014-02-171-1/+1
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* maint: post-release administriviaJim Meyering2014-01-011-1/+1
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* maint: update copyright dates for 2014Jim Meyering2014-01-011-1/+1
| | | | Do that by running "make update-copyright".
* maint: post-release administriviaJim Meyering2013-10-261-1/+1
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* maint: change all references: s/POSIX\.2/POSIX/Jim Meyering2013-09-301-1/+1
| | | | | | | | | | | | | There is no longer any point in referring to POSIX.N. POSIX is sufficient. * doc/grep.in.1: As above. * src/main.c (main): Likewise. * tests/file: Likewise. * tests/options: Likewise. * ChangeLog: Likewise. * NEWS: Likewise. * cfg.mk: Update, to match changed NEWS. Inspired by Glenn Golden's suggestion in http://bugs.gnu.org/15486
* * cfg.mk (old_NEWS_hash): Update.Paul Eggert2013-04-181-1/+1
|
* maint: update all copyright year number rangesJim Meyering2013-01-041-1/+1
| | | | Run "make update-copyright".
* maint: post-release administriviaJim Meyering2012-08-201-1/+1
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* maint: post-release administriviaJim Meyering2012-07-041-1/+1
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* build: update gnulib submodule, bootstrap and init.shJim Meyering2012-06-031-0/+1
| | | | cfg.mk: Exempt dfa.c from the new no-strncpy test, for now.
* maint: quote 'like this' or "like this", not `like this'Paul Eggert2012-05-061-2/+2
| | | | | | | | | | | | | | | | See <http://lists.gnu.org/archive/html/bug-grep/2012-01/msg00125.html>. * ChangeLog-2009, HACKING, NEWS, README-hacking, cfg.mk, configure.ac: * lib/colorize-w32.c, m4/pcre.m4: * src/Makefile.am, src/dfa.c, src/dosbuf.c, src/main.c: * tests/backref, tests/help-version, tests/tests: In commentary, quote 'like this' or "like this" rather than `like this' or ``like this''. * cfg.mk (old_NEWS_hash): Update due to changed old NEWS. * doc/grep.texi (General Output Control): Quote sample text with @samp, not with `...'. * src/main.c (usage): * tests/help-version: Quote 'like this' rather than `like this' in diagnostics.
* maint: post-release administriviaJim Meyering2012-04-231-1/+1
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* grep: report overflow for ERE a{1000000000}Paul Eggert2012-03-181-0/+1
| | | | | | | | | | | | | | | | | | * NEWS: Document this. * src/dfa.c (MIN): New macro. (lex): Lexically analyze the repeat-count operator once, not twice; the double-scan complicated the code and made it harder to understand and fix. Adjust the repeat-count parsing so that it better matches the behavior of the regex code, in three ways: 1. Diagnose too-large repeat counts rather than treating them as literal characters. 2. Use RE_INVALID_INTERVAL_ORD, not RE_NO_BK_BRACES, to decide whether to treat invalid-syntax {...}s as literals. 3. Use the same wording for {...}-related diagnostics that the regex code uses. * tests/bre.tests, tests/ere.tests, tests/repetition-overflow: Adjust to match new behavior, and add a few tests. * cfg.mk (exclude_file_name_regexp--sc_error_message_uppercase): New macro, since the diagnostics start with uppercase letters.
* maint: use an optimal-for-grep xz compression settingJim Meyering2012-03-031-0/+20
| | | | | | | | * cfg.mk (XZ_OPT): Use -6e (determined empirically, see comments). This sacrifices a meager 60 bytes of compressed tarball size for a 55-MiB decrease in the memory required during decompression. I.e., using -9e would shave off only 60 bytes from the tar.xz file, yet would force every decompression process to use 55 MiB more memory.
* maint: post-release administriviaJim Meyering2012-03-021-1/+1
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* maint: spelling fixesPaul Eggert2012-03-011-1/+1
|
* remove lib/ms/Paolo Bonzini2012-01-031-3/+1
| | | | | | | | | | * 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.
* maint: update all copyright year number rangesJim Meyering2012-01-011-1/+1
| | | | Run "make update-copyright".
* ms: move Microsoft-specific stuff to lib/msPaul Eggert2011-12-311-0/+3
| | | | | | | | | | | | | | | | | | | | | | | * cfg.mk (exclude_file_name_regexp--sc_prohibit_strcmp) (exclude_file_name_regexp--sc_require_config_h) (exclude_file_name_regexp--sc_require_config_h_first): New rules. * lib/colorize.c, lib/colorize.h, lib/colorize-impl.c: * lib/ms/colorize.h, lib/ms/colorize-impl.c: New files. * configure.ac (GREP_SRC_INCLUDES): New macro. * lib/Makefile.am (libgreputils_a_SOURCES): Add colorize.[ch]. (EXTRA_DIST): New macro. * src/Makefile.am (DEFAULT_INCLUDES): New macro. * src/main.c: Include colorize.h. (PR_SGR_START, PR_SGR_END, PR_SGR_START_IF, PR_SGR_END_IF): Now static functions, not macros. (hstdout, norm_attr, w32_console_init, w32_sgr2attr) (w32_clreol) [__MINGW32__]: Move to lib/ms/colorize-impl.c. (pr_sgr_start, pr_sgr_end): Remove; callers changed to use new print_start_colorize, print_end_colorize from colorize.h. (init_colorize): Rename from w32_console_init and move to colorize module; caller changed. (should_colorize): Move to colorize module.
* avoid new syntax-check failuresJim Meyering2011-12-281-1/+1
| | | | | | * cfg.mk (old_NEWS_hash): Update, to accommodate old NEWS modification. * src/main.c: Indent solely with spaces, never with TABs. (should_colorize): Remove useless parens in #if directive.
* maint: post-release administriviaJim Meyering2011-11-161-1/+1
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* maint: adjust the URL that will appear in the generated announcementJim Meyering2011-11-101-0/+4
| | | | | | * cfg.mk (url_dir_list): Use this http://ftp.gnu.org/gnu/$(PACKAGE) for the first link listed in the generated announcement. announce-gen now provides the faster mirror link automatically.
* post-release administriviaJim Meyering2011-06-211-1/+1
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* post-release administriviaJim Meyering2011-05-131-1/+1
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* maint: remove syntax-checking sc_tight_scope ruleJim Meyering2011-05-131-4/+0
| | | | | | * src/Makefile.am (sc_tight_scope): Remove rule. Now it's provided via gnulib's maint.mk. * cfg.mk (sc_tight_scope): Likewise.
* maint: add the tight_scope syntax-checking ruleJim Meyering2011-04-281-0/+4
| | | | | | | This ensures that the only externally scoped symbols are ones that are explicitly marked as "extern" or white-listed like "main". * src/Makefile.am (sc_tight_scope): New rule, copied from coreutils. * cfg.mk (sc_tight_scope): Define, to hook to it from the top level.
* maint: stop using .x-sc_* files to list syntax-check exemptionsJim Meyering2011-03-191-0/+6
| | | | | | | | | | | | Instead, use the new mechanism with which you merely use a variable (derived from the rule name) defined in cfg.mk to an ERE matching the exempted file names. * gnulib: Update to latest, to get maint.mk that implements this. * .x-sc_bindtextdomain: Remove file. * .x-sc_prohibit_tab_based_indentation: Likewise. * .x-sc_prohibit_xalloc_without_use: Likewise. * .x-sc_space_tab: Likewise. * cfg.mk: Define variables to exempt the same files.
* maint: update copyright year ranges to include 2011Jim Meyering2011-01-031-1/+1
| | | | Run "make update-copyright", so "make syntax-check" works in 2011.
* maint: don't define a gpg_key_ID. now it's obtained automaticallyJim Meyering2010-09-301-3/+0
| | | | * cfg.mk (gpg_key_ID): Remove definition. No longer needed.
* post-release administriviaJim Meyering2010-09-161-1/+1
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* maint: add syntax-check rule to enforce the new no-leading-TABs policyJim Meyering2010-04-081-1/+13
| | | | | | | * cfg.mk (sc_prohibit_tab_based_indentation): New rule, from coreutils. (sc_prohibit_emacs__indent_tabs_mode__setting): Likewise. (old_NEWS_hash): Update. * .x-sc_prohibit_tab_based_indentation: List exempt files.
* maint: update cfg.mk to work with gnulib's newer "make syntax-check"Jim Meyering2010-04-051-3/+3
| | | | | | | * cfg.mk: Update to use new _sc_search_regexp interface. Run this: perl -pi -e 's/\b_prohibit_regexp\b/_sc_search_regexp/;' -e 's/\bmsg=/halt=/; s/\bre=/prohibit=/;' cfg.mk and then adjust backslashes so they still line up.
* maint: use STREQ in place of strcmpJim Meyering2010-04-021-1/+0
| | | | | | | | | | | perl -pi -e 's/\bstrcmp *\((.*?)\) == 0/STREQ ($1)/' src/main.c perl -pi -e 's/\bstrcmp *\((.*?)\) != 0/!STREQ ($1)/' src/main.c * src/dfa.c (STREQ): Define. Use it instead of strcmp. * src/main.c (STREQ): Likewise. * cfg.mk (local-checks-to-skip): Remove sc_prohibit_strcmp, to enable the strcmp-prohibition.
* maint: enable the useless_cpp_parens syntax checkJim Meyering2010-04-021-2/+1
| | | | | | | | | * cfg.mk (local-checks-to-skip): Remove sc_useless_cpp_parens. * src/main.c (devices, fillbuf, exit_on_match): Remove useless parens. (print_line_head, grepfile, set_limits, main): Likewise. * src/vms_fab.h: Likewise. * vms/config_vms.h: Likewise. * src/mbsupport.h: Likewise.
* post-release administriviaJim Meyering2010-04-021-1/+1
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* tests: remove all unportable uses of echoJim Meyering2010-04-011-0/+5
| | | | | | | * src/main.c: Use printf rather than echo -ne in a comment. * tests/fedora: Use printf (not echo) also in ok/fail functions. * cfg.mk (sc_prohibit_echo_minus_en): New rule, to prohibit any future introduction.
* post-release administriviaJim Meyering2010-03-291-1/+1
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* tests: disable new texinfo-acronym syntax-check from gnulibJim Meyering2010-03-291-0/+1
| | | | * cfg.mk (local-checks-to-skip): Add new sc_texinfo_acronym, to skip it.