2003-01-25 09:55:04 +01:00
|
|
|
|
2003-01-24 17:39:37 +01:00
|
|
|
@echo off
|
2003-01-25 09:55:04 +01:00
|
|
|
|
2003-06-04 10:29:19 +02:00
|
|
|
@echo.
|
|
|
|
@echo !! Warning !!
|
2005-02-08 15:59:13 +01:00
|
|
|
@echo This script no longer requires the
|
|
|
|
@echo path to the source. It now works it
|
2003-06-04 10:29:19 +02:00
|
|
|
@echo out automatically.
|
|
|
|
@echo.
|
2005-02-08 15:59:13 +01:00
|
|
|
@echo Parameter 1 will now set the FIREBIRD variable
|
|
|
|
@echo This may not be what you intended
|
2003-06-04 10:29:19 +02:00
|
|
|
@echo.
|
|
|
|
|
2003-06-04 10:22:12 +02:00
|
|
|
::Check if on-line help is required
|
|
|
|
@if /I "%1"=="-h" (goto :HELP & goto :EOF)
|
|
|
|
@if /I "%1"=="/h" (goto :HELP & goto :EOF)
|
|
|
|
@if /I "%1"=="-?" (goto :HELP & goto :EOF)
|
|
|
|
@if /I "%1"=="/?" (goto :HELP & goto :EOF)
|
|
|
|
|
2003-08-06 18:21:52 +02:00
|
|
|
@if "%1" NEQ "" (set FIREBIRD=%1)
|
2005-02-08 15:59:13 +01:00
|
|
|
:: BRS
|
2003-08-06 18:21:52 +02:00
|
|
|
:: Get all the file name when there are spaces
|
2005-02-08 15:59:13 +01:00
|
|
|
:: this can be also achieved with %* but I don't know which versions of
|
2003-08-06 18:21:52 +02:00
|
|
|
:: windows allows it
|
|
|
|
:LOOP
|
|
|
|
@shift
|
|
|
|
@if "%1"=="" (goto DONE)
|
2003-08-08 17:54:09 +02:00
|
|
|
@set FIREBIRD=%FIREBIRD% %1
|
2003-08-06 18:21:52 +02:00
|
|
|
@goto loop
|
|
|
|
:DONE
|
|
|
|
|
|
|
|
@echo FIREBIRD=%FIREBIRD%
|
|
|
|
@if "%FIREBIRD%"=="" (goto :HELP & goto :EOF)
|
2003-06-04 10:22:12 +02:00
|
|
|
|
2005-02-08 15:59:13 +01:00
|
|
|
@if "%ISC_USER%"=="" (set ISC_USER=SYSDBA)
|
|
|
|
@if "%ISC_PASSWORD%"=="" (set ISC_PASSWORD=masterke)
|
|
|
|
|
2003-01-24 17:39:37 +01:00
|
|
|
::===========
|
|
|
|
:MAIN
|
2003-07-05 03:10:56 +02:00
|
|
|
@call setenvvar.bat
|
|
|
|
@if errorlevel 1 (goto :END)
|
2003-05-22 14:42:19 +02:00
|
|
|
|
2003-06-04 10:22:12 +02:00
|
|
|
@echo Creating databases
|
2003-05-22 14:42:19 +02:00
|
|
|
|
2003-07-05 16:45:43 +02:00
|
|
|
@rmdir /s /q %ROOT_PATH%\gen 2>nul
|
|
|
|
@mkdir %ROOT_PATH%\gen\dbs 2>nul
|
2004-11-07 15:01:13 +01:00
|
|
|
|
2005-02-24 13:24:38 +01:00
|
|
|
@echo create database '%SERVER_NAME%:%DB_PATH%\gen\dbs\security2.fdb'; | "%FIREBIRD%\bin\isql" -q
|
2005-02-26 19:22:55 +01:00
|
|
|
@set SEC_ISQL=@"%FIREBIRD%\bin\isql" -q %SERVER_NAME%:%DB_PATH%\gen\dbs\security2.fdb -i %ROOT_PATH%\src\dbs\
|
|
|
|
@%SEC_ISQL%security.sql
|
2004-11-07 15:01:13 +01:00
|
|
|
|
2003-10-19 15:35:32 +02:00
|
|
|
@"%FIREBIRD%\bin\gbak" -r %ROOT_PATH%\builds\misc\metadata.gbak %SERVER_NAME%:%DB_PATH%\gen\dbs\metadata.fdb
|
2004-09-01 13:53:38 +02:00
|
|
|
|
|
|
|
@echo create database '%SERVER_NAME%:%DB_PATH%\gen\dbs\msg.fdb'; | "%FIREBIRD%\bin\isql" -q
|
|
|
|
@set MSG_ISQL=@"%FIREBIRD%\bin\isql" -q %SERVER_NAME%:%DB_PATH%\gen\dbs\msg.fdb -i %ROOT_PATH%\src\msgs\
|
2005-02-08 15:59:13 +01:00
|
|
|
@%MSG_ISQL%msg.sql
|
2004-09-01 13:53:38 +02:00
|
|
|
@%MSG_ISQL%facilities.sql
|
2005-02-11 08:06:14 +01:00
|
|
|
@echo.
|
2004-11-24 09:55:21 +01:00
|
|
|
@echo loading locales
|
2005-02-08 15:59:13 +01:00
|
|
|
@%MSG_ISQL%locales.sql
|
2004-11-24 09:55:21 +01:00
|
|
|
@echo loading history
|
2005-02-08 15:59:13 +01:00
|
|
|
@%MSG_ISQL%history.sql
|
2004-11-24 09:55:21 +01:00
|
|
|
@echo loading messages
|
2005-02-08 15:59:13 +01:00
|
|
|
@%MSG_ISQL%messages.sql
|
2004-11-24 09:55:21 +01:00
|
|
|
@echo loading symbols
|
2005-02-08 15:59:13 +01:00
|
|
|
@%MSG_ISQL%symbols.sql
|
2004-11-24 09:55:21 +01:00
|
|
|
@echo loading system errors
|
2005-02-08 15:59:13 +01:00
|
|
|
@%MSG_ISQL%system_errors.sql
|
2004-11-24 09:55:21 +01:00
|
|
|
@echo loading French translation
|
2005-02-08 15:59:13 +01:00
|
|
|
@%MSG_ISQL%transmsgs.fr_FR.sql
|
2004-11-24 09:55:21 +01:00
|
|
|
@echo loading German translation
|
2005-02-08 15:59:13 +01:00
|
|
|
@%MSG_ISQL%transmsgs.de_DE.sql
|
2004-09-01 13:53:38 +02:00
|
|
|
|
2005-02-08 15:59:13 +01:00
|
|
|
@"%FIREBIRD%\bin\gbak" -r %ROOT_PATH%\builds\misc\help.gbak %SERVER_NAME%:%DB_PATH%\gen\dbs\help.fdb
|
2004-09-01 14:06:35 +02:00
|
|
|
@copy %ROOT_PATH%\gen\dbs\metadata.fdb %ROOT_PATH%\gen\dbs\yachts.lnk > nul
|
2003-06-04 10:22:12 +02:00
|
|
|
|
|
|
|
@echo.
|
|
|
|
@echo Completed Preparations for build
|
2005-05-28 00:45:31 +02:00
|
|
|
@echo You may now run make_icu.bat [CLEAN]
|
2003-10-19 03:25:36 +02:00
|
|
|
@echo You may now run make_boot.bat [DEBUG] [CLEAN]
|
2003-06-04 10:22:12 +02:00
|
|
|
@echo.
|
|
|
|
|
2003-01-25 09:55:04 +01:00
|
|
|
@goto :END
|
2003-01-24 17:39:37 +01:00
|
|
|
|
|
|
|
::===========
|
2003-06-04 10:22:12 +02:00
|
|
|
:HELP
|
2003-04-11 12:32:24 +02:00
|
|
|
@echo.
|
2003-08-11 01:10:52 +02:00
|
|
|
@echo Build process need the FIREBIRD environment variable set to work.
|
|
|
|
@echo FIREBIRD value should be the root directory of your Firebird installation.
|
2003-06-04 10:22:12 +02:00
|
|
|
@echo Example:
|
|
|
|
@echo c:\program files\firebird
|
2005-02-08 15:59:13 +01:00
|
|
|
@echo.
|
2003-01-25 09:55:04 +01:00
|
|
|
@goto :END
|
2003-01-24 17:39:37 +01:00
|
|
|
|
2003-06-04 10:22:12 +02:00
|
|
|
|
|
|
|
|
2003-01-24 17:39:37 +01:00
|
|
|
:END
|
2004-01-08 06:49:50 +01:00
|
|
|
|