summaryrefslogtreecommitdiff
path: root/cfg.mk
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* doc: correct and amend NEWS entries for 2.6.1Jim Meyering2010-03-251-1/+1
| | | | | | | * NEWS (Bug fixes): Correct character ranges bug description. Add an example from Dmitry V. Levin. Add that the word-with-backref bug was introduced in 2.5.1. * cfg.mk (old_NEWS_hash): Update to match.
* post-release administriviaJim Meyering2010-03-251-1/+1
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* post-release administriviaJim Meyering2010-03-231-1/+1
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* syntax-check: enable space-tabPaolo Bonzini2010-03-121-1/+0
| | | | | | * cfg.mk (local-checks-to-skip): Enable space-tab. * .x-sc_space_tab: Add exceptions. * tests/status.sh: Fix occurrence.
* syntax-check: enable m4-quote-checkPaolo Bonzini2010-03-121-1/+0
| | | | | * cfg.mk (local-checks-to-skip): Enable m4-quote-check. * configure.ac: Fix occurrence.
* syntax-check: enable makefile-TAB-only-indentationPaolo Bonzini2010-03-121-1/+0
| | | | | * cfg.mk (local-checks-to-skip): Enable makefile-TAB-only-indentation. * Makefile.am: Fix only occurrence.
* grep: fix error-message-uppercasePaolo Bonzini2010-03-121-1/+0
| | | | | | * cfg.mk (local-checks-to-skip): Enable error-message-uppercase. * src/dfa.c (parse_bracket_exp_mb, lex, dfaparse): Fix occurrences. * src/search.c (Pcompile, Pexecute): Fix occurrences.
* dfa, grep: cleanup if-before-free and cast-of-argument-to-freePaolo Bonzini2010-03-121-1/+0
| | | | | | | | | | | | | * .x-sc_avoid_if_before_free: Remove. * .x-sc_cast_of_alloca_return_value: Remove. * .x-sc_cast_of_x_alloc_return_value: Remove. * .x-sc_cast_of_argument_to_free: Temporarily add src/search.c. * cfg.mk (local-checks-to-skip): Remove sc_cast_of_argument_to_free. * src/dfa.c (ifree): Remove. (dfamust, build_state, transit_state, dfafree): Do not do if-before-free, do not cast free argument to ptr_t or char *. (freelist): Call free instead of ifree. * src/dfa.h (ptr_t): Remove.
* maint: enable the prohibit_magic_number_exit syntax checkJim Meyering2010-02-071-1/+0
| | | | | | | | | | * cfg.mk (local-checks-to-skip): Remove sc_prohibit_magic_number_exit, to enable that check. * src/system.h (EXIT_TROUBLE): Define. * src/grep.c: Use symbolic names, EXIT_SUCCESS, EXIT_FAILURE, and EXIT_TROUBLE, not 0, 1, 2. * src/search.c: Likewise. * src/vms_fab.c (string): Likewise.
* maint: update to latest gnulib; adjust cfg.mkJim Meyering2010-01-281-1/+1
| | | | | * gnulib: Update submodule to latest. * cfg.mk (old_NEWS_hash): Update to reflect NEWS Copyright line change.
* maint: avoid old jm_* macrosJim Meyering2010-01-061-0/+8
| | | | | There were jm_* macros here, until very recently. * cfg.mk (sc_prohibit_jm_in_m4): New rule, from coreutils.
* maint: record update-copyright options for this packageJim Meyering2010-01-031-0/+4
| | | | * cfg.mk: Next time, just run "make update-copyright".
* maint: update all FSF copyright year lists to include 2010Jim Meyering2010-01-011-1/+1
| | | | | | Use this command: git ls-files |grep -vE '^(\..*|COPYING|gnulib)$' |xargs \ env UPDATE_COPYRIGHT_USE_INTERVALS=1 build-aux/update-copyright
* maint: enable prohibit_have_config_h checkJim Meyering2009-12-041-1/+0
| | | | | | | | | * cfg.mk (local-checks-to-skip): Enable sc_prohibit_have_config_h * lib/regex.c: Remove useless cpp test of HAVE_CONFIG_H. * lib/savedir.c: Likewise. * src/grep.c: Likewise. * src/kwset.c: Likewise. * src/search.c: Likewise.
* maint: enable cast_of_x_alloc_return_value checkJim Meyering2009-12-041-1/+0
| | | | | | | | * cfg.mk (local-checks-to-skip): Enable sc_cast_of_x_alloc_return_value. * .x-sc_cast_of_x_alloc_return_value: * src/dfa.c (CALLOC, MALLOC, REALLOC): Remove casts. * src/dosbuf.c (undossify_input): Likewise. * src/grep.c (print_line_middle, prepend_default_options): Likewise.
* maint: enable cast_of_alloca_return_value checkJim Meyering2009-12-041-1/+0
| | | | | * cfg.mk (local-checks-to-skip): Enable sc_cast_of_alloca_return_value. * .x-sc_cast_of_alloca_return_value: New file.
* maint: enable useless-if-before-free checkJim Meyering2009-12-041-1/+0
| | | | | | | | * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free. * .x-sc_avoid_if_before_free: New file. Exempt regex.c and dfa.c, in case anyone ever tries to merge their contents with other versions. * src/grep.c (print_line_middle, grepdir): Remove useless if-before-free. * src/search.c (IF_BK, EXECUTE_FCT): Likewise.
* maint: enable po-checkJim Meyering2009-12-041-1/+0
| | | | | * cfg.mk (local-checks-to-skip): Enable sc_po_check. * po/POTFILES.in: Sort and update.
* maint: enable two checksJim Meyering2009-11-301-2/+0
| | | | | | | | * cfg.mk (local-checks-to-skip): Enable two: sc_prohibit_xalloc_without_use sc_two_space_separator_in_usage * src/grep.c (usage): Conform: use two spaces, not 1. * src/kwset.c (malloc): Define as a function-macro so that the syntax-check rule sees that we are indeed using xmalloc here.
* maint: enable makefile_path_separator checkJim Meyering2009-11-301-1/+0
| | | | | * cfg.mk (local-checks-to-skip): Enable sc_makefile_path_separator_check, now that the sole offender, an old po/Makefile.in.in, is gone.
* maint: enable makefile @...@ checkJim Meyering2009-11-301-1/+0
| | | | | | | | * cfg.mk (local-checks-to-skip): Enable sc_makefile_check. * lib/Makefile.am (libgreputils_a_LIBADD): Use $(...), rather than anachronistic @...@ notation. * src/Makefile.am (LDADD): Likewise. * tests/Makefile.am (AWK): Remove definition.
* maint: enable trailing_blank checkJim Meyering2009-11-301-1/+0
| | | | | | | | | | | | | | | | | | | * cfg.mk (local-checks-to-skip): Enable sc_trailing_blank. * AUTHORS: Remove trailing blanks. * COPYING: Likewise. * README: Likewise. * README-alpha: Likewise. * README-boot: Likewise. * THANKS: Likewise. * TODO: Likewise. * src/dfa.c: Likewise. * src/mbsupport.h: Likewise. * tests/backref.sh: Likewise. * tests/file.sh: Likewise. * tests/options.sh: Likewise. * tests/tests: Likewise. * vms/README: Likewise. * vms/make.com: Likewise.
* maint: enable unmarked_diagnostics checkJim Meyering2009-11-301-1/+0
| | | | | | * cfg.mk (local-checks-to-skip): Enable sc_unmarked_diagnostics * src/grep.c (fillbuf): Mark a diagnostic for translation. (reset): Likewise.
* maint: enable require_config_h checksJim Meyering2009-11-301-2/+0
| | | | | | | | | * cfg.mk (local-checks-to-skip): Enable sc_require_config_h and sc_require_config_h_first. * src/dosbuf.c: Include <config.h>. * src/vms_fab.c: Likewise. * .x-sc_require_config_h: New file: list the exceptions. * .x-sc_require_config_h_first: Likewise.
* maint: use gnulib's progname module; enable set_program_name checkJim Meyering2009-11-301-1/+0
| | | | | | | | * bootstrap.conf (gnulib_modules): Add progname. * src/grep.c: Include "progname.h". (program_name): Remove declaration. (main): Call set_program_name. * cfg.mk (local-checks-to-skip): Add sc_program_name.
* maint: enable "file system" checkJim Meyering2009-11-301-1/+0
| | | | | * cfg.mk (local-checks-to-skip): Enable sc_file_system. * lib/savedir.c (savedir): Tweak spelling. Remove trailing blanks.
* maint: enable immutable_NEWS checkJim Meyering2009-11-301-2/+1
| | | | | | | | * NEWS: Move copyright to the bottom. Use the format required by release-related tools. * .prev-version: New file. * cfg.mk (old_NEWS_hash): Define. (local-checks-to-skip): Enable check: sc_immutable_NEWS.
* maint: disable the many failing syntax-checksJim Meyering2009-11-301-0/+56
* cfg.mk: New file. (local-checks-to-skip): Define to the list of disabled rules. Subsequent change-sets will enable them, one by one.