summaryrefslogtreecommitdiff
path: root/Makefile.maint
AgeCommit message (Collapse)Author
2008-03-20Sync GNUmakefile with gnulib.Eric Blake
* GNUmakefile (Makefile.cfg): Rename... (cfg.mk): ...to this, and make optional. (GNUmakefile.cfg): Delete, redundant with cfg.mk. (Makefile.maint): Rename... (maint.mk): ...to this. (all) [!_have-Makefile]: Rename... (abort-due-to-no-makefile): ...to this, and invoke via .DEFAULT_GOAL to pick up all targets. * Makefile.cfg: Rename... * cfg.mk: ...to this. * Makefile.maint: Rename... * maint.mk ...to this. (ME): Reflect rename. (makefile-check, m4-check, author_mark_check, msg): Use $(ME) rather than hard-coded name. * Makefile.am (EXTRA_DIST): Distribute renamed files. * .x-sc_file_system: Remove Makefile.maint along with others. No longer needed. * .x-sc_obsolete_symbols: Likewise. * .x-sc_prohibit_atoi_atof: Reflect renaming and remove no-longer-VC'd names. * TODO: Likewise. Signed-off-by: Eric Blake <ebb9@byu.net>
2008-03-19Check for -- and remove -- some unnecessarily included header files.Jim Meyering
* Makefile.maint: Add checks for a handful of additional header files. * src/mktemp.c: Don't include "long-options.h". Not used. * src/pr.c: Don't include "inttostr.h". Not used. * src/printenv.c: Don't include "error.h". Not used. * src/test.c: Don't include "error.h". Not used. * src/touch.c: Don't include "safe-read.h". Not used.
2008-03-19Remove more vestiges of CVS.Jim Meyering
* Makefile.maint (VC_LIST): Rename from CVS_LIST. (VC_LIST_EXCEPT): Rename from CVS_LIST_EXCEPT.
2008-03-18syntax-check: Make the space-before-open-paren optional.Jim Meyering
* Makefile.maint (sc_prohibit_assert_without_use): Match also when there is no space before the opening parenthesis. (sc_prohibit_getopt_without_use): Likewise. (sc_prohibit_quotearg_without_use): Likewise. (sc_prohibit_quote_without_use): Likewise.
2008-03-18* Makefile.maint (sc_no_have_config_h): Use a more precise regexp.Jim Meyering
2008-03-18* Makefile.maint (CVS): Remove now-unused definition.Jim Meyering
2008-03-18Factor out duplication in sc_prohibit_*_without_use rules.Jim Meyering
* Makefile.maint (_header_without_use): New "command", factored out of four sc_prohibit_HEADER_without_use rules. (sc_prohibit_assert_without_use): Rewrite using $(_header_without_use). (sc_prohibit_getopt_without_use): Likewise. (sc_prohibit_quotearg_without_use): Likewise. (sc_prohibit_quote_without_use): Likewise.
2008-03-18Correct typo in "make syntax-check" diagnostic.Dmitry V. Levin
* Makefile.maint (sc_prohibit_getopt_without_use): s/assert.h/getopt.h/
2008-03-16Prohibit inclusion of getopt.h without use.Jim Meyering
* Makefile.maint (sc_prohibit_getopt_without_use): New rule.
2008-03-06Now that ChangeLog is no longer under version control, ...Jim Meyering
* Makefile.maint (alpha beta major): Don't make changelog-check. (changelog-version-check): Rename from changelog-check.
2008-03-05Now that Makefile.maint is used in VPATH builds, too...Jim Meyering
* Makefile.maint (prev_version_file): Prefix with $(srcdir)/. (syntax-check-rules): Prefix $(ME) with $(srcdir)/. Signed-off-by: Jim Meyering <meyering@redhat.com>
2008-02-29Use "git tag", not "git-tag", in preparation for git-1.6.0.Jim Meyering
* Makefile.maint (VC-tag): Remove '-': s/git-tag/git tag/
2008-02-20Remove xdelta support, clean up distcheck process.Jim Meyering
* Makefile.maint (writable-files): Don't create $(release_archive_dir). (my-distcheck): Don't depend on prev-tgz. Remove xdelta-related variables and uses. (alpha beta major): Skip steps if $(release_archive_dir) doesn't exist.
2008-02-17Clean up Makefile.maint.Jim Meyering
* Makefile.maint: Remove obsolete comments. (local-checks-available): Remove changelog-check.
2008-02-10Ensure there are no removable (useless) if-before-free tests.Jim Meyering
* bootstrap.conf (gnulib_modules): Add useless-if-before-free. * Makefile.maint (sc_avoid_if_before_free): New rule.
2008-02-09tests: Remove priv-check. Use new require_root_ function instead.Jim Meyering
* tests/priv-check: Remove file. * tests/Makefile.am (EXTRA_DIST): Remove priv-check. * tests/test-lib.sh (require_root_): New function. Use this function rather than sourcing the priv-check file. * tests/sample-test: Use require_root_ rather than priv-check. * tests/chown/basic: Likewise. * tests/cp/cp-a-selinux: Likewise. * tests/cp/preserve-gid: Likewise. * tests/cp/special-bits: Likewise. * tests/ls/nameless-uid: Likewise. * tests/misc/chcon: Likewise. * tests/mkdir/writable-under-readonly: Likewise. * tests/mv/sticky-to-xpart: Likewise. * tests/rm/fail-2eperm: Likewise. * tests/rm/no-give-up: Likewise. * tests/rm/one-file-system: Likewise. * tests/tail-2/append-only: Likewise. * tests/touch/now-owned-by-other: Likewise. * tests/rm/fail-eperm: Use skip_if_root_ rather than priv-check. * Makefile.maint (sc_root_tests): Reflect this change: search for the new function name.
2008-02-04Makefile.maint (announcement): Remove stale comment.Jim Meyering
2008-01-26Clean up build-related rules.Jim Meyering
* Makefile.cfg (gnulib_dir): Update comment. * Makefile.maint (announcement) [cl_date, utc_date]: Don't set now-unused variables.
2008-01-12Use new version of announce-gen.Jim Meyering
* Makefile.maint (announcement): Remove use of the --gnulib-snapshot-time-stamp option. Use new --gnulib-version option instead. (gnulib-version): New variable.
2007-12-02Make my-distcheck depend on "check".Jim Meyering
* Makefile.maint (my-distcheck): Also depend on "check", so I can't tag and release something that fails "make check" (however harmless) when run in a checked-out-from-git dir, but not in the distributed tarball. Signed-off-by: Jim Meyering <meyering@redhat.com>
2007-12-01Change release procedure: tag *before* running e.g., "make stable".Jim Meyering
* Makefile.maint (vc-dist): Don't tag. Now, you must apply the tag before running "make beta", "make stable", etc. (vc-tag-check): Remove rule. No longer makes sense.
2007-12-01* Makefile.maint (vc-tag-check): Correct check for existing git tag.Jim Meyering
2007-12-01Defer NEWS and ChangeLog checks until after the version-changing tag.Jim Meyering
* Makefile.maint (alpha beta major): Don't depend on the news-date-check changelog-check targets. They must fail before applying the version-changing tag. Instead, run them after "vc-dist".
2007-11-27Don't block use of 'cat' or 'wc' in "make check".Jim Meyering
* Makefile.maint (my-distcheck): Add "cat" and "wc" to the list of programs that we can't blacklist.
2007-11-22Make it easier to diagnose PATH-induced "make distcheck" failures.Jim Meyering
* Makefile.maint (write_loser): Define. (my-distcheck): Use an always-failing wrapper script, that gives a diagnostic, not "false". Run only "make -C tests check" with the restrictive PATH. Run the new gnulib-tests/ with the usual PATH.
2007-11-16Avoid an obscure new "make distcheck" failure.Jim Meyering
* Makefile.maint (my-distcheck): Also allow 'mv', for its use in gnulib-tests/Makefile.
2007-10-31Fix a "make distcheck" failure.Jim Meyering
* Makefile.maint (my-distcheck): Don't stub-out dirname, since build-aux/check.mk now uses it.
2007-10-21Put always-failing programs first in PATH, so tests cannot mistakenly run ↵Jim Meyering
installed versions. * Makefile.maint (my-distcheck): Set up a bogus bin/ dir, to be used for "make check". Signed-off-by: Jim Meyering <meyering@redhat.com>
2007-08-24Arrange to use tag names like vM.N, rather than COREUTILS-M_N.Jim Meyering
* Makefile.maint (this-vc-tag) [git]: Simply use v$(VERSION). (this-vc-tag-regexp): New variable. (vc-tag-check): Use it, rather than $(this-vc-tag).
2007-08-23* Makefile.maint (patch-check): Don't remove temporaries upon failure.Jim Meyering
2007-07-23Update all copyright notices to use the newer form.Jim Meyering
2007-07-23Update c99/c89 patch for new, copyright-change-induced offsets.Jim Meyering
* Makefile.maint (patch-check): Filter out '^Only in...' lines. * src/c99-to-c89.diff: Handle new c99'isms in seq.c.
2007-07-11If there's a GPL vN copyright comment, require that N == 3.Jim Meyering
* Makefile.maint (sc_GPL_version): New rule. * tests/misc/arch: Fix the sole violation.
2007-07-10Change "version 2" to "version 3" in all copyright notices.Jim Meyering
2007-07-09Compensate for new c99'isms in seq.c.Jim Meyering
* Makefile.maint (patch-check): Use -p1, not -p2, so a patch generated via "make patch-check REGEN=1" actually works. * src/c99-to-c89.diff: Handle new c99'isms in seq.c.
2007-06-23Prefer "STREQ (a, b)" over "strcmp (a, b) == 0"; similar for != 0.Jim Meyering
* src/base64.c (main): Likewise. * src/install.c (setdefaultfilecon): Likewise. * src/sort.c (main): Likewise. * Makefile.maint (sc_prohibit_strcmp): New rule. * .x-sc_prohibit_strcmp: New file, to list the few exceptions. * Makefile.am (EXTRA_DIST): Add .x-sc_prohibit_strcmp.
2007-06-15Don't include "quote.h" when it is not used.Jim Meyering
* src/md5sum.c: Remove unnecessary inclusion of "quote.h". * src/expr.c: Likewise. * src/shred.c: Likewise. * Makefile.maint (sc_prohibit_quote_without_use): New rule. * src/c99-to-c89.diff: Adjust offsets.
2007-06-13Don't include "quotearg.h" when it is not used.Jim Meyering
* Makefile.maint (sc_prohibit_quotearg_without_use): New rule. * src/cp.c: Don't include "quotearg.h". It wasn't used.
2007-05-22Check for an up-to-date copyright year in coreutils.texi.Jim Meyering
* Makefile.maint (copyright-check): Also check for an up-to-date copyright year in doc/$().texi, if that file exists. * doc/coreutils.texi: Add 2007 to list of Copyright years. Reported by Karl Berry.
2007-05-22stty: diagnose an invalid hex value in 35-colon commmand-line argumentJim Meyering
* NEWS: Mention this. * src/stty.c (strtoul_tcflag_t, strtoul_cc_t): New functions. (recover_mode): Use those functions (not sscanf), to parse the string robustly. * tests/stty/invalid: New file. Test for the above. * tests/stty/Makefile.am (TESTS): Add invalid. * .x-sc_prohibit_atoi_atof: Don't exempt stty.c from this check. Add tests/stty/invalid so we don't have to obfuscate the comment about sscanf therein. * Makefile.maint (sc_prohibit_atoi_atof): Mention sscanf in the diagnostic, too.
2007-05-18* Makefile.maint (my-distcheck): Remove -pedantic from $(CFLAGS)Jim Meyering
for now, to avoid c89-check failure due to use of #include_next.
2007-03-15Enforce policy: don't use *scanf functions.Jim Meyering
* Makefile.maint (sc_prohibit_atoi_atof): Add to regexp and diagnostic. * .x-sc_prohibit_atoi_atof: Give stty a temporary pass. * TODO: note that stty.c needs this small clean-up.
2007-03-10* Makefile.maint (po-check): Exclude c99-to-c89.diff.Jim Meyering
2007-03-02* Makefile.maint (my-distcheck): Skip the c99/c89 check if there's no such ↵Jim Meyering
.diff file.
2007-03-02Remove another coreutils-ism. Formatting cleanup.Jim Meyering
* Makefile.maint (my-distcheck): Update an outdated comment. (emit_upload_commands): Use $(PACKAGE) rather than "coreutils".
2007-03-01* Makefile.maint (warn_cflags): Hoist, adding "-Dlint -O".Jim Meyering
(my-distcheck): Use the new variable, instead of too-long literal.
2007-03-01Make "make syntax-check" rules less coreutils-specific.Jim Meyering
* Makefile.maint (sc_cast_of_x_alloc_return_value): Use CVS_LIST_EXCEPT. (sc_cast_of_alloca_return_value): Likewise. (sc_root_tests): Do nothing if there is no check-root target in tests/Makefile.am.
2007-03-01Run the writable-files check only for release-building targets.Jim Meyering
* Makefile.maint (local-checks-available): Remove writable-files. (alpha beta major): Put it here, instead.
2007-03-01"make syntax-check" now runs only Makefile.cfg-selected testsJim Meyering
* Makefile.maint (syntax-check-rules): Hoist this definition so that it precedes the indirect use in the definition of $(local-check). (local-check): Use :=, not just "=". (syntax-check): Depend on $(local-check), not $(syntax-check-rules).
2007-02-28* Makefile.maint (gnulib_snapshot_date): Remove now-unused definition.Jim Meyering