@echo off @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) if "%FIREBIRD%"=="" (goto :HELP & goto :EOF) ::=========== :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 @"%FIREBIRD%\bin\gbak" -r %ROOT_PATH%\builds\misc\metadata.gbak localhost:%DB_PATH%\gen\dbs\metadata.fdb @"%FIREBIRD%\bin\gbak" -r %ROOT_PATH%\builds\misc\security.gbak localhost:%DB_PATH%\gen\dbs\security.fdb @"%FIREBIRD%\bin\gbak" -r %ROOT_PATH%\builds\misc\msg.gbak localhost:%DB_PATH%\gen\dbs\msg.fdb @"%FIREBIRD%\bin\gbak" -r %ROOT_PATH%\builds\misc\help.gbak localhost:%DB_PATH%\gen\dbs\help.fdb @copy %ROOT_PATH%\gen\dbs\metadata.fdb %ROOT_PATH%\gen\dbs\yachts.lnk > nul @echo. @echo Completed Preparations for build @echo You may now run make_boot.bat @echo. @goto :END ::=========== :HELP @echo. @echo If gbak is not available on your path specify the @echo root directory of your Firebird installation. @echo Example: @echo c:\program files\firebird @echo. @goto :END :END