Commit Graph
24019 Commits
Author SHA1 Message Date
Jim Meyering 4f5394d32e Reflect renaming:
s/gl_LIST_MOUNTED_FILESYSTEMS/gl_LIST_MOUNTED_FILE_SYSTEMS/
2004-06-30 22:44:55 +00:00
Jim Meyering acf01caa8e *** empty log message *** 2004-06-30 22:44:15 +00:00
Jim Meyering ce706af0f6 (gl_LIST_MOUNTED_FILE_SYSTEMS): Renamed from
gl_LIST_MOUNTED_FILESYSTEMS.  All uses changed.
2004-06-30 22:44:10 +00:00
Jim Meyering 1df327623c Change filesystem' to file system', mostly in comments.
Also in one `checking ... ' message.
2004-06-30 22:43:06 +00:00
Jim Meyering f30a347be6 bump serial number 2004-06-30 22:42:11 +00:00
Jim Meyering d8120c8199 (gl_AC_DOS): Define FILE_SYSTEM_PREFIX_LEN, not
FILESYSTEM_PREFIX_LEN.  Generate
FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX, not
FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.  Generate
FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR, not
FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
2004-06-30 22:41:59 +00:00
Jim Meyering ef5824798f . 2004-06-30 22:41:35 +00:00
Jim Meyering 53d0e321ec . 2004-06-30 22:40:52 +00:00
Jim Meyering 6e7b53a45e (FILE_SYSTEM_PREFIX_LEN): Renamed from
FILESYSTEM_PREFIX_LEN.  All uses changed.
2004-06-30 22:40:47 +00:00
Jim Meyering 1a9ba9e774 Use `file system', not filesystem in a comment. 2004-06-30 22:40:20 +00:00
Jim Meyering 7f540c0660 (read_file_system_list): Renamed from read_filesystem_list.
All definitions and uses changed.
2004-06-30 22:39:59 +00:00
Jim Meyering c56f9d7cb0 Use `file system', not filesystem in a comment. 2004-06-30 22:39:13 +00:00
Jim Meyering 49d4a73415 (FILE_SYSTEM_PREFIX_LEN): Renamed from
FILESYSTEM_PREFIX_LEN.  All uses changed.
2004-06-30 22:38:03 +00:00
Jim Meyering 937b5e0826 (read_file_system_list): Renamed from
read_filesystem_list.  All definitions and uses changed.
2004-06-30 22:37:20 +00:00
Jim Meyering c791a273d0 (FILE_SYSTEM_PREFIX_LEN): Renamed from
FILESYSTEM_PREFIX_LEN.  All uses changed.
2004-06-30 22:37:03 +00:00
Jim Meyering 8676d120af *** empty log message *** 2004-06-30 22:35:51 +00:00
Jim Meyering 83bb4fbc71 (EXTRA_DIST): Add .x-sc_file_system. 2004-06-30 22:35:46 +00:00
Jim Meyering 15e38ec27d Use "file system" rather than "filesystem" in comments. 2004-06-30 22:33:40 +00:00
Jim Meyering 7c3c6876ab . 2004-06-30 22:33:16 +00:00
Jim Meyering 851acad0ce (usage, main): Output "file system" rather than "filesystem".
(long_options, usage): Rename "--filesystem" to
"--file-system".  But keep the old name around, for compatibility reasons.
2004-06-30 22:31:43 +00:00
Jim Meyering 3365c5f5e3 (usage, main): Output "file system" rather than "filesystem". 2004-06-30 22:31:43 +00:00
Jim Meyering 4d24e71891 (sc_file_system): New target.
(syntax-check-rules): Add it.
2004-06-30 22:30:44 +00:00
Jim Meyering fff64c7ec2 *** empty log message *** 2004-06-30 22:30:03 +00:00
Jim Meyering 17c6fff6ba *** empty log message *** 2004-06-30 22:17:51 +00:00
Jim Meyering 26fffc510b Use "file system" rather than "filesystem". 2004-06-30 22:15:59 +00:00
Jim Meyering 11e80aab17 *** empty log message *** 2004-06-30 22:09:36 +00:00
Jim Meyering 5e5f4bc2fb Standardize on "file system" rather
than "filesystem", as POSIX prefers it with a space.
2004-06-30 22:09:00 +00:00
Jim Meyering 697c4afab5 . 2004-06-30 18:42:27 +00:00
Jim Meyering 1815011d0a Add support for --no-target-directory option. 2004-06-30 18:42:12 +00:00
Jim Meyering b2a58b9d3c (Common options, Target directory, cp
invocation, install invocation, mv invocation, ln invocation):
Likewise.
(link invocation): Explain how to rewrite link using ln now
that we have --no-target-directory.
(ln invocation): Explain that --no-target-directory subsumes
--no-dereference.
(unlink invocation): Modify wording to match new wording in
link invocation.
2004-06-30 18:42:01 +00:00
Jim Meyering f421438665 *** empty log message *** 2004-06-30 18:41:49 +00:00
Jim Meyering ba039472a8 Add support for --no-target-directory option.
(NO_TARGET_DIRECTORY_OPTION): New constant.
(long_options, usage, main): Add support for
2004-06-30 18:40:40 +00:00
Jim Meyering 0d27d8a0f8 Add support for --no-target-directory option.
(NO_TARGET_DIRECTORY_OPTION): New constant.
(long_options, usage, main): Add support for
(enum): Sort values.
2004-06-30 18:39:42 +00:00
Jim Meyering ab7ebdc363 Add support for --no-target-directory option.
(NO_TARGET_DIRECTORY_OPTION): New constant.
(long_options, usage, main): Add support for
2004-06-30 18:39:18 +00:00
Jim Meyering 7ed69a972c Add support for --no-target-directory option.
(NO_TARGET_DIRECTORY_OPTION): New constant.
(long_opts, usage, do_copy, main): Add support for
2004-06-30 18:38:24 +00:00
Jim Meyering 273624ce56 *** empty log message *** 2004-06-29 14:42:19 +00:00
Jim Meyering 67930cefbe (install invocation): Document --target-directory in synopsis, too. 2004-06-29 14:41:51 +00:00
Jim Meyering 9730554ffa *** empty log message *** 2004-06-29 14:40:51 +00:00
Jim Meyering 0ec60860b6 Add support for 'install --target-directory', an option
that has been documented for years but not implemented (!).

(TARGET_DIRECTORY_OPTION): New var.
(long_options, main, usage): Add --target-directory.
(target_directory_operand): New function, stolen from mv.c.
(main): Use it.  Check for -d and --target-directory.
Alter wording of diagnostics to match other programs.
2004-06-29 14:40:47 +00:00
Jim Meyering 04dd5231dc *** empty log message *** 2004-06-29 14:38:36 +00:00
Jim Meyering 791845693a Don't let verbose-mode output from a subshell obscure actual differences.
Turn off command-echoing just before
invoking subshell, then turn it back on if VERBOSE=yes afterward.
2004-06-29 14:38:32 +00:00
Jim Meyering d69237e2d6 Add a test to verify that we get the new
diagnostic when failing to copy through a symlink-to-inaccessible-dir.
2004-06-28 18:47:24 +00:00
Jim Meyering 14af6eb462 *** empty log message *** 2004-06-28 18:47:09 +00:00
Jim Meyering fac33c194c Don't assume "mv --target=nonexistentdir" will complain about the arg count.
Adjust to new (briefer) diagnostics.
2004-06-28 18:41:01 +00:00
Jim Meyering 6860c032da Use more-consistent rules among cp, ln, and mv when dealing with
last operands that are (or look like) directories.

	* src/cp.c (target_directory_operand): New, nearly-common function,
	It reports an error if the destination appears to be a directory
	(e.g., because it has a trailing slash) but is not.
	* src/ln.c, src/mv.c: Likewise.
	* src/cp.c (do_copy): Use it.
	* src/ln.c (main): Likewise.
	* src/mv.c (main): Likewise.

	* src/cp.c (do_copy): Don't output a usage message because of file
	problems (e.g., an operand is not a directory).  Use it only for
	syntax.  Standardize on "target %s is not a directory" for the
	diagnostic.
	* src/ln.c (main): Likewise.
	* src/mv.c (main): Likewise.

	* src/cp.c (do_copy): Remove test for trailing slash, since
	target_directory_operand now does this.
	* src/ln.c (main): Likewise.
	* src/mv.c (movefile): Likewise.

	* src/ln.c (isdir): Remove decl; no longer needed.
	* src/mv.c (isdir, lstat): Likewise.

	* src/ln.c (main): Use int to count to argc, not unsigned int.
	This handles negative operand counts.
	* src/mv.c (main): Likewise.

	* src/mv.c (do_move): Don't call hash_init; expect the caller to
	do it, for consistency with cp.c and ln.c.  All callers changed.
	(movefile): dest_is_dir parameter is now bool, not int.
	(main): Standardize on "missing destination file operand after %s"
	for the diagnostic, for consistency with cp.c.
2004-06-28 18:39:28 +00:00
Jim Meyering 59c3b53926 Use more-consistent rules among cp, ln, and mv when dealing with
last operands that are (or look like) directories.

	* src/cp.c (target_directory_operand): New, nearly-common function,
	It reports an error if the destination appears to be a directory
	(e.g., because it has a trailing slash) but is not.
	* src/ln.c, src/mv.c: Likewise.
	* src/cp.c (do_copy): Use it.
	* src/ln.c (main): Likewise.
	* src/mv.c (main): Likewise.

	* src/cp.c (do_copy): Don't output a usage message because of file
	problems (e.g., an operand is not a directory).  Use it only for
	syntax.  Standardize on "target %s is not a directory" for the
	diagnostic.
	* src/ln.c (main): Likewise.
	* src/mv.c (main): Likewise.

	* src/cp.c (do_copy): Remove test for trailing slash, since
	target_directory_operand now does this.
	* src/ln.c (main): Likewise.
	* src/mv.c (movefile): Likewise.

	* src/cp.c (main): Reject multiple target directories.
	Check whether a specified target is a directory when parsing the
	options, using stat.  This gives more-accurate diagnostics.
	* src/ln.c (main): Likewise.

	* src/ln.c (isdir): Remove decl; no longer needed.
	* src/mv.c (isdir, lstat): Likewise.

	* src/ln.c (do_link): New arg dest_is_dir.  All uses changed.
	Don't check the destination ourself; rely on dest_is_dir.
	This way we can avoid lstatting the destination in the
	usual case, and in the worst case we lstat 1, not 3 times.
	Don't bother to unlink unless link failed; this saves a syscall.
	Remove unnecessary backup_succeeded flag;
	it was identical to "dest_backup != NULL".

	* src/ln.c (main): Use int to count to argc, not unsigned int.
	This handles negative operand counts.
	* src/mv.c (main): Likewise.
2004-06-28 18:38:05 +00:00
Jim Meyering 8340545c8b Use more-consistent rules among cp, ln, and mv when dealing with
last operands that are (or look like) directories.

	* src/cp.c (target_directory_operand): New, nearly-common function,
	It reports an error if the destination appears to be a directory
	(e.g., because it has a trailing slash) but is not.
	* src/cp.c (do_copy): Use it.

	* src/cp.c (do_copy): Don't assume argc is positive.
	Don't bother to lstat dest, since copy() will do that for us.
	Use "const" to avoid the need for cast.

	* src/cp.c (do_copy): Don't output a usage message because of file
	problems (e.g., an operand is not a directory).  Use it only for
	syntax.  Standardize on "target %s is not a directory" for the
	diagnostic.

	* src/cp.c (do_copy): Remove test for trailing slash, since
	target_directory_operand now does this.

	* src/cp.c (main): Reject multiple target directories.
	Check whether a specified target is a directory when parsing the
	options, using stat.  This gives more-accurate diagnostics.
2004-06-28 18:35:54 +00:00
Jim Meyering 86e30699e4 (usage): Fix copy+paste error in description of
--target-directory: s/move/copy/.  From Paul Jarc.
2004-06-28 18:31:46 +00:00
Jim Meyering 627db84915 *** empty log message *** 2004-06-28 18:30:47 +00:00
Jim Meyering 3b4126ffbd *** empty log message *** 2004-06-28 08:25:56 +00:00