Ignore -C, -p, and -S options of install(1) when used with the -d

option.  Warn about COPY being phased out.  Restore the old method
of always comparing before installing: INSTALL="install -C".

Requested by:	bde
This commit is contained in:
Ruslan Ermilov 2002-07-29 08:51:04 +00:00
parent 3b82505bb2
commit 33c1de7d1f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=100870
4 changed files with 9 additions and 3 deletions

View File

@ -22,6 +22,12 @@ NOTE TO PEOPLE WHO THINK THAT 5.0-CURRENT IS SLOW:
integrity. Re-enabling write caching can substantially improve
performance.
20020729:
COPY is being deprecated. The 20010530 change was reverted, as
it causes far more pain than was expected, and to always compare
before installing, please use INSTALL="install -C" again. The
-C option is now silently ignored when used with the -d option.
20020702:
Problems with libc_r clients like KDE and GNOME have been resolved.
There are still some minor problems with some signals but the

View File

@ -74,7 +74,7 @@
#WANT_FORCE_OPTIMIZATION_DOWNGRADE=1
#
# Compare before install
#COPY= -C
#INSTALL=install -C
#
# Mtree will follow symlinks
#MTREE_FOLLOWS_SYMLINKS= -L

View File

@ -136,7 +136,7 @@ the default install command.
To have commands compared before doing
the install, use
.Bd -literal -offset indent
COPY=-C
INSTALL="install -C"
.Ed
.It Va LOCAL_DIRS
.Pq Vt str

View File

@ -173,7 +173,7 @@ main(argc, argv)
argv += optind;
/* some options make no sense when creating directories */
if ((safecopy || docompare || dostrip) && dodir)
if (dostrip && dodir)
usage();
/* must have at least two arguments, except when creating directories */