summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* maint: update to latest bootstrapEric Blake2010-04-061-22/+66
| | | | * bootstrap: Copy from gnulib/build-aux.
* tests: get latest init.sh from gnulibJim Meyering2010-04-051-4/+104
| | | | * tests/init.sh: Update from gnulib.
* build: update gnulib submodule to latest; adaptJim Meyering2010-04-052-1/+2
| | | | * cfg.mk (local-checks-to-skip): Add new sc_texinfo_acronym, to skip it.
* diff -F/-p: don't depend on locale-specific white-space definitionJim Meyering2010-04-051-2/+3
| | | | | * src/context.c: Include "c-ctype.h". Use c_isspace, not isspace.
* tests: exercise new behavior of -F REJim Meyering2010-03-182-0/+68
| | | | | * tests/function-line-vs-leading-space: New file. * tests/Makefile.am (TESTS): Add it.
* with -F or -p, emit better function lines: no leading white spaceYannick Moy2010-03-182-5/+14
| | | | | | | | | | * src/diff.c (print_context_function): For languages like Ada that allow local functions and procedures, the plain context function line may start with enough blank characters that the function name does not get completely printed in the 40 characters limit. This patch solves this problem by removing these useless initial blank characters. * NEWS (Changes in behavior): Mention this change.
* build: don't require a specific version of help2manJim Meyering2010-03-171-1/+1
| | | | | * bootstrap.conf (buildreq): Bootstrap can't deal with it, perhaps because the command name contains a digit.
* build: make bootstrap ensure that help2man is availableJim Meyering2010-03-171-0/+1
| | | | * bootstrap.conf (buildreq): Add help2man.
* tests: test for the "Binary files A and B differ" diagnosticJim Meyering2010-02-232-0/+20
| | | | | * tests/binary: New script. * tests/Makefile.am (TESTS): Add it.
* revert 2002 change that removed "Binary " from "files A and B differ"Jim Meyering2010-02-232-3/+15
| | | | | | | | | | | With this change, "printf '\0'|diff - /dev/null" now prints "Binary files - and /dev/null differ" once again. This reverts 2002-06-28 commit a352f0980, "(briefly_report): Don't say "Binary files differ", ...". * src/analyze.c (briefly_report): Do include the "Binary " prefix in the diagnostic, when !brief. * NEWS (Changes in behavior): Mention the diagnostic change. Reported by Andreas Hoenen in http://bugs.debian.org/570064.
* avoid compilation failure on systems lacking both fork and vforkJuan Manuel Guerrero2010-02-142-2/+2
| | | | | | | * src/sdiff.c [!HAVE_WORKING_FORK && !HAVE_WORKING_VFORK] (main): Pass the right number of arguments to shell_quote_copy. * src/util.c [!HAVE_WORKING_FORK && !HAVE_WORKING_VFORK] (begin_output): Likewise.
* post-release administriviaJim Meyering2010-02-113-2/+5
| | | | | | * NEWS: Add header line for next release. * .prev-version: Record previous version. * cfg.mk (old_NEWS_hash): Auto-update.
* version 2.9v2.9Jim Meyering2010-02-111-1/+1
| | | | * NEWS: Record release date.
* doc: document the release procedureJim Meyering2010-02-111-0/+84
| | | | * README-release: New file.
* maint: change use of "|" to more maintainable "||" (no semantic change)Jim Meyering2010-02-101-1/+1
| | | | | | | | * src/analyze.c (diff_2_files): Using the "||" operator happens to be equivalent to using "|" in this case. It is also clearer and less prone to inadvertent bug introduction, in case the variable, "changes" were ever to take on a value not in {0,1}. Patch by Tim Waugh, via Mike Frysinger.
* portability: avoid "diff - ..." failure at least on *BSD and SolarisJim Meyering2010-02-101-1/+1
| | | | | | | The new "stdin" test was failing on many types of systems. * src/diff.c (compare_files): Guard use of xfreopen (NULL, "rb", ... also with O_BINARY, so as to avoid this unnecessary call on systems where it's not needed (on some it fails with "Bad address".
* tests: honor VERBOSEJim Meyering2010-02-104-6/+11
| | | | | | | * tests/basic: Enable "set -x" if $VERBOSE. * tests/help-version: Likewise. * tests/label-vs-func: Likewise. * tests/stdin: Likewise.
* build: update gnulib submodule to latestJim Meyering2010-02-051-0/+0
|
* sync with gnulibJim Meyering2010-02-053-29/+32
| | | | | * gl/lib/regcomp.c.diff: Adjust to apply to the latest in gnulib. * gnulib: Update submodule to latest.
* build: do not override gnulib-provided AM_CFLAGS optionsJim Meyering2010-02-041-1/+1
| | | | | | | | | | | | | | Avoid a warning from automake: lib/Makefile.am:23: AM_CFLAGS multiply defined in condition TRUE ... lib/gnulib.mk:30: ... `AM_CFLAGS' previously defined here lib/Makefile.am:18: `lib/gnulib.mk' included from here * lib/Makefile.am (AM_CFLAGS): Append $(WARN_CFLAGS) and $(WERROR_CFLAGS), i.e., use "+=", not "=". This was introduced via 2009-12-17 commit e58efa5b "build: enable warnings and -Werror.", but fortunately is not a bug, because the definition it would have overridden was always empty.
* maint: add to .gitignoreJim Meyering2010-01-171-0/+8
| | | | * .gitignore: Ignore more.
* doc: add to TODOJim Meyering2010-01-161-0/+5
| | | | * TODO: Add an item, suggested by Dan Jacobson.
* tests: ensure that an argument of "-" is treated as standard inputJim Meyering2010-01-132-1/+26
| | | | | * tests/stdin: New test. * tests/Makefile.am (TESTS): Add it.
* tests: now "make distcheck" runs more tests, incl. syntax-checkJim Meyering2010-01-103-0/+178
| | | | | | * cfg.mk: Include dist-check.mk, from coreutils. * Makefile.am (distcheck-hook): Define rule, to hook to... * dist-check.mk: New file.
* build: update gnulib to latest, for fixed syntax-check ruleJim Meyering2010-01-091-0/+0
|
* maint: record updated NEWS hashJim Meyering2010-01-091-1/+1
| | | | * cfg.mk (old_NEWS_hash): Update to account for GFDL change.
* build: update gnulib submodule to latestJim Meyering2010-01-091-0/+0
|
* tests: add a test of basic functionalityJim Meyering2010-01-092-0/+43
| | | | | * tests/basic: Start adding tests. * tests/Makefile.am (TESTS): Add it.
* maint: udpate GFDL license to 1.3Jim Meyering2010-01-091-1/+1
| | | | * doc/diff.texi: Update to use GFDL version 1.3.
* build: allow compilation on cygwinEric Blake2010-01-041-1/+2
| | | | | * src/Makefile.am (cmp_LDADD): Move LIBICONV... (LDADD): ...into global flags, since all programs need it.
* maint: record update-copyright options for this packageJim Meyering2010-01-031-0/+4
| | | | * cfg.mk: Next time, just run "make update-copyright".
* tests: prepend ../src, not "." to PATHJim Meyering2010-01-031-1/+1
| | | | * tests/help-version: Correct PATH.
* maint: update all FSF copyright year lists to include 2010Jim Meyering2010-01-0144-51/+49
| | | | | | Use this command: git ls-files |grep -vE '^(\..*|COPYING|gnulib)$' |xargs \ env UPDATE_COPYRIGHT_USE_INTERVALS=1 build-aux/update-copyright
* maint: newer gnulib; don't hard-code my GPG key IDJim Meyering2009-12-312-3/+0
| | | | | * cfg.mk (gpg_key_ID): Remove definition, now that maint.mk automates it. * gnulib: Update to latest.
* tests: exercise diff -p's function-name matchingJim Meyering2009-12-312-1/+33
| | | | | | | * tests/label-vs-func: New file. * tests/Makefile.am (TESTS): Add label-vs-func. Reported by Simon Arlott <simon@fire.lp0.eu> http://article.gmane.org/gmane.linux.kernel.janitors/14260
* tests: use gnulib's init.shJim Meyering2009-12-314-410/+258
| | | | | | | | * tests/Makefile.am (EXTRA_DIST): Add init.sh. Remove test-lib.sh. * tests/init.sh: New file. * tests/test-lib.sh: Remove file. * tests/help-version: Use init.sh, not test-lib.sh.
* maint: don't let trailing spaces in diffs perturb make syntax-checkJim Meyering2009-11-281-0/+1
| | | | * .x-sc_space_tab: New file.
* build: enable warnings and -Werror.Jim Meyering2009-11-223-1/+3
| | | | | | | | * src/Makefile.am (AM_CFLAGS): Enable warnings and -Werror. Set to this: $(WARN_CFLAGS) $(WERROR_CFLAGS) * lib/Makefile.am (AM_CFLAGS): Similarly, but use this: $(GNULIB_WARN_CFLAGS) $(WERROR_CFLAGS) * configure.ac (GNULIB_WARN_CFLAGS): Don't turn off -Wuninitialized.
* build: avoid a warning from gnulib's sh-quote.cJim Meyering2009-11-221-0/+15
| | | | * gl/lib/sh-quote.c.diff: New file, to avoid a warning.
* maint: avoid warnings via patched versions of gnulib's regex functionsJim Meyering2009-11-224-0/+166
| | | | | | | * gl/lib/regcomp.c.diff: New file. * gl/lib/regex_internal.c.diff: Likewise. * gl/lib/regex_internal.h.diff: Likewise. * gl/lib/regexec.c.diff: Likewise.
* build: update gnulib submodule to latestJim Meyering2009-11-221-0/+0
|
* build: ignore more filesEric Blake2009-11-201-0/+2
| | | | | | * .gitignore: Add config.cache, *.exe. Signed-off-by: Eric Blake <ebb9@byu.net>
* build: fix test run on cygwinEric Blake2009-11-202-2/+2
| | | | | | | | This, plus a gnulib update for xalloc-die-tests, are necessary for make check to pass on cygwin. * tests/Makefile.am (built_programs): Ignore $(EXEEXT). * src/Makefile.am (paths.h): Add missing dependency.
* maint: remove vestiges of nanosleepJim Meyering2009-11-201-2/+1
| | | | | | * src/Makefile.am (LDADD): Remove $(LIB_NANOSLEEP), now that we no longer use the nanosleep module. Spotted by Eric Blake.
* maint: don't pull in gnulib's nanosleep unnecessarilyJim Meyering2009-11-201-1/+0
| | | | | * bootstrap.conf (gnulib_modules): Remove nanosleep. Not needed. Spotted by Eric Blake.
* maint: cfg.mk: remove factored-out ftp host/dir definitionsJim Meyering2009-11-202-10/+0
| | | | | | | * cfg.mk (gnu_ftp_host-alpha, gnu_ftp_host-beta gnu_ftp_host-stable): (gnu_rel_host, url_dir_list): Remove definitions. The defaults, now provided by maint.mk, are the same. * gnulib: Update for latest, including those maint.mk additions.
* build: link with now-required librariesJim Meyering2009-11-201-2/+12
| | | | | * src/Makefile.am (LDADD): Add gnulib-required libraries. (cmp_LDADD): Add $(LIBICONV), for cmp's use of proper_name_utf8.
* maint: lib/xfreopen.c contains translatable stringsJim Meyering2009-11-201-0/+1
| | | | * po/POTFILES.in: Add lib/xfreopen.c.
* maint: remove hard-coded macro definitions provided by intprops.hJim Meyering2009-11-201-17/+1
| | | | | * lib/cmpbuf.c: Include "intprops.h" rather than open-coding macros like TYPE_SIGNED and TYPE_MINIMUM.
* maint: add gnulib's announce-gen moduleJim Meyering2009-11-201-0/+1
| | | | * bootstrap.conf (gnulib_modules): Add announce-gen