Jim Meyering
52dedbfebb
Use dir_name, not dirname. Include dirname.h.
1998-12-07 06:20:50 +00:00
Jim Meyering
8670ecb6cb
(long_options): Add entry for --suffix=SUFFIX option.
1998-10-05 12:23:21 +00:00
Jim Meyering
2b8279f893
(install_file_to_path) [-D]: Create any leading
...
directories with permissions of 0755.
1998-09-20 13:44:12 +00:00
Jim Meyering
ef679d9871
(install_file_to_path): Copy the file after creating any leading directories.
...
(main) [case 'v']: Set `x.verbose' to 1, not 0.
1998-09-20 02:17:26 +00:00
Jim Meyering
08cfef16a2
update bug-reporting address
1998-09-19 17:17:58 +00:00
Jim Meyering
a607901e48
(change_timestamps): Add comment.
1998-08-02 16:22:24 +00:00
Jim Meyering
6e132bee5e
Make copy create each destination file initially
...
with mode 0600 so strip will work, then apply specified mode.
Arne Henrik Juul reported that `./ginstall -s -c -m 555 dd /tmp' failed.
1998-07-27 13:39:36 +00:00
Jim Meyering
dcfb3e037a
(main): Fix argv-handling bug in my 1998-05-09 change.
...
Reported by Don Parsons.
1998-06-01 03:28:16 +00:00
Jim Meyering
859bfc78b1
reflect additional parameter to copy
...
initialize new member: move_mode.
1998-05-11 04:07:16 +00:00
Jim Meyering
4cc5661b42
(cp_option_init): s/use_mode/set_mode/
1998-05-10 12:22:58 +00:00
Jim Meyering
24da56f990
(main): Rewrite argv-handling to be clearer.
...
(copy_file): Rewrite to use copy.c (copy).
(change_attributes): Get rid of now-(with chown wrapper)-unnecessary
`no_need_to_chown' parameter. Fix caller.
(install_file_in_file): Remove now-unnecessary `to_created' parameter.
(cp_option_init): New function.
Update several functions to take new parameter specifying copy options.
1998-05-10 03:05:44 +00:00
Jim Meyering
6684ffa826
Use #if, not #ifdef with HAVE_ macros.
...
Use #if !, not #ifndef with HAVE_ macros.
1998-03-15 17:54:50 +00:00
Jim Meyering
3086193091
(usage): Tweak spacing
1998-03-13 15:32:28 +00:00
Jim Meyering
2bdf8621d6
Declare new global, backup_type.
...
(main): Initialize backup_type unconditionally.
(copy_file): Call find_backup_file_name with new backup_type, argument.
1998-01-22 08:12:24 +00:00
Jim Meyering
0ccdf3419d
(usage): Describe -D.
1998-01-10 15:03:58 +00:00
Jim Meyering
06bab849fc
reindent a little
1998-01-05 10:11:08 +00:00
Jim Meyering
ed0becde29
reformat comment, dcl fail, dirname
1998-01-05 10:09:24 +00:00
Jim Meyering
8d64a37a77
remove SPECIAL_BITS #ifdefs
1998-01-05 10:06:41 +00:00
Jim Meyering
0520188821
Add support for marty's -D option
1998-01-05 10:06:07 +00:00
Jim Meyering
5d4f8ebdfd
(main, usage): Check for write error to stdout before exiting.
...
Include "closeout.h".
1998-01-04 22:45:28 +00:00
Jim Meyering
2fb86e2eb8
(get_ids): When otherwise unspecified, set uid and gid to -1.
1998-01-02 23:16:38 +00:00
Jim Meyering
1f1ea6519b
(get_ids): Don't cast GID_T_MAX to long, it might overflow.
1997-12-25 17:05:23 +00:00
Jim Meyering
03f9f3dbec
s/__P/PARAMS/g
1997-12-16 15:32:32 +00:00
Jim Meyering
d08a2b63dc
(BITSPERBYTE): Remove.
...
(UID_T_MAX, GID_T_MAX): Define in terms of TYPE_MAXIMUM.
1997-11-30 10:25:11 +00:00
Jim Meyering
df445b0891
Remove old-style xmalloc and xrealloc decls.
1997-10-25 22:03:55 +00:00
Jim Meyering
eae64f3a4f
Remove stpcpy decl.
1997-10-23 16:04:47 +00:00
Jim Meyering
05bbdbd786
update bug-reporting address
1997-10-07 23:53:36 +00:00
Jim Meyering
e5549867e2
change verbose messages
1997-10-06 13:30:14 +00:00
Jim Meyering
2e1d300fe5
(usage): Add a line describing --verbose.
1997-10-06 13:09:28 +00:00
Jim Meyering
16f5d0a11b
Add new option: --verbose (-v).
...
From Andreas Schwab.
1997-09-11 15:45:20 +00:00
Jim Meyering
42e5deb36c
(usage): tweak -p descr
1997-07-29 02:55:45 +00:00
Jim Meyering
b78d012e9d
Declare pointer parameters const as appropriate.
1997-07-29 02:06:25 +00:00
Jim Meyering
43e8e1245e
(main): New option --preserve-timestamps (-p).
...
(install_file_in_file): Change timestamps if requested.
(change_timestamps): New function.
(usage): Describe --preserve-timestamps.
Correct --mode description.
From Galen Hazelwood.
1997-07-29 01:57:24 +00:00
Jim Meyering
4c2adcbd56
Use base_name, not basename.
1997-05-27 11:04:41 +00:00
Jim Meyering
b7ffe8cdaf
update copyrights for 1997
1997-02-09 04:52:50 +00:00
Jim Meyering
a882d55b52
bracket bug address with <> and append a period
1997-02-01 04:24:08 +00:00
Jim Meyering
4f51b86bfb
Compare getopt_long return value against -1, not EOF. Use NULL, not '(int *) 0' as last parameter in getopt_long call.
1997-02-01 03:03:44 +00:00
Jim Meyering
d3d5565035
[_POSIX_VERSION]: Don't declare wait. That declaration
...
conflicted with the one on i386-pc-isc3.0, now that I've removed the
AC_ISC_POSIX macro and _POSIX_VERSION is no longer defined.
1996-12-11 04:48:51 +00:00
Jim Meyering
0682a5efe9
(copy_file): Allow installation from non-directory (rather than only regular)
...
files. Suggestion from Charles Karney.
1996-11-30 04:33:30 +00:00
Jim Meyering
bded355394
(usage): Alphabetize option descriptions the way sort -f would.
1996-11-23 22:13:00 +00:00
Jim Meyering
5582e6dad3
change bug-reporting address
1996-11-03 03:16:27 +00:00
Jim Meyering
b8e689dc67
change bug-reporting address
1996-11-02 20:44:15 +00:00
Jim Meyering
8573fc6ac9
(usage): Improve diagnostic
1996-10-08 04:37:19 +00:00
Jim Meyering
4f28f318d8
(main): update --version output to conform to coding standard
1996-10-05 13:14:11 +00:00
Jim Meyering
de05a873ec
(main): update --version output to conform to coding standard
1996-10-04 04:16:01 +00:00
Jim Meyering
c9fff51897
(usage): remove spurious trailing \n in puts.
1996-08-31 04:44:31 +00:00
Jim Meyering
7e294bac78
(usage): Tell where to report bugs.
1996-08-29 05:05:57 +00:00
Jim Meyering
16c56c7d73
[_AIX]: Add #pragma alloca.
...
From Bernd Leibing <bernd.leibing@rz.uni-ulm.de >.
1996-07-19 03:56:23 +00:00
Jim Meyering
5885cbf0d2
(UID_T_MAX): Use `(unsigned long)1' rather than
...
`(uid_t)1' to avoid problems on systems where uid_t is signed.
(GID_T_MAX): Likewise for gid_t.
From Kjetil Torgrim Homme <kjetilho@ifi.uio.no >.
1996-07-10 03:33:01 +00:00
Jim Meyering
0472107417
(usage): Factor out backup-related text into separate string/printf statement.
1996-07-06 22:50:57 +00:00