summaryrefslogtreecommitdiff
path: root/Master/tlpkg/bin/deref-symlinks
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-07-11 21:13:26 +0000
committerKarl Berry <karl@freefriends.org>2021-07-11 21:13:26 +0000
commitdf0d757a3b937219dcafa2f5f98b43fcd5c2c4ea (patch)
tree94d4b90ebfd9f27e812fcaade696778971ddcbd7 /Master/tlpkg/bin/deref-symlinks
parent24873e378cf38cab168314630ffce701fc9e4f62 (diff)
doc, testing tweaks
git-svn-id: svn://tug.org/texlive/trunk@59901 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/bin/deref-symlinks')
-rwxr-xr-xMaster/tlpkg/bin/deref-symlinks2
1 files changed, 1 insertions, 1 deletions
diff --git a/Master/tlpkg/bin/deref-symlinks b/Master/tlpkg/bin/deref-symlinks
index 0a770a7f47d..b012f7d748e 100755
--- a/Master/tlpkg/bin/deref-symlinks
+++ b/Master/tlpkg/bin/deref-symlinks
@@ -15,7 +15,7 @@ for f in "$@"; do
test -h "$f" || continue # skip non-symlinks
test -f "$f" || continue # skip links to anything but regular files
- cp --dereference "$f" "$f".file # expand link
+ cp -p --dereference "$f" "$f".file # expand link
mv "$f" "$f".link # move link out of the way
mv -v "$f".file "$f" # replace with regular file
$savelinks || rm "$f".link # remove link unless keeping