Jim Meyering
ca5b9746c8
Adapt to gnulib's s/jm_/gl_/ cache variable renaming.
...
* configure.ac: Change the cache variable name prefix "jm_" to "gl_",
to match today's change in gnulib.
2007-11-08 10:55:02 +01:00
Jim Meyering
656c37d630
Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
...
* bootstrap (cp_mark_as_generated): Create any required parent
destination directories before copying a file into place.
2007-11-05 18:06:38 +01:00
Jim Meyering
17d3924e9e
* src/c99-to-c89.diff: Adjust offsets.
2007-11-05 14:57:09 +01:00
Jim Meyering
3bf4bb761c
Don't use GNU-sed-specific \< \> operators here, either.
...
* m4/include-exclude-prog.m4 (gl_REMOVE_PROG): Use a loop, as below.
2007-11-05 12:08:27 +01:00
Jim Meyering
d471effd85
Use tighter regexps when performing name substitution.
...
* man/Makefile.am (mapped_name): Add ^ and $$ anchors.
Signed-off-by: Jim Meyering <meyering@redhat.com >
2007-11-05 11:14:05 +01:00
Jim Meyering
25e3dd5365
Don't use GNU-sed-specific \< \> operators.
...
* configure.ac (MAN): Transform ginstall.1 to install.1 using
a loop, rather than sed with \<...\>.
Problem reported by Bruno Haible.
Andreas Schwab reminded me that \< and \> are not portable.
2007-11-05 11:13:21 +01:00
Jim Meyering
b8da93bee9
Get git-version-gen from gnulib.
...
* build-aux/git-version-gen: Remove file.
* build-aux/.gitignore: Add git-version-gen.
* bootstrap.conf (gnulib_modules): Add git-version-gen.
v6.9.89
2007-11-05 08:31:51 +01:00
Jim Meyering
4c9b376271
git-version-gen: Sync from autoconf's version.
...
* build-aux/git-version-gen: Run git-status
2007-11-03 22:52:33 +01:00
Jim Meyering
ae559eabcd
Sync copyright and scriptversion bits from gnulib.
...
* build-aux/git-version-gen: No semantic change.
2007-11-03 18:04:40 +01:00
Jim Meyering
8beb69b148
Change the first '-' to '.' in the snapshot version string,
...
e.g., 6.9-377-08144 -> 6.9.377-08144
* build-aux/git-version-gen: ... and add comments.
2007-11-03 17:46:42 +01:00
Jim Meyering
0814422a7d
seq: add another test for the %% bug
...
* tests/misc/seq (fmt-c): Test the other fixed case, too.
2007-11-03 10:42:52 +01:00
Paul Eggert
a860ca32b0
Fix bug with "seq 10.8 0.1 10.95", plus another bug with %% in format.
...
* NEWS: Mention the %%-in-format bug fix.
* src/seq.c (struct layout): New type.
(long_double_format): New arg LAYOUT. Fill it in. Fix mishandling
of %% in formats.
(print_numbers): New arg LAYOUT. Don't convert LAST to output format
when deciding whether to go slightly past LAST. Instead, convert
X to output format and back. This fixes a bug reported by
Andreas Schwab in
<http://lists.gnu.org/archive/html/bug-coreutils/2007-10/msg00237.html >
where "seq 10.8 0.1 10.95" would output 11.0 on platforms where
10.95 rounds to a value that prints as 11.0 when only one digit
past the decimal point is asked for.
(main): Compute layout, for benefit of print_numbers.
* tests/misc/seq (float-3): Undo previous change, since the bug
should be fixed now.
(fmt-b): New test, for the %% bug.
2007-11-03 10:00:26 +01:00
Jim Meyering
3e3f8f0161
tests/misc/printf-surprise: Correct sed transform.
...
Reported by Bob Proulx.
2007-11-01 23:40:21 +01:00
Jim Meyering
c70fc8d87b
Add example inspired by "make dist" running gzip and lzma in sequence.
...
* doc/coreutils.texi (tee invocation): Show how to run tar just
once, compressing the tee'd output streams in parallel.
2007-11-01 22:34:36 +01:00
Jim Meyering
e556eaa59e
Say that the first process substitution example is contrived.
...
* doc/coreutils.texi (tee invocation): ... and show how to do
it properly. Pointed out by James Antill.
2007-11-01 21:25:28 +01:00
Jim Meyering
636f0e101a
Use mktemp, not mkdtemp, to create test directories.
...
* tests/test-lib.sh: Use the mktemp binary we've just built,
not the mkdtemp script.
* tests/mkdtemp: Remove file.
* tests/Makefile.am (EXTRA_DIST): Remove mkdtemp.
2007-11-01 20:13:11 +01:00
Jim Meyering
d1986f81d0
Adjust a seq subtest not to depend on the vagaries of floating point.
...
* tests/misc/seq (float-3): Use 10.94 as the endpoint, not 10.95,
since 10.95 was precisely in the middle of the interval, and with
a %.1f format could map to either 10.9 or 11.0.
Reported by Mike Frysinger
2007-11-01 12:10:06 +01:00
Jim Meyering
094e533fad
Make the new printf-surprise test more precise.
...
* tests/test-lib.sh (require_ulimit_): New function.
* tests/misc/printf-surprise: Use ulimit -v to trigger the fixed bug,
and rather than checking printf's exit status (which would go wrong
on FreeBSD 6.1, since their printf(3) function doesn't require
lots of memory in this case) simply test whether it outputs
the first 10 bytes.
2007-11-01 12:06:11 +01:00
Jim Meyering
accad81d2b
Accommodate FreeBSD 6.1 hard-link-to-symlink differences.
...
* tests/cp/same-file: Detect when linking to a symlink links to
the target of the symlink (FreeBSD 6.1 does this, Linux does not),
and skip the few tests that would otherwise fail.
Redirect output of final comparison to stderr, since all stdout
is already redirected.
2007-11-01 11:59:08 +01:00
Jim Meyering
75d6936a08
Fix a "make distcheck" failure.
...
* Makefile.maint (my-distcheck): Don't stub-out dirname,
since build-aux/check.mk now uses it.
2007-10-31 08:42:17 +01:00
Jim Meyering
8c8bf861de
* bootstrap.conf (gnulib_modules): Add xprintf-posix.
2007-10-31 08:40:51 +01:00
Jim Meyering
5654415595
Avoid seq floating-point test failure on FreeBSD 6.1.
...
* tests/misc/seq (float-4): Also accept -0.0.
2007-10-30 11:17:59 +01:00
Jim Meyering
b00f87cfa3
Change a "make dist" diagnostic.
...
* GNUmakefile: Don't imply that $(_curr-ver) is the new version string.
2007-10-29 12:24:39 +01:00
Bob Proulx
b8e8d02861
Improve color terminal escape usage.
...
* build-aux/check.mk (am__tty_colors): Use 'tput' to deduce
terminal color capabilities.
2007-10-29 05:10:23 -06:00
Jim Meyering
b63b1b4ce2
Don't try to colorize a dumb terminal.
...
* build-aux/check.mk (am__tty_colors): Skip colors if $TERM is "dumb".
Thanks to Bob Proulx.
2007-10-29 10:37:09 +01:00
Jim Meyering
0cc7aa3a29
Remove gnulib's printf-posix module, for now.
...
* bootstrap.conf (gnulib_modules): It caused too many test failures.
2007-10-29 10:14:58 +01:00
Jim Meyering
cb75780b50
Remove spurious semicolon after "else".
...
* build-aux/check.mk (am__tty_colors): Fix syntax error.
2007-10-29 10:01:25 +01:00
Jim Meyering
3e9a0b87d7
Attribute suggestion for last change.
2007-10-29 09:49:50 +01:00
Jim Meyering
89157ad207
If $TERM is empty, don't use colors. This helps the buildbot,
...
since it produces its result in an environment with a tty, but
we don't want color codes in that case.
* build-aux/check.mk (am__tty_colors): Test for nonempty $TERM.
2007-10-29 09:47:52 +01:00
Jim Meyering
973d42b90d
Always initialize terminal colorization string variables.
...
* build-aux/check.mk (am__tty_colors): Always initialize red, grn, etc.,
In case they're defined in the environment.
2007-10-29 08:41:08 +01:00
Jim Meyering
e1bb6139fb
Avoid test failure in non-srcdir build vs. the git tree.
...
* tests/check.mk (vc_exe_in_TESTS): Run this test only in a
srcdir build directory. Reported by Andreas Schwab.
2007-10-29 07:47:21 +01:00
Jim Meyering
709a27ba48
Define ENOTSUP, not ENOSYS. Needed on OpenBSD 3.9.
...
* gl/lib/se-context.in.h (ENOTSUP): Define if missing.
* gl/lib/se-selinux.in.h: Likewise.
2007-10-28 19:04:59 +01:00
Jim Meyering
39e668ce5b
Define ENODATA, for FreeBSD 5.0 and 6.1.
...
* src/system.h (ENODATA): Define, if missing.
2007-10-28 18:16:54 +01:00
Jim Meyering
68c33a103d
Run autoreconf, not just autoconf, to avoid warnings.
...
* GNUmakefile (dummy): Otherwise, we'd sometimes get a warning
about autoconf version mismatch between what was used to generate
aclocal.m4 and the currently-running autoconf.
2007-10-28 15:54:44 +01:00
Jim Meyering
6555874879
Require gnulib's printf-posix module, to support Interix.
...
* bootstrap.conf (gnulib_modules): Add printf-posix.
2007-10-28 15:38:17 +01:00
Jim Meyering
39639a8a6a
Help xgettext recognize more printf-style format strings.
...
* bootstrap.conf (XGETTEXT_OPTIONS): Add directives for
error, error_at_line, xasprintf, xfprintf and xprintf.
2007-10-28 15:37:56 +01:00
Jim Meyering
1f05c616d2
Adjust format string so msgfmt doesn't object.
...
* src/df.c (main): Use "%s%s" (not %smsg) to print "msg" with or
without a "Warning: " prefix. Reported by Clytie Siddall.
2007-10-27 09:42:27 +02:00
Jim Meyering
2e270515f7
Clean up tests/Makefile.am.
...
* tests/Makefile.am (EXTRA_DIST): Remove $(TESTS). No longer defined.
(TESTS_ENVIRONMENT): Remove definition.
2007-10-27 09:06:11 +02:00
Jim Meyering
5d9cb87197
* build-aux/check.mk: Merge with latest from Akim.
2007-10-27 09:04:47 +02:00
Jim Meyering
cdd44f674b
Add a test for the printf fix of 2007-10-21.
...
* tests/misc/printf-surprise: New file. Test for 2007-10-21's fix.
* tests/misc/Makefile.am (TESTS): Add printf-surprise.
2007-10-27 08:50:10 +02:00
Jim Meyering
e80f3acc36
Add attribution for the expr.c-vs-xgettext report.
2007-10-25 09:20:44 +02:00
Jim Meyering
3c6e338b0f
Remove vestiges of cvs-gnulib-checkout process. Now we use git.
...
* bootstrap: Remove support for now-unnecessary option, --cvs-user,
and envvars CVS_USER, CVS_RSH.
2007-10-24 Micah Cowan <micah@cowan.name >
2007-10-25 09:06:29 +02:00
Micah Cowan
35eca590ad
Tell xgettext that "ARG1 % ARG2" is not a C format string.
...
* src/expr.c (usage): Add a comment to override xgettext's default
behavior, which would classify "ARG1 % ARG2" as a fprintf-style
format string.
2007-10-25 08:59:30 +02:00
Jim Meyering
edb5faa297
Avoid diagnostics from sha1sum when there is no cached checksum.
...
* bootstrap (update_po_files): Skip the sha1sum check if the po.s1
file hasn't been created yet.
2007-10-24 22:31:35 +02:00
Jim Meyering
0edca4f61f
Get gnulib from the git repository, not from an obsolete cvs one.
...
* bootstrap: Suggestion from Micah Cowan.
2007-10-24 22:09:57 +02:00
Jim Meyering
ffc29e91c4
Doc improvements.
...
* README-hacking: Prefer the no-hyphen variant of git commands,
e.g., use "git pull" not "git-pull".
Don't presume that the only way to read this document is via a
prior git clone: provide instructions for cloning coreutils, too.
* README-hacking: Add "cd automake" in build instructions.
From Bob Proulx.
2007-10-24 09:13:59 +02:00
Jim Meyering
b924d0380e
Don't fail part 2 of tests/rm/unreadable when run as root.
...
* tests/rm/unreadable: With UID == 0, expect different results.
Reported by Mike Frysinger.
2007-10-24 08:50:09 +02:00
Jim Meyering
def157c927
* README-hacking: Refer to LZMA Utils < http://tukaani.org/lzma/ >.
2007-10-23 15:44:58 +02:00
Paul Eggert
758a615bb5
* README-hacking: Describe how to build with LZMA.
2007-10-22 23:29:40 +02:00
Jim Meyering
433a31d3dc
Remove git-version-gen's first parameter.
...
* build-aux/git-version-gen: Add comments.
Remove first command-line parameter.
* configure.ac: Remove corresponding first argument.
* GNUmakefile (_curr-ver): Likewise.
2007-10-22 21:43:12 +02:00