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 !!
|
|
|
|
@echo This script no longer requires the
|
|
|
|
@echo path to the source. It now works it
|
|
|
|
@echo out automatically.
|
|
|
|
@echo.
|
|
|
|
@echo Paremeter 1 will now set the FIREBIRD variable
|
|
|
|
@echo This may not be what you intended
|
|
|
|
@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)
|
|
|
|
:: BRS
|
|
|
|
:: Get all the file name when there are spaces
|
|
|
|
:: this can be also achieved with %* but I don't know which versions of
|
|
|
|
:: 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
|
|
|
|
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-08-23 11:55:51 +02:00
|
|
|
@cd %ROOT_PATH%\gen\dbs
|
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
|
|
|
|
@"%FIREBIRD%\bin\gbak" -r %ROOT_PATH%\builds\misc\security.gbak %SERVER_NAME%:%DB_PATH%\gen\dbs\security.fdb
|
2004-08-26 06:21:01 +02:00
|
|
|
@"%FIREBIRD%\bin\isql" -q -i %ROOT_PATH%\src\msgs\msg.sql
|
|
|
|
@"%FIREBIRD%\bin\isql" -q -i %ROOT_PATH%\src\msgs\facilities.sql
|
|
|
|
@"%FIREBIRD%\bin\isql" -q -i %ROOT_PATH%\src\msgs\locales.sql
|
|
|
|
@"%FIREBIRD%\bin\isql" -q -i %ROOT_PATH%\src\msgs\history.sql
|
|
|
|
@"%FIREBIRD%\bin\isql" -q -i %ROOT_PATH%\src\msgs\messages.sql
|
|
|
|
@"%FIREBIRD%\bin\isql" -q -i %ROOT_PATH%\src\msgs\symbols.sql
|
|
|
|
@"%FIREBIRD%\bin\isql" -q -i %ROOT_PATH%\src\msgs\system_errors.sql
|
|
|
|
@"%FIREBIRD%\bin\isql" -q -i %ROOT_PATH%\src\msgs\transmsgs.fr_FR.sql
|
|
|
|
@"%FIREBIRD%\bin\isql" -q -i %ROOT_PATH%\src\msgs\transmsgs.de_DE.sql
|
2003-10-19 15:35:32 +02:00
|
|
|
@"%FIREBIRD%\bin\gbak" -r %ROOT_PATH%\builds\misc\help.gbak %SERVER_NAME%:%DB_PATH%\gen\dbs\help.fdb
|
2004-08-23 11:55:51 +02:00
|
|
|
@copy metadata.fdb yachts.lnk > nul
|
|
|
|
@cd %ROOT_PATH%\builds\win32
|
2003-06-04 10:22:12 +02:00
|
|
|
|
|
|
|
@echo.
|
|
|
|
@echo Completed Preparations for build
|
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
|
2003-05-22 14:42:19 +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
|
|
|
|
|
|
|
|
2003-01-24 17:39:37 +01:00
|
|
|
:END
|
2004-01-08 06:49:50 +01:00
|
|
|
|