diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-12-05 12:02:38 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-12-05 12:02:38 +0000 |
commit | e3d429df329fc5641edc1e127e76f8c195f8bbf0 (patch) | |
tree | 4c7d9df14e410de4589c77af60ac2ce6f9159847 /Build | |
parent | 87e11d0eb09aed22cad72f98c87bc9f84174ff77 (diff) |
uninstall `man link' only if really a link
git-svn-id: svn://tug.org/texlive/trunk@24765 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-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. |