diff options
-rw-r--r-- | Build/source/texk/texlive/linked_scripts/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/texk/texlive/linked_scripts/Makefile.am | 4 | ||||
-rw-r--r-- | Build/source/texk/texlive/linked_scripts/Makefile.in | 4 |
3 files changed, 10 insertions, 2 deletions
diff --git a/Build/source/texk/texlive/linked_scripts/ChangeLog b/Build/source/texk/texlive/linked_scripts/ChangeLog index 3c1a1f65ce3..8616f92ee72 100644 --- a/Build/source/texk/texlive/linked_scripts/ChangeLog +++ b/Build/source/texk/texlive/linked_scripts/ChangeLog @@ -1,3 +1,7 @@ +2011-12-05 Peter Breitenlohner <peb@mppmu.mpg.de> + + * Makefile.am (uninstall-hook): Only remove man if it is a link. + 2011-12-03 Karl Berry <karl@tug.org> * Makefile.am (install-data-hook): only create the man link if it diff --git a/Build/source/texk/texlive/linked_scripts/Makefile.am b/Build/source/texk/texlive/linked_scripts/Makefile.am index 908fb66b193..7b4594a8771 100644 --- a/Build/source/texk/texlive/linked_scripts/Makefile.am +++ b/Build/source/texk/texlive/linked_scripts/Makefile.am @@ -237,6 +237,8 @@ uninstall-hook: rm -f $(DESTDIR)$(bindir)/$$link$(WINEXT); \ done if !WIN32 - rm -f $(DESTDIR)$(bindir)/man + if test -h $(DESTDIR)$(bindir)/man; then \ + rm -f $(DESTDIR)$(bindir)/man; \ + else :; fi endif !WIN32 diff --git a/Build/source/texk/texlive/linked_scripts/Makefile.in b/Build/source/texk/texlive/linked_scripts/Makefile.in index 7a952627353..b38ab2d347d 100644 --- a/Build/source/texk/texlive/linked_scripts/Makefile.in +++ b/Build/source/texk/texlive/linked_scripts/Makefile.in @@ -678,7 +678,9 @@ uninstall-hook: link=`echo $$s | sed 's,.*:,,'`; \ rm -f $(DESTDIR)$(bindir)/$$link$(WINEXT); \ done -@WIN32_FALSE@ rm -f $(DESTDIR)$(bindir)/man +@WIN32_FALSE@ if test -h $(DESTDIR)$(bindir)/man; then \ +@WIN32_FALSE@ rm -f $(DESTDIR)$(bindir)/man; \ +@WIN32_FALSE@ else :; fi # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. |