diff options
-rw-r--r-- | NEWS | 6 | ||||
-rwxr-xr-x | lib/install-sh | 5 |
2 files changed, 8 insertions, 3 deletions
@@ -92,8 +92,10 @@ New in ?.?.?: * Miscellaneous changes - - install-sh tweaks: no longer unconditionally uses -f when rm is - overridden by RMPROG; does not chown existing directories. + - install-sh tweaks: + . new option to preserve mtime, i.e., invoke cp -p. + . no longer unconditionally uses -f when rm is overridden by RMPROG. + . does not chown existing directories. - Removed function up_to_date_p in lib/Automake/FileUtils.pm. We believe this function is completely unused. diff --git a/lib/install-sh b/lib/install-sh index 4fe135050..c4f150ceb 100755 --- a/lib/install-sh +++ b/lib/install-sh @@ -1,7 +1,7 @@ #!/bin/sh # install - install a program, script, or datafile -scriptversion=2020-11-11.01; # UTC +scriptversion=2020-11-11.02; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the @@ -108,6 +108,7 @@ Options: -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. + -p pass -p to $cpprog. -s $stripprog installed files. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. @@ -144,6 +145,8 @@ while test $# -ne 0; do -o) chowncmd="$chownprog $2" shift;; + -p) cpprog="$cpprog -p";; + -s) stripcmd=$stripprog;; -t) |