diff options
author | Dominique Leuenberger <dimstar@opensuse.org> | 2012-08-29 22:55:32 +0200 |
---|---|---|
committer | Antoine Jacoutot <ajacoutot@gnome.org> | 2013-04-04 16:29:19 +0200 |
commit | 88d853965880995f62dc781d90e5b70dcd4dace5 (patch) | |
tree | e04cdfc25610684cfe171163eae769ebda537d2c | |
parent | 5b111392c2c4012920509701f039d7a9bd978acb (diff) | |
download | gnome-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.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"; \ |