8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 22:03:03 +01:00
firebird-mirror/builds/win32/prepare.bat

81 lines
2.3 KiB
Batchfile
Raw Normal View History

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
@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.
::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)
@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)
@set FIREBIRD=%FIREBIRD% %1
@goto loop
:DONE
@echo FIREBIRD=%FIREBIRD%
@if "%FIREBIRD%"=="" (goto :HELP & goto :EOF)
2003-01-24 17:39:37 +01:00
::===========
:MAIN
@call setenvvar.bat
@if errorlevel 1 (goto :END)
@echo Creating databases
@rmdir /s /q %ROOT_PATH%\gen 2>nul
@mkdir %ROOT_PATH%\gen\dbs 2>nul
@cd %ROOT_PATH%\gen\dbs
@"%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
@"%FIREBIRD%\bin\gbak" -r %ROOT_PATH%\builds\misc\help.gbak %SERVER_NAME%:%DB_PATH%\gen\dbs\help.fdb
@copy metadata.fdb yachts.lnk > nul
@cd %ROOT_PATH%\builds\win32
@echo.
@echo Completed Preparations for build
2003-10-19 03:25:36 +02:00
@echo You may now run make_boot.bat [DEBUG] [CLEAN]
@echo.
2003-01-25 09:55:04 +01:00
@goto :END
2003-01-24 17:39:37 +01:00
::===========
:HELP
@echo.
@echo Build process need the FIREBIRD environment variable set to work.
@echo FIREBIRD value should be the root directory of your Firebird installation.
@echo Example:
@echo c:\program files\firebird
@echo.
2003-01-25 09:55:04 +01:00
@goto :END
2003-01-24 17:39:37 +01:00
2003-01-24 17:39:37 +01:00
:END