Commit Graph
18873 Commits
Author SHA1 Message Date
Jim Meyering de9faabfe6 *** empty log message *** 2004-07-07 09:28:24 +00:00
Jim Meyering f7975d11d7 (canonicalize_filename_mode): Remove do-while(0) loop.
Replace each corresponding `break' stmt with `continue'.
2004-07-07 09:28:15 +00:00
Jim Meyering 0f3da8f425 . 2004-07-06 17:30:29 +00:00
Jim Meyering bb11ba8316 . 2004-07-06 17:00:53 +00:00
Jim Meyering 2b19667f16 Include "stat-macros.h".
(canonicalize_filename_mode): Remove #ifdef S_ISLNK, now that
S_ISLNK is guaranteed to be defined (via stat-macros.h).
2004-07-06 17:00:36 +00:00
Jim Meyering 260a2f0a47 *** empty log message *** 2004-07-06 16:56:30 +00:00
Jim Meyering b2c18c67d4 (libfetish_a_SOURCES): Add canonicalize.c unconditionally. 2004-07-06 16:56:21 +00:00
Jim Meyering 51dfe9cc31 (canonicalize_mode_t): New type. 2004-07-06 16:55:40 +00:00
Jim Meyering 17b22ef83f Include "file-type.h".
(canonicalize_filename_mode): New function, based on
canonicalize_file_name, supports three canonicalize modes.
(canonicalize_file_name)
[!HAVE_CANONICALIZE_FILE_NAME && !HAVE_RESOLVEPATH]: Use it.
2004-07-06 16:55:26 +00:00
Jim Meyering e86c162eed *** empty log message *** 2004-07-06 16:17:25 +00:00
Jim Meyering 859fcb7eec (AC_FUNC_CANONICALIZE_FILE_NAME): Do not add canonicalize.c here. 2004-07-06 16:17:10 +00:00
Jim Meyering 48e3ae2b2f *** empty log message *** 2004-07-06 16:16:01 +00:00
Jim Meyering 159c3f467e (readlink invocation): Document new
"readlink -f" behaviour and new canonicalize options, -e and -m.
2004-07-06 16:15:45 +00:00
Jim Meyering 0966feecc2 . 2004-07-06 16:14:45 +00:00
Jim Meyering 06291f1741 renamed from ../misc/readline 2004-07-06 16:14:40 +00:00
Jim Meyering 0206598b8b . 2004-07-06 16:14:19 +00:00
Jim Meyering 6ec3b19040 From Dmitry V. Levin 2004-07-06 16:14:15 +00:00
Jim Meyering 519533ed8e (SUBDIRS): Add readlink. 2004-07-06 16:13:31 +00:00
Jim Meyering bb16bf0cd5 (AC_CONFIG_FILES): Add tests/readlink/Makefile. 2004-07-06 16:13:17 +00:00
Jim Meyering ef09b8426a (TESTS): Remove basic readlink test. 2004-07-06 16:13:01 +00:00
Jim Meyering 037b7fc0b9 renamed to ../readlink/rl-1 2004-07-06 16:12:39 +00:00
Jim Meyering e0b8973bd4 Change "readlink -f" to be more compatible with prior implementations.
Add more canonicalize options, -e and -m.
Add comprehensive tests for all readlink modes.

(longopts): Add new options.
(usage): Document them.
(canonicalize_fname): New proxy function.
(main): Handle new options.
2004-07-06 16:11:03 +00:00
Jim Meyering 554dc97975 *** empty log message *** 2004-07-05 08:41:43 +00:00
Jim Meyering a8aa538b09 (path_concat): Improve comment. From Paul Eggert. 2004-07-05 08:41:13 +00:00
Jim Meyering 325a75af63 *** empty log message *** 2004-07-04 20:14:52 +00:00
Jim Meyering 034b4caa6d (mempcpy): Don't define if a system header defines it.
Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
(longest_relative_suffix): New function.
(path_concat): Use it.  Assume first argument is not NULL.
Port to DOS.  Omit redundant separators.
Report an error instead of returning NULL.
Use mempcpy instead of memcpy.
(xpath_concat): Remove: not declared or used.
2004-07-04 20:14:44 +00:00
Jim Meyering fb4cd3cc3f *** empty log message *** 2004-07-04 18:13:02 +00:00
Jim Meyering 5e1589ace8 (copy_internal): Add a FIXME comment. 2004-07-04 18:12:55 +00:00
Jim Meyering 6ce20e8caa (canonicalize_file_name): Assume that path_concat never returns NULL. 2004-07-04 18:03:07 +00:00
Jim Meyering 19dc6a7964 *** empty log message *** 2004-07-04 18:01:56 +00:00
Jim Meyering 10da95cf3f (main): Don't pass NULL first argument to path_concat.
This cleans up the semantics a bit, as we no longer try to open the
same file twice.
2004-07-04 18:01:04 +00:00
Jim Meyering cc4105f095 (movefile): Assume path_concat returns non-NULL. 2004-07-04 17:47:29 +00:00
Jim Meyering ae206c4b1c (do_copy): Assume path_concat returns non-NULL.
(make_path_private): 2nd arg is now size_t, not int,
to avoid problem when path_concat dir name is longer than 2 GiB (!).
2004-07-04 17:47:09 +00:00
Jim Meyering aead5906dc (copy_dir): Assume path_concat returns non-NULL. 2004-07-04 17:46:17 +00:00
Jim Meyering d7da2ba957 *** empty log message *** 2004-07-04 17:44:24 +00:00
Jim Meyering a55d4bffcd (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
prerequisite modules now handle the DOS stuff.
Don't check for unistd.h.
2004-07-04 17:44:17 +00:00
Jim Meyering ea32998672 . 2004-07-02 17:02:32 +00:00
Jim Meyering ebc78a4613 *** empty log message *** 2004-07-02 17:02:20 +00:00
Jim Meyering 57fcc427c0 (Common options, Target directory, cp invocation,
install invocation, mv invocation, ln invocation): Add -t as a
short option for --target-directory, and -T as a short option for
--no-target-directory.  Clean up relevant synopses a bit, so that
the language is similar for all.
2004-07-02 17:02:15 +00:00
Jim Meyering bc012e8ad9 . 2004-07-02 17:01:30 +00:00
Jim Meyering 9f3628bd45 Add short names -t and -T for --target-directory
and --no-target-directory options, respectively.

(NO_TARGET_DIRECTORY_OPTION, TARGET_DIRECTORY_OPTION):
Remove.  All uses changed to 'T' and 't', respectively.

(long_options, main, usage): Add -t and -T as
aliases for --target-directory and --no-target-directory,
respectively.
2004-07-02 17:00:53 +00:00
Jim Meyering 1b32f828b0 Add short names -t and -T for --target-directory
and --no-target-directory options, respectively.

(NO_TARGET_DIRECTORY_OPTION, TARGET_DIRECTORY_OPTION):
Remove.  All uses changed to 'T' and 't', respectively.

(long_opts, usage, do_copy, main): Add -t and -T as
aliases for --target-directory and --no-target-directory,
respectively.
2004-07-02 17:00:10 +00:00
Jim Meyering 4695f1e3b7 * NEWS: Add short names -t and -T for --target-directory
and --no-target-directory options, respectively.
2004-07-02 16:59:41 +00:00
Jim Meyering 6433f83ccb . 2004-07-02 16:34:40 +00:00
Jim Meyering 6119eaca83 Put the right amount of space at sentence ends.
Make sure "i.e." and "e.g." are followed by commas (the GNU style).
Put blank lines before and after every @example, prefer the
previous line to end in ":" (when not a sentence end, for consistency),
and prepend @noindent to the following line when appropriate.
In examples, use "--" arguments when needed to prevent undesired
interpretation of operands as options.
Use "file name" rather than "filename", as per the GNU coding standards.
Remove unwanted spaces before @footnote.
Use "---" when appropriate, instead of " -- ".
Use "name" (or something like that) rather than "path" or "pathname",
since the GNU coding standards don't allow "path".
Use @acronym, @command, @minus{}, @samp in a few places,
where appropriate.
(Target directory): Clarify description of example.
(fmt invocation): Give issue number for reference, and reword
for clarity.
(sort invocation): Note that xargs without -0 also mishandles
file names containing some special characters other than newline.
(Translating): Mention that \012 is not universally portable.
Use '\0' rather than '\000'.
(Squeezing): bourne -> Bourne.
Fix unportable usage of '\n' by replacing it with '[\n*]'.
(More details about version sort): Remove unnecessary indent
in examples.
(dd invocation): Use 'kill -s USR1', not 'kill -USR1', as POSIX
indicates that the former is more portable (the latter is an XSI
extension).
(shred invocation): Use @uref rather than @url, and use a more-typical
style for the date.
(kill invocation): Clarify usage; for example, "kill -s TERM -1"
isn't allowed.
(seq invocation): Reword to avoid implying that printf necessarily
fails for numbers outside the 32-bit range.  Prefer separating
options from their operands.
(Opening the software toolbox): Give an online reference to
Robbins's article, and give a date.  Don't imply that the
current documentation is unchanged from his article.
(Putting the tools together): Rework examples so that they don't
assume the C locale; nowadays many users now operate outside the C
locale by default.  While we're at it, don't assume ASCII either.
Indent example to match actual output from GNU uniq.  Remove some
unnecessary and confusing brackets from 'tr' operands.  "Software
Tools in Pascal" is back in print, according to Amazon anyway.
Add references to Kernighan's online copies of examples.
2004-07-02 16:29:50 +00:00
Jim Meyering 7c2ebb9f5b *** empty log message *** 2004-07-02 15:18:46 +00:00
Jim Meyering 0f9eb70e23 Fail upon use of @url. Use @uref instead. 2004-07-02 15:18:43 +00:00
Jim Meyering 6b46a1435c *** empty log message *** 2004-07-02 15:14:44 +00:00
Jim Meyering cb2e51e38a (check-texinfo): Fail if a @footnote directive follows non-punctuation. 2004-07-02 15:13:42 +00:00
Jim Meyering 6ca52b93dc (check-texinfo): Disallow `filename' in .texi files. 2004-07-02 15:05:40 +00:00