[gnome-doc-utils] figures: link to absolute path
- From: Antoine Jacoutot <ajacoutot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-doc-utils] figures: link to absolute path
- Date: Thu, 4 Apr 2013 14:32:13 +0000 (UTC)
commit 88d853965880995f62dc781d90e5b70dcd4dace5
Author: Dominique Leuenberger <dimstar opensuse org>
Date: Wed Aug 29 22:55:32 2012 +0200
figures: link to absolute path
While installing figures, we assume to find them in C-language if
they are not explicit part of $lang subfolders.
linking to ../../C/$fig works out well as long as $fig is not living
in any subfolder though. With subfolders, two parent levels is no
longer sufficient, resulting in dangling symlinks
As a solution, we change the link target path to the absolute
destination where we install the C-language figures in. After all, we do
know where we put our files.
Fixes bug 682776.
tools/gnome-doc-utils.make | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tools/gnome-doc-utils.make b/tools/gnome-doc-utils.make
index 726c5b8..fe3acde 100644
--- a/tools/gnome-doc-utils.make
+++ b/tools/gnome-doc-utils.make
@@ -640,8 +640,8 @@ install-doc-figs:
fi; \
figbase=`echo $$fig | sed -e 's/^.*\///'`; \
if $$figsymlink; then \
- echo "cd $$figdir && $(LN_S) -f ../../C/$$fig $$figbase"; \
- ( cd "$$figdir" && $(LN_S) -f "../../C/$$fig" "$$figbase" ); \
+ echo "cd $$figdir && $(LN_S) -f $(HELP_DIR)/$(_doc_install_dir)/C/$$fig $$figbase"; \
+ ( cd "$$figdir" && $(LN_S) -f "$(HELP_DIR)/$(_doc_install_dir)/C/$$fig" "$$figbase" ); \
else \
echo "$(INSTALL_DATA) $$figfile $$figdir$$figbase"; \
$(INSTALL_DATA) "$$figfile" "$$figdir$$figbase"; \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]