Jim Meyering [Mon, 21 May 2001 12:34:57 +0000 (12:34 +0000)]
($(DVIS), $(INFO_DEPS)): Depend on $(EXTRA_DIST).
(DISABLED_constants.texi): New rule -- disabled for now.
Jim Meyering [Mon, 21 May 2001 10:53:11 +0000 (10:53 +0000)]
.
Jim Meyering [Mon, 21 May 2001 10:52:36 +0000 (10:52 +0000)]
*** empty log message ***
Jim Meyering [Mon, 21 May 2001 10:52:02 +0000 (10:52 +0000)]
Change a couple backticks to single quotes to avoid shell syntax errors.
Jim Meyering [Mon, 21 May 2001 07:35:22 +0000 (07:35 +0000)]
.
Jim Meyering [Mon, 21 May 2001 07:05:42 +0000 (07:05 +0000)]
*** empty log message ***
Jim Meyering [Mon, 21 May 2001 07:05:37 +0000 (07:05 +0000)]
Add new --time-style option.
Change --full-time to be equivalent to --time-style=full-iso.
Jim Meyering [Mon, 21 May 2001 06:59:27 +0000 (06:59 +0000)]
.
Jim Meyering [Mon, 21 May 2001 06:46:56 +0000 (06:46 +0000)]
*** empty log message ***
Jim Meyering [Mon, 21 May 2001 06:46:52 +0000 (06:46 +0000)]
(jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
Jim Meyering [Mon, 21 May 2001 06:36:43 +0000 (06:36 +0000)]
*** empty log message ***
Jim Meyering [Mon, 21 May 2001 06:36:36 +0000 (06:36 +0000)]
(dir_name): Compute append_dot using path, not newpath
which is not yet declared.
Jim Meyering [Mon, 21 May 2001 05:49:47 +0000 (05:49 +0000)]
*** empty log message ***
Jim Meyering [Mon, 21 May 2001 05:49:42 +0000 (05:49 +0000)]
(wget-update): depcomp and missing are now in automake's lib/ subdirectory.
Jim Meyering [Sun, 20 May 2001 21:09:06 +0000 (21:09 +0000)]
.
Jim Meyering [Sun, 20 May 2001 20:44:33 +0000 (20:44 +0000)]
Include "hard-locale.h".
(nstrftime): New decl.
(enum time_style): New enum.
(time_style_args, time_style_types): New constants.
(full_time): Remove.
(long_time_format): Initialize to POSIX defaults.
(TIME_STYLE_OPTION): New constant.
(long_options, decode_switches, usage): Add --time-style support.
(long_time_expected_width): Use nstrftime, not strftime.
(print_long_format): Likewise.
Increase initial size to match new full-iso time style.
Jim Meyering [Sun, 20 May 2001 20:44:08 +0000 (20:44 +0000)]
*** empty log message ***
Jim Meyering [Sun, 20 May 2001 20:43:52 +0000 (20:43 +0000)]
Unset QUOTING_STYLE and TIME_STYLE. Set TZ.
Adjust to change in full-time format.
Fix typo in failure messages (-a and -m were interchanged).
Jim Meyering [Sun, 20 May 2001 20:41:32 +0000 (20:41 +0000)]
*** empty log message ***
Jim Meyering [Sun, 20 May 2001 20:41:20 +0000 (20:41 +0000)]
(my_strftime):
Define to nstrftime if emacs, but only if my_strftime is not defined.
(extra_args, extra_args_spec, extra_args_spec_iso): Rename from
ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
Add one more extra argument: a nanoseconds value.
All uses changed.
(ns): New macro.
(my_strftime function): Add %N format.
(emacs_strftimeu): Renamed from emacs_strftime,
with extra ut argument.
Jim Meyering [Sun, 20 May 2001 20:39:28 +0000 (20:39 +0000)]
(libfetish_a_SOURCES):
Add strftime.c, since we now compile it on all hosts.
Jim Meyering [Sun, 20 May 2001 20:38:29 +0000 (20:38 +0000)]
*** empty log message ***
Jim Meyering [Sun, 20 May 2001 20:38:25 +0000 (20:38 +0000)]
(jm_FUNC_GNU_STRFTIME):
Don't bother to check library strftime, since
we'll be using our own my_strftime function anyway.
Define my_strftime instead of strftime.
Jim Meyering [Sun, 20 May 2001 18:46:20 +0000 (18:46 +0000)]
*** empty log message ***
Jim Meyering [Sun, 20 May 2001 18:46:09 +0000 (18:46 +0000)]
(parse_obsolescent_option): Accept a b suffix.
Jim Meyering [Sun, 20 May 2001 18:18:17 +0000 (18:18 +0000)]
.
Jim Meyering [Sun, 20 May 2001 08:21:05 +0000 (08:21 +0000)]
(EXTRA_DIST): Add constants.texi and doclicense.texi.
(info_TEXINFOS): s/fileutils/omni-utils/.
(check-texinfo): New rule.
(check): Depend on check-texinfo.
Jim Meyering [Sun, 20 May 2001 07:24:08 +0000 (07:24 +0000)]
Make all references to POSIX use @sc{posix}.
Jim Meyering [Sun, 20 May 2001 07:12:33 +0000 (07:12 +0000)]
.
Jim Meyering [Sun, 20 May 2001 06:57:37 +0000 (06:57 +0000)]
(uniq invocation): Document the new optional
arguments to the --all-repeated option.
Jim Meyering [Sun, 20 May 2001 06:56:32 +0000 (06:56 +0000)]
*** empty log message ***
Jim Meyering [Sun, 20 May 2001 06:56:24 +0000 (06:56 +0000)]
Rename new option values: s/all/precede/ and s/minimum/separate/.
Jim Meyering [Sun, 20 May 2001 06:55:06 +0000 (06:55 +0000)]
*** empty log message ***
Jim Meyering [Sun, 20 May 2001 06:54:05 +0000 (06:54 +0000)]
reflect option value renamings
Jim Meyering [Sat, 19 May 2001 10:35:01 +0000 (10:35 +0000)]
.
Jim Meyering [Sat, 19 May 2001 09:33:08 +0000 (09:33 +0000)]
*** empty log message ***
Jim Meyering [Sat, 19 May 2001 08:45:13 +0000 (08:45 +0000)]
(delimit_method_map): Remove trailing comma.
Jim Meyering [Sat, 19 May 2001 08:44:04 +0000 (08:44 +0000)]
*** empty log message ***
Jim Meyering [Sat, 19 May 2001 08:43:57 +0000 (08:43 +0000)]
Test new, --all-repeated options.
Jim Meyering [Sat, 19 May 2001 07:58:17 +0000 (07:58 +0000)]
*** empty log message ***
Jim Meyering [Sat, 19 May 2001 07:55:43 +0000 (07:55 +0000)]
Support new modes for uniq's --all-repeated option.
The default behavior is unchanged.
Include argmatch.h.
(usage): Update.
(check_file): Implement it.
(main): Handle new, optional arguments.
Patch by Padraig Brady.
Jim Meyering [Sat, 19 May 2001 07:09:30 +0000 (07:09 +0000)]
s/GNU text/GNU command line/ ... utilities.
Jim Meyering [Sat, 19 May 2001 06:14:26 +0000 (06:14 +0000)]
s/was/were/
Jim Meyering [Sat, 19 May 2001 05:58:18 +0000 (05:58 +0000)]
*** empty log message ***
Jim Meyering [Sat, 19 May 2001 05:57:50 +0000 (05:57 +0000)]
Change a few uses of `timezone' to `time zone'.
Jim Meyering [Wed, 16 May 2001 08:14:19 +0000 (08:14 +0000)]
(my-distcheck): Remove work-around kludge and
associated comment, now that automake has ben fixed.
Jim Meyering [Wed, 16 May 2001 07:33:31 +0000 (07:33 +0000)]
*** empty log message ***
Jim Meyering [Wed, 16 May 2001 07:33:22 +0000 (07:33 +0000)]
Use proper quoting so brackets appear in the test program.
Jim Meyering [Wed, 16 May 2001 07:30:54 +0000 (07:30 +0000)]
.
Jim Meyering [Tue, 15 May 2001 15:46:59 +0000 (15:46 +0000)]
*** empty log message ***
Jim Meyering [Tue, 15 May 2001 15:45:58 +0000 (15:45 +0000)]
(parse_obsolescent_option): Use t_count_lines, not
count_lines, in error message.
Jim Meyering [Tue, 15 May 2001 14:02:28 +0000 (14:02 +0000)]
*** empty log message ***
Jim Meyering [Tue, 15 May 2001 14:02:19 +0000 (14:02 +0000)]
Use proper quoting so brackets appear in the test program.
Jim Meyering [Tue, 15 May 2001 10:11:19 +0000 (10:11 +0000)]
*** empty log message ***
Jim Meyering [Tue, 15 May 2001 10:11:15 +0000 (10:11 +0000)]
(struct fileinfo.linkmode): Now st_mode.
(print_color_indicator, print_name_with_quoting, print_type_indicator,
length_of_file_name_and_frills):
Use mode_t, not unsigned int, to store modes.
(dired_dump_obstack): Do not assume size fits in 'int'.
(get_link_name): readlink returns ssize_t, not int.
(make_link_path): Store buffer size as size_t, not int.
(print_long_format): Use unsigned long, not unsigned, to print
nlink_t, uid_t, gid_t, major_t, minor_t.
Jim Meyering [Sun, 13 May 2001 18:24:57 +0000 (18:24 +0000)]
*** empty log message ***
Jim Meyering [Sun, 13 May 2001 18:24:44 +0000 (18:24 +0000)]
(major_t, minor_t): Define to unsigned int if undefined.
Jim Meyering [Sun, 13 May 2001 18:23:39 +0000 (18:23 +0000)]
*** empty log message ***
Jim Meyering [Sun, 13 May 2001 18:23:05 +0000 (18:23 +0000)]
(main): Check for NODEV device only if NODEV is defined.
Jim Meyering [Sun, 13 May 2001 18:22:54 +0000 (18:22 +0000)]
(NODEV): Remove, undoing previous change.
Jim Meyering [Sun, 13 May 2001 15:29:21 +0000 (15:29 +0000)]
*** empty log message ***
Jim Meyering [Sun, 13 May 2001 15:29:15 +0000 (15:29 +0000)]
(dir_name, dir_len): Define to different names
to avoid shadowing warnings due to new declarations from dirname.h.
Jim Meyering [Sun, 13 May 2001 15:23:54 +0000 (15:23 +0000)]
*** empty log message ***
Jim Meyering [Sun, 13 May 2001 15:23:20 +0000 (15:23 +0000)]
Add new --dereference-command-line option.
-H now means this instead of meaning --si, as POSIX requires.
Jim Meyering [Sun, 13 May 2001 15:22:28 +0000 (15:22 +0000)]
*** empty log message ***
Jim Meyering [Sun, 13 May 2001 15:22:23 +0000 (15:22 +0000)]
(run_tests): Fail if any test name is longer than 12 bytes.
Jim Meyering [Sun, 13 May 2001 15:21:50 +0000 (15:21 +0000)]
Shorten test names so the length of a resulting file name doesn't exceed 14.
Jim Meyering [Sun, 13 May 2001 15:14:20 +0000 (15:14 +0000)]
Rename slink-dir test to slink-dir-dF. Add new tests
slink-dir-F, slink-dir-dFH, slink-dir-dFL.
Jim Meyering [Sun, 13 May 2001 15:14:00 +0000 (15:14 +0000)]
(enum Dereference_symlink): New type.
(dereference): New var, replacing trace_links, which was removed.
(long_options, main, decode_switches, gobble_file, usage):
Implement the changes.
Jim Meyering [Sun, 13 May 2001 10:21:25 +0000 (10:21 +0000)]
*** empty log message ***
Jim Meyering [Sun, 13 May 2001 10:21:08 +0000 (10:21 +0000)]
(NODEV): New macro, if not already defined.
Jim Meyering [Sun, 13 May 2001 10:20:36 +0000 (10:20 +0000)]
(main): Check for overflow when converting out of uintmax_t.
Do not assume that major_t and minor_t are no wider than int.
Check for makedev failures. Convert device numbers via uintmax_t, not
unsigned long, just in case. Coalesce duplicate code in the block and
character device cases.
Jim Meyering [Sat, 12 May 2001 20:55:19 +0000 (20:55 +0000)]
.
Jim Meyering [Sat, 12 May 2001 16:06:36 +0000 (16:06 +0000)]
*** empty log message ***
Jim Meyering [Sat, 12 May 2001 16:05:51 +0000 (16:05 +0000)]
Include "dirname.h".
(base_name): Remove decl; now in dirname.h.
Jim Meyering [Sat, 12 May 2001 16:05:12 +0000 (16:05 +0000)]
Include "dirname.h".
(base_name, strip_trailing_slashes): Remove decls; now in dirname.h.
(main): Use base_len instead of strip_trailing_slashes to strip
trailing slashes.
Jim Meyering [Sat, 12 May 2001 16:03:19 +0000 (16:03 +0000)]
(strip_trailing_slashes): Remove decl; now in dirname.h.
(main): Use dir_len rather than dir_name_r.
Jim Meyering [Sat, 12 May 2001 15:50:50 +0000 (15:50 +0000)]
*** empty log message ***
Jim Meyering [Sat, 12 May 2001 15:50:27 +0000 (15:50 +0000)]
(ISSLASH): Remove; now in dirname.h.
(strip_trailing_slashes): Return nonzero if
a slash was stripped. Do not strip the last slash after a
file system prefix.
Jim Meyering [Sat, 12 May 2001 15:48:00 +0000 (15:48 +0000)]
(base_name): Remove; now in dirname.h.
(STREQ): Remove.
(same_name): Handle the case where the basename ends in trailing '/'.
Jim Meyering [Sat, 12 May 2001 15:46:36 +0000 (15:46 +0000)]
(DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN): New macros.
(base_name, base_len, dir_len, strip_trailing_slashes): New decls.
Jim Meyering [Sat, 12 May 2001 15:45:43 +0000 (15:45 +0000)]
(DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN, ISSLASH): Remove; now in dirname.h.
(path_concat): Use base_len to compute
base length, not strlen; this means we cannot rely on memcpy
to null-terminate.
Jim Meyering [Sat, 12 May 2001 15:41:11 +0000 (15:41 +0000)]
Use "", not <> to include non-system header files.
Jim Meyering [Sat, 12 May 2001 15:40:47 +0000 (15:40 +0000)]
Use "", not <> to include non-system header files.
Jim Meyering [Sat, 12 May 2001 15:39:45 +0000 (15:39 +0000)]
Use "", not <> to include dirname.h.
Jim Meyering [Sat, 12 May 2001 15:38:00 +0000 (15:38 +0000)]
(FILESYSTEM_PREFIX_LEN, ISSLASH): Remove; now in dirname.h.
Include <string.h> instead of <stdlib.h>.
Do not include <assert.h>; no longer needed.
Include xalloc.h.
(memrchr): Remove decl.
(dir_name_r): Remove.
(dir_len): Renamed from dirlen. All callers changed.
Rewrite in terms of base_name, for simplicity and consistency.
(dir_name): Never return NULL. All callers changed.
Do not include <stdlib.h> in test program; no longer needed.
return 0; is fine for test program.
Jim Meyering [Sat, 12 May 2001 14:23:49 +0000 (14:23 +0000)]
(FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Remove; now in dirname.h.
Do not include <stdio.h>, <assert.h>; no longer needed.
Include <string.h>, <dirname.h>.
(base_name): Allow file names ending in slashes, other than names
that are all slashes. In this case, return the basename followed
by the slashes. This is more general, and can be used in places
where the original base_name purposely had an assertion failure.
(base_len): New function.
Jim Meyering [Sat, 12 May 2001 14:20:43 +0000 (14:20 +0000)]
(base_name): Remove; now in dirname.h.
Include <dirname.h> after size_t is defined.
(find_backup_file_name, max_backup_version): Use base_len instead of
rolling it ourselves.
Handle the case of "" and (on DOS) "C:" correctly.
Jim Meyering [Sat, 12 May 2001 14:13:36 +0000 (14:13 +0000)]
(ISSLASH, base_name): Remove; now in dirname.h.
Include <dirname.h> after size_t is defined.
(addext): Use base_len to trim redundant
trailing slashes instead of doing it ourselves.
But do not trim the last slash if it is not redundant.
Jim Meyering [Sat, 12 May 2001 10:05:42 +0000 (10:05 +0000)]
Include dirname.h.
(strip_trailing_slashes): Remove decl; now in dirname.h.
Jim Meyering [Sat, 12 May 2001 10:05:15 +0000 (10:05 +0000)]
Include dirname.h.
(strip_trailing_slashes): Remove decl; now in dirname.h.
Jim Meyering [Sat, 12 May 2001 10:04:13 +0000 (10:04 +0000)]
.
Jim Meyering [Sat, 12 May 2001 10:03:16 +0000 (10:03 +0000)]
*** empty log message ***
Jim Meyering [Sat, 12 May 2001 10:03:07 +0000 (10:03 +0000)]
(strip_trailing_slashes): Likewise.
(find_mount_point): No need to strip trailing
slashes before invoking new dir_name.
Jim Meyering [Sat, 12 May 2001 10:00:52 +0000 (10:00 +0000)]
(strip_trailing_slashes): Remove; now in dirname.h.
(make_path_private): Use dir_len instead of
dir_name, and avoid an extra mealloc call.
Jim Meyering [Sat, 12 May 2001 09:58:03 +0000 (09:58 +0000)]
(copy_internal): Remove the code that tested for NULL
dir_name return value. That can't happen.
Jim Meyering [Sat, 12 May 2001 09:54:19 +0000 (09:54 +0000)]
Include "dirname.h".
(strip_trailing_slashes_2): Remove; now done by
strip_trailing_slashes. All callers changed.
Jim Meyering [Sat, 12 May 2001 09:53:45 +0000 (09:53 +0000)]
(base_name): Remove decl; now in dirname.h.
Jim Meyering [Sat, 12 May 2001 09:52:56 +0000 (09:52 +0000)]
Include dirname.h, to get base_name
Jim Meyering [Sat, 12 May 2001 09:51:59 +0000 (09:51 +0000)]
include dirname.h.