automake-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[automake-commit] branch master updated: install-sh: new option -p to pr


From: Karl Berry
Subject: [automake-commit] branch master updated: install-sh: new option -p to preserve mtime.
Date: Tue, 10 Nov 2020 21:03:55 -0500

This is an automated email from the git hooks/post-receive script.

karl pushed a commit to branch master
in repository automake.

View the commit online:
https://git.savannah.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=a296ffe1eb87bec8a2f695222ac39517eaaae746

The following commit(s) were added to refs/heads/master by this push:
     new a296ffe  install-sh: new option -p to preserve mtime.
a296ffe is described below

commit a296ffe1eb87bec8a2f695222ac39517eaaae746
Author: Karl Berry <karl@freefriends.org>
AuthorDate: Tue Nov 10 18:03:47 2020 -0800

    install-sh: new option -p to preserve mtime.
    
    * lib/install-sh: new option -p to call cp -p.
    Idea from patch sent by Julien Elie:
    https://lists.gnu.org/archive/html/automake-patches/2018-03/msg00002.html
    (scriptversion): 2020-11-11.02
    * NEWS: mention this.
    
    2020-11-10  Karl Berry  <karl@freefriends.org>
---
 NEWS           | 6 ++++--
 lib/install-sh | 5 ++++-
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/NEWS b/NEWS
index f4445f9..a6d283f 100644
--- a/NEWS
+++ b/NEWS
@@ -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 4fe1350..c4f150c 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]