Re: [PATCH] install-sh: Use the -c option to preserve permissions during copy

Karl Berry <[email protected]>
Newsgroups gmane.comp.sysutils.automake.patches
Message-ID <[email protected]>
    +    -c) cpprog="$cpprog -p";;

As discussed, I changed the option to -p.  Also added it to the --help
message and mentioned it in NEWS. --thanks, karl.

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)

compile finished at Tue Nov 10 18:03:47 2020
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.