summaryrefslogtreecommitdiff
path: root/Build/source/build-aux
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-08-28 23:53:44 +0000
committerKarl Berry <karl@freefriends.org>2019-08-28 23:53:44 +0000
commit4b4b6fe61666a7f2def3e72ed0fb2a6a8d2f7c4c (patch)
tree00925f7458ac8d9d50c8a8bd2e8f59a74eb87c7c /Build/source/build-aux
parent8fbf71b889654a57365e3ee26ae2e7cbe4f4c5d0 (diff)
tl-update-auto
git-svn-id: svn://tug.org/texlive/trunk@51979 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/build-aux')
-rwxr-xr-xBuild/source/build-aux/install-sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/Build/source/build-aux/install-sh b/Build/source/build-aux/install-sh
index 8175c640fe6..20d8b2eaea9 100755
--- a/Build/source/build-aux/install-sh
+++ b/Build/source/build-aux/install-sh
@@ -451,7 +451,18 @@ do
trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
# Copy the file name to the temp name.
- (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
+ (umask $cp_umask &&
+ { test -z "$stripcmd" || {
+ # Create $dsttmp read-write so that cp doesn't create it read-only,
+ # which would cause strip to fail.
+ if test -z "$doit"; then
+ : >"$dsttmp" # No need to fork-exec 'touch'.
+ else
+ $doit touch "$dsttmp"
+ fi
+ }
+ } &&
+ $doit_exec $cpprog "$src" "$dsttmp") &&
# and set any options; do chmod last to preserve setuid bits.
#