summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/source/texk/texlive/linked_scripts/Makefile.am2
-rw-r--r--Build/source/texk/texlive/linked_scripts/Makefile.in2
2 files changed, 2 insertions, 2 deletions
diff --git a/Build/source/texk/texlive/linked_scripts/Makefile.am b/Build/source/texk/texlive/linked_scripts/Makefile.am
index 21e4ce2f352..5af2eb066af 100644
--- a/Build/source/texk/texlive/linked_scripts/Makefile.am
+++ b/Build/source/texk/texlive/linked_scripts/Makefile.am
@@ -206,7 +206,7 @@ else !WIN32
done && \
if test -d "$$REL/texmf/doc/man" \
&& test -z "$(TL_INSTALL_OMIT_MAN_LINK)" \
- && test -h man; then \
+ && (test -h man || test ! -e man); then \
echo "creating link 'man' -> '$$REL/texmf/doc/man'"; \
rm -f man; \
(ln -s "$$REL/texmf/doc/man" man || :); \
diff --git a/Build/source/texk/texlive/linked_scripts/Makefile.in b/Build/source/texk/texlive/linked_scripts/Makefile.in
index 41e226779d3..802b831c5f0 100644
--- a/Build/source/texk/texlive/linked_scripts/Makefile.in
+++ b/Build/source/texk/texlive/linked_scripts/Makefile.in
@@ -657,7 +657,7 @@ install-data-hook:
@WIN32_FALSE@ done && \
@WIN32_FALSE@ if test -d "$$REL/texmf/doc/man" \
@WIN32_FALSE@ && test -z "$(TL_INSTALL_OMIT_MAN_LINK)" \
-@WIN32_FALSE@ && test -h man; then \
+@WIN32_FALSE@ && (test -h man || test ! -e man); then \
@WIN32_FALSE@ echo "creating link 'man' -> '$$REL/texmf/doc/man'"; \
@WIN32_FALSE@ rm -f man; \
@WIN32_FALSE@ (ln -s "$$REL/texmf/doc/man" man || :); \