[mapserver-commits] r9711 - branches/branch-5-6/docs

svn at osgeo.org svn at osgeo.org
Wed Jan 20 11:58:55 EST 2010


Author: aboudreault
Date: 2010-01-20 11:58:54 -0500 (Wed, 20 Jan 2010)
New Revision: 9711

Modified:
   branches/branch-5-6/docs/Makefile
Log:
added the init make rule

Modified: branches/branch-5-6/docs/Makefile
===================================================================
--- branches/branch-5-6/docs/Makefile	2010-01-19 16:01:05 UTC (rev 9710)
+++ branches/branch-5-6/docs/Makefile	2010-01-20 16:58:54 UTC (rev 9711)
@@ -8,7 +8,8 @@
 SPHINXOPTS    =
 SPHINXBUILD   = sphinx-build
 PAPER         =
-LANGUAGES     = en de
+TRANSLATIONS  = de
+LANGUAGES     = en $(TRANSLATIONS) 
 
 # On mapserver.org we need to write alternate links for the language switcher.
 # This is triggered by setting TARGET to 'mapserverorg'
@@ -26,6 +27,7 @@
 help:
 	@echo "Please use \`make <target>' where <target> is one of"
 	@echo "  html      to make standalone HTML files"
+	@echo "  init	   to preprocess translation directories"
 	@echo "  pickle    to make pickle files"
 	@echo "  json      to make JSON files"
 	@echo "  htmlhelp  to make HTML files and a HTML help project"
@@ -38,6 +40,13 @@
 clean:
 	-rm -rf build/*
 
+init:
+	@for lang in $(TRANSLATIONS) ;\
+	do \
+		yes n | cp -ipR en/* $$lang &> /dev/null;\
+	done
+	@echo "Init finished. Other target can now be build.";\
+
 html:
 	@for lang in $(LANGUAGES);\
 	do \



More information about the mapserver-commits mailing list