Jim Meyering
6bcd4b08ba
(main): Call initialize_main.
2003-06-17 18:13:23 +00:00
Jim Meyering
8eb2464d3e
(main): Handle argc < optind.
2003-05-10 14:33:24 +00:00
Jim Meyering
a5f14f167e
Remove all uses of `PARAMS'.
2002-12-15 20:54:29 +00:00
Jim Meyering
0327689de0
(get_ids): Use strtoul, not strtol. Remove some casts.
2002-09-26 08:39:20 +00:00
Jim Meyering
c5c97ee23a
No longer include values.h.
...
It was required solely for now-removed reference to BITSPERBYTE.
2002-09-21 14:24:18 +00:00
Jim Meyering
0ea01d21a3
(skip): Add casts to avoid warning about comparison
...
between signed and unsigned. Also rearrange range-checking
comparisons to make them more readable.
2002-09-02 07:38:53 +00:00
Jim Meyering
4006f4e672
Change exit (0)' to exit (EXIT_SUCCESS)',
...
`exit (1)' to `exit (EXIT_FAILURE)', and
`usage (1)' to `usage (EXIT_FAILURE)'.
2002-08-31 08:52:10 +00:00
Jim Meyering
7488703199
Change error (1, ...' to error (EXIT_FAILURE, ...'.
2002-08-30 23:04:53 +00:00
Jim Meyering
d23970e52e
(usage): Use the PACKAGE_BUGREPORT e-mail address, rather than hard-coding it.
2002-07-02 09:05:33 +00:00
Jim Meyering
cd0be06ed2
(strip): Change wording in diagnostic.
2002-03-10 22:23:19 +00:00
Jim Meyering
f3ac2e7839
Use new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTION
...
instead of hard-coding --help and --version descriptions.
2001-12-02 22:26:57 +00:00
Jim Meyering
072b27d4d2
(usage): Note that ``Mandatory arguments to long options are mandatory
...
for short options too.''
2001-11-23 20:29:56 +00:00
Jim Meyering
b78de3e724
Split usage strings so that --help and --version
...
descriptions are alone in their own string.
2001-11-23 20:10:25 +00:00
Jim Meyering
a5f1ced62a
(usage): Split --help output into smaller pieces.
...
Use fputs, not printf.
2001-11-23 15:41:16 +00:00
Jim Meyering
a2e185c904
(cp_option_init): Initialize new member.
2001-11-22 19:48:17 +00:00
Jim Meyering
8cd4321b8b
(cp_option_init): Initialize new member.
...
(main): dest_info_init now takes a parameter.
2001-11-22 10:54:05 +00:00
Jim Meyering
8429ee57dd
(cp_option_init): Initialize new member, preserve_links.
2001-10-13 19:40:31 +00:00
Jim Meyering
6d334f8f62
(cp_option_init): Don't set it.
2001-10-13 19:12:52 +00:00
Jim Meyering
66372e29eb
* src/copy.h (struct cp_options): Rename members:
...
s/preserve_owner_and_group/preserve_ownership/, and
s/preserve_chmod_bits/preserve_mode/.
* src/copy.c, src/cp.c, src/install.c, src/mv.c: Update all uses.
2001-10-13 17:24:38 +00:00
Jim Meyering
e1b81c9b74
(main): Reflect that hash_init now takes no arguments.
2001-10-06 16:46:06 +00:00
Jim Meyering
eca1e2d890
(main): Call dest_info_init if necessary.
2001-09-28 19:55:06 +00:00
Jim Meyering
109d7b4386
(full_write): Remove decl; not needed.
2001-08-31 07:21:23 +00:00
Jim Meyering
fdb24f917f
(cp_option_init): Adjust initialization of `interactive',
...
and initialize new member, stdin_tty.
2001-08-13 08:36:54 +00:00
Jim Meyering
f4795cc6b3
For both ln and install, when using `--backup=simple --suffix=S',
...
the suffix `S' wasn't used.
(main): Actually use the local variable, `backup_suffix_string'.
2000-12-25 11:07:20 +00:00
Jim Meyering
c217428f39
(main): Rename local symbolic_mode' to specified_mode'.
2000-09-30 08:20:23 +00:00
Jim Meyering
41939d7bfe
Remove option-describing comment block.
2000-09-30 08:19:34 +00:00
Jim Meyering
39da0cbc3b
(cp_option_init): Once again make it so install always
...
unlinks an existing destination before trying to open it for writing.
Otherwise, installing onto a running shared library would make the
running program malfunction.
2000-09-22 19:30:29 +00:00
Jim Meyering
799114aa8c
(cp_option_init): Initialize new members.
2000-09-03 18:50:49 +00:00
Jim Meyering
5b55669c7a
(cp_option_init): Initialize to DEREF_ALWAYS, not `1'.
2000-08-20 20:49:44 +00:00
Jim Meyering
6fa66b8414
(main): Invoke xalloc_die instead of printing our own message.
2000-08-08 07:11:30 +00:00
Jim Meyering
b905d7f0b5
Convert "`%s'" in format strings to "%s", and wrap each
...
corresponding argument in a `quote (...)' call.
Improve a couple diagnostics.
2000-07-15 13:32:02 +00:00
Jim Meyering
2d5e52c70d
(usage): Document that -v is a synonym for --verbose.
2000-06-03 08:09:53 +00:00
Jim Meyering
81b16373ae
Arrange to call close_stdout only upon exit.
2000-05-13 06:49:53 +00:00
Jim Meyering
624dd54796
(change_attributes): Don't remove the destination file upon failure.
2000-05-01 14:09:19 +00:00
Jim Meyering
ef34c8704c
[checked in with intention to back out...]
...
(change_attributes): Unlink the destination file
if either of the chown or the chmod calls fails. Don't even attempt
the chmod if the chown fails.
Suggestion from Marc Olzheim.
2000-05-01 13:55:09 +00:00
Jim Meyering
650ea2e0b4
Document that while the --backup option takes an
...
optional argument, the -b option accepts none.
(main): Use `backup type' in call to xget_version, not the
now-deprecated `--version-control'.
2000-04-08 06:46:20 +00:00
Jim Meyering
dda6c3fdc4
(install_file_to_path): Always use install_file_in_file.
...
Based on a patch from Adam Klein via Michael Stone.
2000-02-27 15:01:21 +00:00
Jim Meyering
362c45be17
Convert --backup to take an optional argument.
...
Deprecate --version-control (-V) in comments.
(usage): Remove mention of --version-control.
(main): Make -V warn then fall through into --backup case.
[--backup case]: Handle optional arg.
1999-10-31 10:42:12 +00:00
Jim Meyering
6fc1cc1b6a
(isodigit): Remove unused macro.
...
(mode, cp_option_init, DIR_MODE): Use proper mode_t types and macros.
Don't assume the traditional Unix values for mode bits.
1999-04-26 12:49:16 +00:00
Jim Meyering
a7d0351c20
(install_file_in_dir): Qualify a char* with the `const' keyword.
1999-04-01 05:09:59 +00:00
Jim Meyering
beb464c0ea
(main): Qualify a char* with the `const' keyword.
1999-04-01 05:08:22 +00:00
Jim Meyering
d8a18c33e8
(main): Qualify a char* with the `const' keyword.
1999-04-01 05:07:51 +00:00
Jim Meyering
667799f7e2
Don't include closeout.h or version-etc.h explicitly. Now, they're included via sys2.h.
1999-03-31 05:59:13 +00:00
Jim Meyering
319976a665
(strip): Use standard "cannot fork" message.
...
Check for strip nonzero exit status.
1999-03-30 04:43:53 +00:00
Jim Meyering
9d044f6b96
(strip): Use pid_t, not int.
1999-03-27 14:32:06 +00:00
Jim Meyering
f42367c3e7
No longer include long-options.h.
...
Include version-etc.h instead.
(PROGRAM_NAME, AUTHORS): Define.
[long_options]: Add entries for --help and --version.
Remove parse_long_options call.
(main) [getopt switch]: Add a case for each of --help and --version.
1999-03-26 14:22:51 +00:00
Jim Meyering
61fa70ac19
Include long-options.h
...
[long_options]: Remove the "help" and "version" entries.
(main): Use parse_long_options, including author name(s).
Remove the show_version and show_help blocks.
1999-03-04 05:09:05 +00:00
Jim Meyering
0fbe67a146
(main): Set x.backup_type only if backups are requested.
...
(cp_option_init): Initialize backup_type.
(backup_type): Remove unused variable.
1999-02-14 02:36:16 +00:00
Jim Meyering
06f14ae760
Remove declarations of base_name and get_version.
...
(main): Don't call getenv ("VERSION_CONTROL"); xget_version does it.
Use xget_version and function-style XARGMATCH.
1999-01-16 16:14:31 +00:00
Jim Meyering
6408b52640
(UID_T_MAX, GID_T_MAX): Remove definitions.
1998-12-18 14:09:19 +00:00