summaryrefslogtreecommitdiff
path: root/src/install.c
AgeCommit message (Collapse)Author
2000-09-30(main): Rename local `symbolic_mode' to `specified_mode'.Jim Meyering
2000-09-30Remove option-describing comment block.Jim Meyering
2000-09-22(cp_option_init): Once again make it so install alwaysJim Meyering
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-03(cp_option_init): Initialize new members.Jim Meyering
2000-08-20(cp_option_init): Initialize to DEREF_ALWAYS, not `1'.Jim Meyering
2000-08-08(main): Invoke xalloc_die instead of printing our own message.Jim Meyering
2000-07-15Convert "`%s'" in format strings to "%s", and wrap eachJim Meyering
corresponding argument in a `quote (...)' call. Improve a couple diagnostics.
2000-06-03(usage): Document that -v is a synonym for --verbose.Jim Meyering
2000-05-13Arrange to call close_stdout only upon exit.Jim Meyering
2000-05-01(change_attributes): Don't remove the destination file upon failure.Jim Meyering
2000-05-01[checked in with intention to back out...]Jim Meyering
(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-04-08Document that while the --backup option takes anJim Meyering
optional argument, the -b option accepts none. (main): Use `backup type' in call to xget_version, not the now-deprecated `--version-control'.
2000-02-27(install_file_to_path): Always use install_file_in_file.Jim Meyering
Based on a patch from Adam Klein via Michael Stone.
1999-10-31Convert --backup to take an optional argument.Jim Meyering
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-04-26(isodigit): Remove unused macro.Jim Meyering
(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-01(install_file_in_dir): Qualify a char* with the `const' keyword.Jim Meyering
1999-04-01(main): Qualify a char* with the `const' keyword.Jim Meyering
1999-04-01(main): Qualify a char* with the `const' keyword.Jim Meyering
1999-03-31Don't include closeout.h or version-etc.h explicitly. Now, they're included ↵Jim Meyering
via sys2.h.
1999-03-30(strip): Use standard "cannot fork" message.Jim Meyering
Check for strip nonzero exit status.
1999-03-27(strip): Use pid_t, not int.Jim Meyering
1999-03-26No longer include long-options.h.Jim Meyering
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-04Include long-options.hJim Meyering
[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-02-14(main): Set x.backup_type only if backups are requested.Jim Meyering
(cp_option_init): Initialize backup_type. (backup_type): Remove unused variable.
1999-01-16Remove declarations of base_name and get_version.Jim Meyering
(main): Don't call getenv ("VERSION_CONTROL"); xget_version does it. Use xget_version and function-style XARGMATCH.
1998-12-18(UID_T_MAX, GID_T_MAX): Remove definitions.Jim Meyering
1998-12-07Use dir_name, not dirname. Include dirname.h.Jim Meyering
1998-10-05(long_options): Add entry for --suffix=SUFFIX option.Jim Meyering
1998-09-20(install_file_to_path) [-D]: Create any leadingJim Meyering
directories with permissions of 0755.
1998-09-20(install_file_to_path): Copy the file after creating any leading directories.Jim Meyering
(main) [case 'v']: Set `x.verbose' to 1, not 0.
1998-09-19update bug-reporting addressJim Meyering
1998-08-02(change_timestamps): Add comment.Jim Meyering
1998-07-27Make copy create each destination file initiallyJim Meyering
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-06-01(main): Fix argv-handling bug in my 1998-05-09 change.Jim Meyering
Reported by Don Parsons.
1998-05-11reflect additional parameter to copyJim Meyering
initialize new member: move_mode.
1998-05-10(cp_option_init): s/use_mode/set_mode/Jim Meyering
1998-05-10(main): Rewrite argv-handling to be clearer.Jim Meyering
(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-03-15Use #if, not #ifdef with HAVE_ macros.Jim Meyering
Use #if !, not #ifndef with HAVE_ macros.
1998-03-13(usage): Tweak spacingJim Meyering
1998-01-22Declare new global, backup_type.Jim Meyering
(main): Initialize backup_type unconditionally. (copy_file): Call find_backup_file_name with new backup_type, argument.
1998-01-10(usage): Describe -D.Jim Meyering
1998-01-05reindent a littleJim Meyering
1998-01-05reformat comment, dcl fail, dirnameJim Meyering
1998-01-05remove SPECIAL_BITS #ifdefsJim Meyering
1998-01-05Add support for marty's -D optionJim Meyering
1998-01-04(main, usage): Check for write error to stdout before exiting.Jim Meyering
Include "closeout.h".
1998-01-02(get_ids): When otherwise unspecified, set uid and gid to -1.Jim Meyering
1997-12-25(get_ids): Don't cast GID_T_MAX to long, it might overflow.Jim Meyering
1997-12-16s/__P/PARAMS/gJim Meyering
1997-11-30(BITSPERBYTE): Remove.Jim Meyering
(UID_T_MAX, GID_T_MAX): Define in terms of TYPE_MAXIMUM.