~ubuntu-branches/ubuntu/precise/gnome-bluetooth/precise-updates

« back to all changes in this revision

Viewing changes to gnome-doc-utils.make

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack
  • Date: 2009-08-05 13:34:38 UTC
  • mto: (2.2.1 experimental) (1.4.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 23.
  • Revision ID: james.westby@ubuntu.com-20090805133438-791u4ywsppj71d9y
Tags: upstream-2.27.8
ImportĀ upstreamĀ versionĀ 2.27.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
504
504
install-doc-figs:
505
505
        @list='$(patsubst C/%,%,$(_DOC_C_FIGURES))'; for fig in $$list; do \
506
506
          for lc in C $(_DOC_REAL_LINGUAS); do \
 
507
            figsymlink=false; \
507
508
            if test -f "$$lc/$$fig"; then \
508
509
              figfile="$$lc/$$fig"; \
509
510
            elif test -f "$(srcdir)/$$lc/$$fig"; then \
510
511
              figfile="$(srcdir)/$$lc/$$fig"; \
511
 
            elif test -f "C/$$fig"; then \
512
 
              figfile="C/$$fig"; \
513
512
            else \
514
 
              figfile="$(srcdir)/C/$$fig"; \
 
513
              figsymlink=true; \
515
514
            fi; \
516
515
            figdir="$$lc/"`echo $$fig | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`; \
517
516
            figdir="$(DESTDIR)$(HELP_DIR)/$(DOC_MODULE)/$$figdir"; \
520
519
              $(mkinstalldirs) "$$figdir"; \
521
520
            fi; \
522
521
            figbase=`echo $$fig | sed -e 's/^.*\///'`; \
523
 
            echo "$(INSTALL_DATA) $$figfile $$figdir$$figbase"; \
524
 
            $(INSTALL_DATA) "$$figfile" "$$figdir$$figbase"; \
 
522
            if $$figsymlink; then \
 
523
              echo "cd $$figdir && $(LN_S) -f ../../C/$$fig $$figbase"; \
 
524
              ( cd "$$figdir" && $(LN_S) -f "../../C/$$fig" "$$figbase" ); \
 
525
            else \
 
526
              echo "$(INSTALL_DATA) $$figfile $$figdir$$figbase"; \
 
527
              $(INSTALL_DATA) "$$figfile" "$$figdir$$figbase"; \
 
528
            fi; \
525
529
          done; \
526
530
        done
527
531