[mapserver-commits] r9740 - trunk/docs

svn at osgeo.org svn at osgeo.org
Mon Jan 25 02:28:49 EST 2010


Author: gislars
Date: 2010-01-25 02:28:42 -0500 (Mon, 25 Jan 2010)
New Revision: 9740

Modified:
   trunk/docs/make.bat
Log:
added init target to make.bat (copy untranslated files)

Modified: trunk/docs/make.bat
===================================================================
--- trunk/docs/make.bat	2010-01-25 05:55:49 UTC (rev 9739)
+++ trunk/docs/make.bat	2010-01-25 07:28:42 UTC (rev 9740)
@@ -4,8 +4,9 @@
 REM using delayed expansion of variables...
 setlocal enableextensions enabledelayedexpansion
 
-REM ...to get a list of directories to be processed
-FOR /D  %%i IN ("??") do (SET LANGUAGES=!LANGUAGES! %%i)
+REM ...build a list of directories to be processed (language directories)
+SET TRANSLATIONS=de
+SET LANGUAGES=en %TRANSLATIONS%
 
 set SPHINXBUILD=sphinx-build
 set ALLSPHINXOPTS= -d _build/doctrees/%%L -c . -A language=%%L -D language=%%L -A languages="%LANGUAGES%"
@@ -18,6 +19,7 @@
 if "%1" == "help" (
 	:help
 	echo.Please use `make ^<target^>` where ^<target^> is one of
+  echo.  init      to preprocess translation directories 
 	echo.  html      to make standalone HTML files
 	echo.  latex     to make LaTeX files, you can set PAPER=a4 or PAPER=letter
 	echo.  changes   to make an overview over all changed/added/deprecated items
@@ -25,6 +27,14 @@
 	goto end
 )
 
+if "%1" == "init" (
+  FOR  %%L in (%TRANSLATIONS%) DO (
+  	xcopy en %%L /d /y /c /s /q
+	)
+	echo.Init finished.
+  goto end
+)
+
 if "%1" == "clean" (
 	for /d %%i in (_build\*) do rmdir /q /s %%i
 	del /q /s _build\*



More information about the mapserver-commits mailing list