[nautilus-actions] Do not distribute non translated figures in xx/ subdirectories



commit f5207fb1f4035470ad2cf1ca4e9d131b6ebd5fec
Author: Pierre Wieser <pwieser trychlos org>
Date:   Wed Nov 24 21:37:20 2010 +0100

    Do not distribute non translated figures in xx/ subdirectories

 ChangeLog            |    7 ++++++-
 doc/nact/Makefile.am |    6 +++++-
 2 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 8eac48a..b0b0ed6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,12 @@
+2010-11-24 Pierre Wieser <pwieser trychlos org>
+
+	* doc/nact/Makefile.am:
+	Do not distribute non translated figures in xx/ subdirectories.
+
 2010-11-23 Pierre Wieser <pwieser trychlos org>
 
 	* doc/nact/C/nact-starting.xml:
-	Work-around in order to be able sl pdf.
+	Work-around in order to be able to build sl pdf.
 
 	* doc/nact/Makefile.am:
 	Include non-translated figures in translated pdf.
diff --git a/doc/nact/Makefile.am b/doc/nact/Makefile.am
index 5a68f0b..c313bce 100644
--- a/doc/nact/Makefile.am
+++ b/doc/nact/Makefile.am
@@ -249,6 +249,7 @@ uninstall-html-manuals:
 	rm -fr $$_instdir
 
 # locale figures (_DOC_LC_FIGURES) are distributed by gnome-doc-utils
+# when they exist
 dist-html-manuals-hook:
 	for lc in C $(_DOC_REAL_LINGUAS); do \
 		if test -f $(top_builddir)/doc/nact/$$lc/html/$(DOC_MODULE).html; then \
@@ -285,6 +286,9 @@ pdf-stamp: $(_DOC_LC_DOCS)
 	    fi; \
 		echo "dblatex --output $$_target $(top_srcdir)/doc/nact/$$lc/$(DOC_MODULE).xml"; \
 		dblatex --output $$_target $(top_srcdir)/doc/nact/$$lc/$(DOC_MODULE).xml; \
+		if [ "$$lc" != "C" ]; then \
+		  for i in `find $$lc/figures -type l`; do rm -f $$i; done; \
+		fi; \
 	done
 else
 all-pdf-manuals:
@@ -317,7 +321,7 @@ uninstall-pdf-manuals:
 
 dist-pdf-manuals-hook:
 	for _lc in C $(_DOC_REAL_LINGUAS); do \
-		cp $(top_builddir)/doc/nact/$$_lc/$(DOC_MODULE).pdf $(distdir)/$$_lc/ || :; \
+		cp -v $(top_builddir)/doc/nact/$$_lc/$(DOC_MODULE).pdf $(distdir)/$$_lc/ || :; \
 	done
 
 dist-manuals-hooks:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]