summaryrefslogtreecommitdiff
path: root/Build/source/texk
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-12-03 16:22:19 +0000
committerKarl Berry <karl@freefriends.org>2011-12-03 16:22:19 +0000
commita9d87c9c219c568af99dad7ef7f8f4378d3de1d7 (patch)
tree7fc12012b3cd802820ced2eaddf63f4b9cf09dfa /Build/source/texk
parent48758aaf378796c9e8381cd9fc6d14f338d76e4d (diff)
create man link also if no man exists
git-svn-id: svn://tug.org/texlive/trunk@24728 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk')
-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 || :); \