Jim Meyering
55539fc6bd
Don't include "getline.h".
...
That file has just been removed from gnulib;
its declarations are now in <stdio.h>.
* src/md5sum.c: Likewise.
* src/dircolors.c: Likewise.
2007-08-22 16:59:40 +02:00
Jim Meyering
71aa3ea880
Update all copyright notices to use the newer form.
2007-07-23 14:35:58 +02:00
Jim Meyering
33342c1a0a
Change "version 2" to "version 3" in all copyright notices.
2007-07-10 13:35:56 +02:00
Jim Meyering
a0faff1a58
Help translators include translation team's web or email address.
...
* src/system.h (emit_bug_reporting_address): New function.
* src/base64.c: Use it rather than a literal printf.
* src/basename.c, src/cat.c, src/chgrp.c, src/chmod.c:
* src/chown.c, src/chroot.c, src/cksum.c, src/comm.c, src/cp.c:
* src/csplit.c, src/cut.c, src/date.c, src/dd.c, src/df.c:
* src/dircolors.c, src/dirname.c, src/du.c, src/echo.c, src/env.c:
* src/expand.c, src/expr.c, src/factor.c, src/fmt.c, src/fold.c:
* src/head.c, src/hostid.c, src/hostname.c, src/id.c, src/install.c:
* src/join.c, src/kill.c, src/link.c, src/ln.c, src/logname.c:
* src/ls.c, src/md5sum.c, src/mkdir.c, src/mkfifo.c, src/mknod.c:
* src/mv.c, src/nice.c, src/nl.c, src/nohup.c, src/od.c:
* src/paste.c, src/pathchk.c, src/pinky.c, src/pr.c, src/printenv.c:
* src/printf.c, src/ptx.c, src/pwd.c, src/readlink.c, src/rm.c:
* src/rmdir.c, src/seq.c, src/setuidgid.c, src/shred.c, src/shuf.c:
* src/sleep.c, src/sort.c, src/split.c, src/stat.c, src/stty.c:
* src/su.c, src/sum.c, src/sync.c, src/system.h, src/tac.c:
* src/tail.c, src/tee.c, src/test.c, src/touch.c, src/tr.c:
* src/true.c, src/tsort.c, src/tty.c, src/uname.c, src/unexpand.c:
* src/uniq.c, src/unlink.c, src/uptime.c, src/users.c, src/wc.c:
* src/who.c, src/whoami.c, src/yes.c: Likewise.
2007-03-28 08:50:29 +02:00
Jim Meyering
5a8a00e16e
* src/date.c (usage): Split a diagnostic that had grown to be
...
longer than the C89 maximum of 509 bytes.
2007-02-23 17:50:40 +01:00
Ed Santiago
54bdcc09ae
* src/date.c (usage): Mention that --rfc-3339 uses space, not 'T',
...
for a separator. Include sample RFC 2822 and 3339 output.
2007-02-23 16:11:01 +01:00
Jim Meyering
a09b047947
Remove excess leading spaces that would make help2man misbehave.
...
* src/printf.c (usage): Remove excess spaces on 2nd line of %b desc.
* src/nl.c (usage): Remove excess spaces on 2nd line of pBRE desc.
* src/dd.c (usage): Remove excess spaces on 2nd line of sync desc.
* src/date.c (usage): Use two spaces after each optional flag, not one.
Reported by Thomas Huriaux in <http://bugs.debian.org/410407 >.
2007-02-10 22:30:18 +01:00
Paul Eggert
9b06af3367
Improve the check for departures from C89, and fix the departures
...
I found.
* Makefile.maint (my-distcheck): Also check for C89 compatibility
as best we can with GCC.
* src/stat.c (PRINTF_OPTION): Omit comma before } in enum
declaration; C89 doesn't allow this.
* src/dcgen: Don't generate string literals longer than
what C89 requires support for.
* src/cut.c (usage): Don't use string literals longer than
what C89 requires support for.
* src/date.c (usage): Likewise.
* src/dd.c (usage): Likewise.
* src/du.c (usage): Likewise.
* src/ls.c (usage): Likewise.
* src/od.c (usage): Likewise.
* src/readlink.c (usage): Likewise.
* src/seq.c (usage): Likewise.
* src/shred.c (usage): Likewise.
2006-11-27 11:27:46 +01:00
Jim Meyering
28a712f205
(usage): Adjust the formatting of the entries for
...
%::z and %:::z (separate with two spaces, not one) so that help2man
formats them properly. Reported by Philip Rowlands.
2006-01-08 20:45:54 +00:00
Paul Eggert
7d9fe7fa8e
(usage): Explain %g, %G, and %V a bit better.
2006-01-03 00:43:19 +00:00
Jim Meyering
4fdd25e012
(show_date): Correct comment: this function no longer handles a
...
NULL format string.
2005-09-16 08:08:00 +00:00
Jim Meyering
d5763af839
(show_date): Remove now-spurious braces.
2005-09-16 07:59:20 +00:00
Paul Eggert
158d982669
Include stat-time.h, and use its functions instead of the obsolete
...
TIMESPEC_NS macro.
2005-09-16 07:50:33 +00:00
Jim Meyering
d514933c67
Include fprintftime.h.
...
Don't include strftime.h or xanstrftime.h -- no longer needed.
(show_date): Use fprintftime rather than xanstrftime.
2005-09-16 07:33:36 +00:00
Paul Eggert
2c29ba03ac
(TIME_SPEC_DATE): No longer needs to be nonzero, so
...
remove the "=1".
(TIME_SOEC_HOURS, TIME_SPEC_MINUTES): Must be at end now, so put
them there.
(time_spec_string, time_spec): Hours and minutes must be at
start now, so put them there.
(rfc_2822_format): Now a string constant, not a boolean. All uses
changed.
(iso_8601_format, rfc_format): Remove.
(RFC_3339_OPTION): New constant.
(long_options): Add --rfc-3339.
(usage): Add --rfc-3339. Don't mention --iso-8601.
Mention %:z, %::z, %:::z.
(main): Simplify calculation of 'format'; it was getting too hairy
to follow. Add --rfc-3339.
(show_date): Assume format arg is not NULL, which is the case
now. The default code is moved to 'main'. This simplifies things
and allows the default to be calculated just once.
2005-09-13 22:08:41 +00:00
Jim Meyering
cb50fa3e87
Don't print uninitialized data (or anything else) to stdout
...
upon localtime failure.
(show_date): Remove stray `puts (buf);' (debugging?)
from the 2004-02-02 change.
2005-08-15 12:16:54 +00:00
Jim Meyering
ef1fad923f
Include "xanstrftime.h".
...
(show_date): Use xanstrftime instead of open-coding it.
2005-08-02 20:53:32 +00:00
Jim Meyering
eed7b13805
(show_date): Remove now-unnecessary code that
...
treated an empty format string as a special case.
2005-08-02 20:44:38 +00:00
Jim Meyering
8665927afc
Add uses of ARGMATCH_VERIFY to ensure that
...
corresponding option string and value arrays are consistent.
2005-06-30 16:47:54 +00:00
Jim Meyering
fd98517183
(show_date): Use X2REALLOC rather than x2realloc.
2005-06-29 16:26:01 +00:00
Jim Meyering
b64058f69e
(show_date): Use x2realloc on 1-byte base types, not x2nrealloc.
2005-06-28 16:29:42 +00:00
Jim Meyering
75b33a5620
whoops: use puts, not fputs
2005-06-23 15:34:52 +00:00
Jim Meyering
a912688f5c
(show_date): Use fputs rather than printf ("%s\n",.
2005-06-23 15:20:05 +00:00
Jim Meyering
3787d01a51
Don't embed `this'-style quotes in format strings.
...
Rather than this: error (..., "...`%s'...", arg);
do this: error (..., "...%s...", quote (arg));
2005-06-16 21:33:43 +00:00
Jim Meyering
44d59bb168
Update FSF postal mail address.
2005-05-14 07:58:31 +00:00
Jim Meyering
c0c815af8d
Update FSF postal mail address.
2005-05-14 06:57:06 +00:00
Jim Meyering
c73cf11291
Assume `free (NULL)' works.
2005-05-12 07:53:37 +00:00
Paul Eggert
3263435391
Remove posixver.h and its uses.
...
(COMMON_SHORT_OPTIONS): Remove.
(short_options): New constant.
(short_options, usage): -I now always takes an optional arg.
2005-04-26 16:40:43 +00:00
Jim Meyering
6c816682e0
(time_spec_string): Use NULL, not `0'.
2005-03-28 18:00:16 +00:00
Paul Eggert
02019487ea
(usage): Redo to match recent documentation changes.
...
Don't bother documenting which usages are GNU extensions; the list
wasn't correct, and is better left to the printed manual anyway.
2005-03-08 22:20:11 +00:00
Paul Eggert
1b29344371
(main): gettime now returns void.
2005-02-21 08:14:13 +00:00
Paul Eggert
81ca57a91d
Remove unused "case 0".
2004-09-21 22:26:42 +00:00
Paul Eggert
b3c28cad1b
(show_date, rfc_format, batch_convert, main): Use bool for booleans.
2004-08-03 05:59:36 +00:00
Jim Meyering
1ce7b61d0e
(main): Standardize on the diagnostics given when someone gives
...
too few operands ("missing operand after `xxx'") or
too many operands ("extra operand `xxx'").
Include "quote.h" and/or "error.h" if it wasn't already being included.
2004-06-21 15:03:35 +00:00
Jim Meyering
339ff9d46b
(batch_convert): Prefer the notation STREQ (a, b)' over strcmp (a, b) == 0'.
2004-06-01 12:52:31 +00:00
Jim Meyering
1110307672
(enum Time_spec): New enum TIME_SPEC_NS.
...
(time_spec_string, time_spec, show_date): Support it.
(usage): Remove description of -ITIMESPEC, as it's obsolete and
confusing. Mention --iso-8601=ns.
(batch_convert): getline returns ssize_t, not int.
2004-03-17 10:07:19 +00:00
Jim Meyering
c904b0cae6
Don't dump core if localtime returns NULL (possible on
...
hosts with 64-bit time_t and 32-bit int).
Include "inttostr.h".
(batch_convert, main):
If time conversion fails, exit with nonzero status.
(show_date): Return int to report conversion failure.
Print the time as an int if localtime fails.
2004-02-05 09:50:18 +00:00
Jim Meyering
f37f61b461
Don't include timespec.h, now that system.h does it.
2004-02-05 09:24:05 +00:00
Jim Meyering
8abeccf9d4
(usage): Use EXIT_SUCCESS, not 0, for clarity.
...
(FATAL_ERROR, main): Exit with status EXIT_FAILURE, not 2, on errors.
(main): Don't assume EXIT_FAILURE == 1, as POSIX doesn't require it.
2004-01-21 22:52:53 +00:00
Jim Meyering
e1c6989ecf
(show_date): Use x2nrealloc rather than xrealloc.
2003-11-04 09:27:54 +00:00
Jim Meyering
cf4fdf373f
Most .c files (AUTHORS): Revert the WRITTEN_BY/AUTHORS change
...
of 2003-09-19. Now, AUTHORS is a comma-separated list of strings.
Update the call to parse_long_options so that `AUTHORS, NULL' are the
last parameters.
* src/true.c (main): Append NULL to version_etc argument list.
* src/sys2.h (case_GETOPT_VERSION_CHAR): Likewise.
2003-10-18 10:05:47 +00:00
Jim Meyering
bafd927f03
(WRITTEN_BY): Rename from AUTHORS.
...
Begin each WRITTEN_BY string with `Written by ' and end it with `.'.
Mark each WRITTEN_BY string as translatable.
2003-09-18 22:19:03 +00:00
Jim Meyering
953ab84d68
(long_options, usage, main): Add --rfc-2822 option to GNU date.
2003-08-01 22:36:34 +00:00
Jim Meyering
4f4e9aa8e1
Don't include headers already included by system.h:
...
Don't include closeout.h.
2003-07-23 07:29:54 +00:00
Jim Meyering
fe52d65af0
Include "exitfail.h".
...
(main): Set exit_failure rather than calling close_stdout_set_status.
2003-07-19 08:16:38 +00:00
Jim Meyering
208b8da666
(batch_convert): Use the quote function rather than using literal `...' in
...
a diagnostic.
2003-07-11 10:38:39 +00:00
Jim Meyering
7c6b61d57d
Include "quote.h".
...
Use the quote function rather than using literal `...' in a diagnostic.
2003-07-11 10:37:21 +00:00
Jim Meyering
6bcd4b08ba
(main): Call initialize_main.
2003-06-17 18:13:23 +00:00
Jim Meyering
6c93bdeeaa
Remove anachronistic casts of xmalloc,
...
xrealloc, and xcalloc return values and of xrealloc's first argument.
2003-04-11 10:51:56 +00:00
Jim Meyering
a5f14f167e
Remove all uses of `PARAMS'.
2002-12-15 20:54:29 +00:00