summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominique Leuenberger <dimstar@opensuse.org>2012-08-29 22:55:32 +0200
committerAntoine Jacoutot <ajacoutot@gnome.org>2013-04-04 16:29:19 +0200
commit88d853965880995f62dc781d90e5b70dcd4dace5 (patch)
treee04cdfc25610684cfe171163eae769ebda537d2c
parent5b111392c2c4012920509701f039d7a9bd978acb (diff)
downloadgnome-doc-utils-88d853965880995f62dc781d90e5b70dcd4dace5.tar.gz
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.
-rw-r--r--tools/gnome-doc-utils.make4
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"; \