[Mapbender-commits] r4285 - branches/2.6/resources/db
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Jul 2 02:26:50 EDT 2009
Author: tbaschetti
Date: 2009-07-02 02:26:48 -0400 (Thu, 02 Jul 2009)
New Revision: 4285
Modified:
branches/2.6/resources/db/install_2.6.bat
Log:
added compilation of .po files
Modified: branches/2.6/resources/db/install_2.6.bat
===================================================================
--- branches/2.6/resources/db/install_2.6.bat 2009-07-01 21:27:04 UTC (rev 4284)
+++ branches/2.6/resources/db/install_2.6.bat 2009-07-02 06:26:48 UTC (rev 4285)
@@ -1,13 +1,14 @@
@echo off
-REM Script to install Mapbender 2.6
+rem $id: $
+REM Script to install Mapbender 2.6 database
REM
setlocal
REM Delete old Logfiles
del log_*.txt
del err_*.txt
+:PREP
echo.
echo ==============================================================================
-:PREP
REM Disclaimer
echo.
echo DISCLAIMER: this Mapbender database setup script is not stable. USE AT YOUR OWN RISK!
@@ -97,7 +98,6 @@
REM do these exist?
psql --version 2> nul 1> nul
if NOT %ERRORLEVEL% == 0 goto PGNOTFOUND
-echo psql found
set /p DBTEMPLATE="database template to use (just hit return for default):"
IF %DBTEMPLATE%x==x set DBTEMPLATE=template0
@@ -118,6 +118,8 @@
psql -U %DBUSER% -f pgsql/%USEDBENC%/update/update_2.5.1rc1_to_2.5.1_pgsql_%USEDBENC%.sql %DBNAME% 1>>log_update.txt 2>> err_update.txt
echo to 2.6rc1
psql -U %DBUSER% -f pgsql/%USEDBENC%/update/update_2.5.1_to_2.6rc1_pgsql_%USEDBENC%.sql %DBNAME% 1>>log_update.txt 2>> err_update.txt
+echo to 2.6rc2
+psql -U %DBUSER% -f pgsql/%USEDBENC%/update/update_2.6rc1_to_2.6rc2_pgsql_%USEDBENC%.sql %DBNAME% 1>>log_update.txt 2>> err_update.txt
goto END
@@ -141,13 +143,29 @@
rem mysql %DBNAME% -p -u %DBUSER% < mysql/%USEDBENC%/update/update_2.5.1_to_2.6rc1_mysql_%USEDBENC%.sql >> log_update.txt 2>> err_update.txt
+rem update .po files
+echo ""
+msgfmt --version 2> nul 1> nul
+if NOT %ERRORLEVEL% == 0 goto MSGFMTNOTFOUND
+echo "Compiling .po files..."
+pushd ../../tools/
+findstr /v ^# i18n_update_mo.sh > i18n_update_mo.bat
+call i18n_update_mo.bat
+del i18n_update_mo.bat
+popd
goto END:
+
+:MSGFMTNOTFOUND
+echo Sorry, msgfmt not found, must be in PATH-Variable, won't compile translations...
+echo Have a look at http://www.mapbender.org/Gettext#Utility_programms for msgfmt.
+goto END:
+goto END:
:PGNOTFOUND
-echo "Sorry, psql not found, must be in PATH-Variable, exiting..."
+echo Sorry, psql not found, must be in PATH-Variable, exiting...
goto END
:MYSQLNOTFOUND
-echo "Sorry, mysql not found, must be in PATH-Variable, exiting..."
+echo Sorry, mysql not found, must be in PATH-Variable, exiting...
goto END
REM End, keep Terminal session open
More information about the Mapbender_commits
mailing list