2003-04-09 11:07:44 +02:00
|
|
|
:: Initial Developer's Public License.
|
|
|
|
:: The contents of this file are subject to the Initial Developer's Public
|
|
|
|
:: License Version 1.0 (the "License"). You may not use this file except
|
|
|
|
:: in compliance with the License. You may obtain a copy of the License at
|
2005-02-17 15:53:43 +01:00
|
|
|
:: http://www.ibphoenix.com?a=ibphoenix&page=ibp_idpl
|
2003-04-09 11:07:44 +02:00
|
|
|
:: Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
:: WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
:: for the specific language governing rights and limitations under the
|
|
|
|
:: License.
|
|
|
|
::
|
2005-02-17 15:53:43 +01:00
|
|
|
:: The Original Code is copyright 2003-2004 Paul Reeves.
|
2003-04-09 11:07:44 +02:00
|
|
|
::
|
|
|
|
:: The Initial Developer of the Original Code is Paul Reeves
|
|
|
|
::
|
|
|
|
:: All Rights Reserved.
|
|
|
|
::
|
|
|
|
::=============================================================================
|
2003-07-04 21:13:58 +02:00
|
|
|
@echo off
|
2003-04-09 11:07:44 +02:00
|
|
|
|
2003-05-22 14:42:19 +02:00
|
|
|
@goto :MAIN
|
|
|
|
@goto :EOF
|
2005-02-17 15:53:43 +01:00
|
|
|
::============================================================================
|
2003-04-09 11:07:44 +02:00
|
|
|
|
|
|
|
:SET_PARAMS
|
2005-02-17 15:53:43 +01:00
|
|
|
@echo off
|
2012-05-29 12:14:03 +02:00
|
|
|
:: reset ERRLEV to clear error from last run in same cmd shell
|
|
|
|
set ERRLEV=0
|
2005-02-17 15:53:43 +01:00
|
|
|
:: Assume we are preparing a production build
|
|
|
|
set FBBUILD_BUILDTYPE=release
|
|
|
|
:: Don't ship pdb files by default
|
|
|
|
set FBBUILD_SHIP_PDB=no_pdb
|
2005-03-04 11:08:06 +01:00
|
|
|
:: Reset "make" vars to zero
|
2005-02-17 15:53:43 +01:00
|
|
|
set FBBUILD_ZIP_PACK=0
|
|
|
|
set FBBUILD_ISX_PACK=0
|
|
|
|
set FBBUILD_EMB_PACK=0
|
|
|
|
|
2007-02-26 16:20:30 +01:00
|
|
|
if not defined FB2_SNAPSHOT (set FB2_SNAPSHOT=0)
|
|
|
|
|
2005-07-12 14:36:12 +02:00
|
|
|
:: Set our package number at 0 and increment every
|
|
|
|
:: time we rebuild in a single session
|
|
|
|
if not defined FBBUILD_PACKAGE_NUMBER (
|
2005-02-17 15:53:43 +01:00
|
|
|
set FBBUILD_PACKAGE_NUMBER=0
|
2005-07-12 14:36:12 +02:00
|
|
|
) else (
|
|
|
|
set /A FBBUILD_PACKAGE_NUMBER+=1
|
|
|
|
)
|
2005-08-08 15:22:34 +02:00
|
|
|
@echo Setting FBBUILD_PACKAGE_NUMBER to %FBBUILD_PACKAGE_NUMBER%
|
2003-05-22 14:42:19 +02:00
|
|
|
|
2012-05-29 12:14:03 +02:00
|
|
|
::If a suffix is defined (usually for an RC) ensure it is prefixed correctly.
|
|
|
|
if defined FBBUILD_FILENAME_SUFFIX (
|
|
|
|
if not "%FBBUILD_FILENAME_SUFFIX:~0,1%"=="_" (
|
|
|
|
(set FBBUILD_FILENAME_SUFFIX=_%FBBUILD_FILENAME_SUFFIX%)
|
|
|
|
)
|
|
|
|
)
|
2009-04-08 17:00:20 +02:00
|
|
|
|
2003-05-22 14:42:19 +02:00
|
|
|
:: See what we have on the command line
|
2005-02-17 15:53:43 +01:00
|
|
|
::for %%v in ( %1 %2 %3 %4 %5 ) do (
|
|
|
|
for %%v in ( %* ) do (
|
|
|
|
( if /I "%%v"=="DEBUG" (set FBBUILD_BUILDTYPE=debug) )
|
|
|
|
( if /I "%%v"=="PDB" (set FBBUILD_SHIP_PDB=ship_pdb) )
|
|
|
|
( if /I "%%v"=="ZIP" (set FBBUILD_ZIP_PACK=1) )
|
|
|
|
( if /I "%%v"=="ISX" (set FBBUILD_ISX_PACK=1) )
|
|
|
|
( if /I "%%v"=="EMB" (set FBBUILD_EMB_PACK=1) )
|
|
|
|
( if /I "%%v"=="ALL" ( (set FBBUILD_ZIP_PACK=1) & (set FBBUILD_ISX_PACK=1) & (set FBBUILD_EMB_PACK=1) ) )
|
|
|
|
)
|
|
|
|
|
|
|
|
:: Now check whether we are debugging the InnoSetup script
|
|
|
|
|
|
|
|
@if %FB2_ISS_DEBUG% equ 0 (@set ISS_BUILD_TYPE=iss_release) else (@set ISS_BUILD_TYPE=iss_debug)
|
|
|
|
@if %FB2_ISS_DEBUG% equ 0 (@set ISS_COMPRESS=compression) else (@set ISS_COMPRESS=nocompression)
|
2005-03-16 14:16:03 +01:00
|
|
|
|
|
|
|
(@set ISS_EXAMPLES=examples)
|
|
|
|
@if %FB2_ISS_DEBUG% equ 1 (
|
|
|
|
@if %FB2_EXAMPLES% equ 0 (@set ISS_EXAMPLES=noexamples)
|
2005-05-04 12:47:44 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
::Are we doing a snapshot build? If so we always do less work.
|
|
|
|
if "%FB2_SNAPSHOT%"=="1" (
|
2007-02-26 16:20:30 +01:00
|
|
|
(set FB_ISS_EXAMPLES=noexamples)
|
2005-05-04 12:47:44 +02:00
|
|
|
(set FBBUILD_ISX_PACK=0)
|
|
|
|
(set FBBUILD_EMB_PACK=0)
|
|
|
|
)
|
|
|
|
|
2005-02-17 15:53:43 +01:00
|
|
|
|
|
|
|
:: Set up our final destination
|
2007-02-26 16:20:30 +01:00
|
|
|
set FBBUILD_INSTALL_IMAGES=%FB_ROOT_PATH%\builds\install_images
|
2005-02-17 15:53:43 +01:00
|
|
|
if not exist %FBBUILD_INSTALL_IMAGES% (mkdir %FBBUILD_INSTALL_IMAGES%)
|
|
|
|
|
2007-02-26 16:20:30 +01:00
|
|
|
|
2005-02-17 15:53:43 +01:00
|
|
|
|
|
|
|
:: Determine Product Status
|
|
|
|
set FBBUILD_PROD_STATUS=
|
2007-02-26 16:20:30 +01:00
|
|
|
@type %FB_ROOT_PATH%\src\jrd\build_no.h | findstr /I UNSTABLE > nul && (
|
|
|
|
set FBBUILD_PROD_STATUS=DEV) || type %FB_ROOT_PATH%\src\jrd\build_no.h | findstr /I ALPHA > nul && (
|
|
|
|
set FBBUILD_PROD_STATUS=DEV) || type %FB_ROOT_PATH%\src\jrd\build_no.h | findstr /I BETA > nul && (
|
|
|
|
set FBBUILD_PROD_STATUS=PROD) || type %FB_ROOT_PATH%\src\jrd\build_no.h | findstr /I "Release Candidate" > nul && (
|
|
|
|
set FBBUILD_PROD_STATUS=PROD) || type %FB_ROOT_PATH%\src\jrd\build_no.h | findstr "RC" > nul && (
|
|
|
|
set FBBUILD_PROD_STATUS=PROD) || type %FB_ROOT_PATH%\src\jrd\build_no.h | findstr /I "Final" > nul && (
|
2005-02-17 15:53:43 +01:00
|
|
|
set FBBUILD_PROD_STATUS=PROD)
|
|
|
|
|
|
|
|
::End of SET_PARAMS
|
|
|
|
::-----------------
|
|
|
|
@goto :EOF
|
|
|
|
|
|
|
|
|
|
|
|
:CHECK_ENVIRONMENT
|
|
|
|
::================
|
|
|
|
:: Make sure we have everything we need. If something is missing then
|
|
|
|
:: let's bail out now.
|
|
|
|
|
2007-02-09 09:29:55 +01:00
|
|
|
sed --version | findstr version > nul
|
2005-02-17 15:53:43 +01:00
|
|
|
@if %ERRORLEVEL% GEQ 1 (
|
2008-01-23 07:59:07 +01:00
|
|
|
call :ERROR Could not locate sed
|
|
|
|
goto :EOF
|
2005-02-17 15:53:43 +01:00
|
|
|
) else (@echo o sed found.)
|
|
|
|
|
|
|
|
if %FBBUILD_ZIP_PACK% EQU 1 (
|
2005-03-04 11:08:06 +01:00
|
|
|
if not defined SEVENZIP (
|
2008-01-23 07:59:07 +01:00
|
|
|
call :ERROR SEVENZIP environment variable is not defined.
|
|
|
|
@goto :EOF
|
2005-02-17 15:53:43 +01:00
|
|
|
) else (@echo o Compression utility found.)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
if %FBBUILD_ISX_PACK% EQU 1 (
|
2007-06-22 14:21:25 +02:00
|
|
|
if NOT DEFINED INNO5_SETUP_PATH (
|
2008-01-23 07:59:07 +01:00
|
|
|
call :ERROR INNO5_SETUP_PATH variable not defined
|
|
|
|
@goto :EOF
|
2007-06-22 14:21:25 +02:00
|
|
|
) else (@echo o Inno Setup found at %INNO5_SETUP_PATH%.)
|
2003-05-22 14:42:19 +02:00
|
|
|
)
|
2005-02-17 15:53:43 +01:00
|
|
|
|
2008-01-23 07:59:07 +01:00
|
|
|
|
|
|
|
if not DEFINED FB_EXTERNAL_DOCS (
|
|
|
|
@echo.
|
|
|
|
@echo The FB_EXTERNAL_DOCS environment var is not defined
|
|
|
|
@echo It should point to the directory containing the relevant release notes
|
|
|
|
@echo in adobe pdf format.
|
|
|
|
@echo.
|
|
|
|
@echo Subsequent script execution will be cancelled.
|
|
|
|
@echo.
|
|
|
|
cancel_script > nul 2>&1
|
|
|
|
goto :EOF
|
|
|
|
)
|
|
|
|
|
2007-12-21 13:10:16 +01:00
|
|
|
)
|
|
|
|
|
2005-02-17 15:53:43 +01:00
|
|
|
::End of CHECK_ENVIRONMENT
|
|
|
|
::------------------------
|
2003-05-22 14:42:19 +02:00
|
|
|
@goto :EOF
|
2003-04-09 11:07:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
:SED_MAGIC
|
2005-02-17 15:53:43 +01:00
|
|
|
:: Do some sed magic to make sure that the final product
|
2003-04-09 11:07:44 +02:00
|
|
|
:: includes the version string in the filename.
|
2005-02-17 15:53:43 +01:00
|
|
|
:: If the Firebird Unix tools for Win32 aren't on
|
2003-05-22 14:42:19 +02:00
|
|
|
:: the path this will fail! Use of the cygwin tools has not
|
2005-02-17 15:53:43 +01:00
|
|
|
:: been tested and may produce unexpected results.
|
2003-05-22 14:42:19 +02:00
|
|
|
::========================================================
|
2007-02-26 16:20:30 +01:00
|
|
|
find "#define PRODUCT_VER_STRING" %FB_ROOT_PATH%\src\jrd\build_no.h > %temp%.\b$1.txt
|
2005-02-17 15:53:43 +01:00
|
|
|
sed -n -e s/\"//g -e s/"#define PRODUCT_VER_STRING "//w%temp%.\b$2.txt %temp%.\b$1.txt
|
2007-06-22 14:21:25 +02:00
|
|
|
for /f "tokens=*" %%a in ('type %temp%.\b$2.txt') do set FBBUILD_PRODUCT_VER_STRING=%%a
|
2005-02-17 15:53:43 +01:00
|
|
|
|
2007-06-22 14:21:25 +02:00
|
|
|
find "#define FB_MAJOR_VER" %FB_ROOT_PATH%\src\jrd\build_no.h > %temp%.\b$1.txt
|
|
|
|
sed -n -e s/\"//g -e s/"#define FB_MAJOR_VER "//w%temp%.\b$2.txt %temp%.\b$1.txt
|
|
|
|
for /f "tokens=*" %%a in ('type %temp%.\b$2.txt') do set FB_MAJOR_VER=%%a
|
2007-02-26 16:20:30 +01:00
|
|
|
|
2007-06-22 14:21:25 +02:00
|
|
|
find "#define FB_MINOR_VER" %FB_ROOT_PATH%\src\jrd\build_no.h > %temp%.\b$1.txt
|
|
|
|
sed -n -e s/\"//g -e s/"#define FB_MINOR_VER "//w%temp%.\b$2.txt %temp%.\b$1.txt
|
|
|
|
for /f "tokens=*" %%a in ('type %temp%.\b$2.txt') do set FB_MINOR_VER=%%a
|
|
|
|
|
|
|
|
find "#define FB_REV_NO" %FB_ROOT_PATH%\src\jrd\build_no.h > %temp%.\b$1.txt
|
|
|
|
sed -n -e s/\"//g -e s/"#define FB_REV_NO "//w%temp%.\b$2.txt %temp%.\b$1.txt
|
|
|
|
for /f "tokens=*" %%a in ('type %temp%.\b$2.txt') do set FB_REV_NO=%%a
|
|
|
|
|
|
|
|
find "#define FB_BUILD_NO" %FB_ROOT_PATH%\src\jrd\build_no.h > %temp%.\b$1.txt
|
|
|
|
sed -n -e s/\"//g -e s/"#define FB_BUILD_NO "//w%temp%.\b$2.txt %temp%.\b$1.txt
|
|
|
|
for /f "tokens=*" %%a in ('type %temp%.\b$2.txt') do set FB_BUILD_NO=%%a
|
|
|
|
|
|
|
|
set FBBUILD_FILE_ID=%FBBUILD_PRODUCT_VER_STRING%-%FBBUILD_PACKAGE_NUMBER%_%FB_TARGET_PLATFORM%
|
|
|
|
|
|
|
|
::@echo s/-2.0.0-/-%FBBUILD_PRODUCT_VER_STRING%-/ > %temp%.\b$3.txt
|
|
|
|
@echo s/define release/define %FBBUILD_BUILDTYPE%/ > %temp%.\b$3.txt
|
|
|
|
@echo s/define msvc_version 8/define msvc_version %MSVC_VERSION%/ >> %temp%.\b$3.txt
|
2005-02-17 15:53:43 +01:00
|
|
|
@echo s/define no_pdb/define %FBBUILD_SHIP_PDB%/ >> %temp%.\b$3.txt
|
2007-06-22 14:21:25 +02:00
|
|
|
::@echo s/define package_number=\"0\"/define package_number=\"%FBBUILD_PACKAGE_NUMBER%\"/ >> %temp%.\b$3.txt
|
2005-02-17 15:53:43 +01:00
|
|
|
@echo s/define iss_release/define %ISS_BUILD_TYPE%/ >> %temp%.\b$3.txt
|
|
|
|
@echo s/define examples/define %ISS_EXAMPLES%/ >> %temp%.\b$3.txt
|
|
|
|
@echo s/define compression/define %ISS_COMPRESS%/ >> %temp%.\b$3.txt
|
2007-06-22 14:21:25 +02:00
|
|
|
@echo s/FBBUILD_PRODUCT_VER_STRING/%FBBUILD_PRODUCT_VER_STRING%/ >> %temp%.\b$3.txt
|
2005-02-17 15:53:43 +01:00
|
|
|
|
2012-05-29 12:14:03 +02:00
|
|
|
sed -f %temp%.\b$3.txt FirebirdInstall_30.iss > FirebirdInstall_%FBBUILD_FILE_ID%.iss
|
2005-02-17 15:53:43 +01:00
|
|
|
|
2009-09-25 15:41:54 +02:00
|
|
|
:: This is a better way of achieving what is done in make_all.bat, but we don't
|
|
|
|
:: test for sed in that script.
|
|
|
|
@sed /@UDF_COMMENT@/s/@UDF_COMMENT@/#/ < %FB_ROOT_PATH%\builds\install\misc\firebird.conf.in > %FB_OUTPUT_DIR%\firebird.conf
|
|
|
|
|
|
|
|
|
2008-01-24 11:32:25 +01:00
|
|
|
set FBBUILD_FB25_CUR_VER=%FB_MAJOR_VER%.%FB_MINOR_VER%.%FB_REV_NO%
|
2008-07-10 16:52:52 +02:00
|
|
|
set FBBUILD_FB_CUR_VER=%FBBUILD_FB25_CUR_VER%
|
2008-01-24 11:32:25 +01:00
|
|
|
|
|
|
|
:: Now set some version strings of our legacy releases.
|
|
|
|
:: This helps us copy the correct documentation,
|
|
|
|
:: as well as set up the correct shortcuts
|
2012-05-29 12:14:03 +02:00
|
|
|
set FBBUILD_FB15_CUR_VER=1.5.6
|
|
|
|
set FBBUILD_FB20_CUR_VER=2.0.7
|
|
|
|
set FBBUILD_FB21_CUR_VER=2.1.5
|
|
|
|
|
|
|
|
:: Now fix up the major.minor version strings in the readme files.
|
|
|
|
:: We place output in %FB_GEN_DIR%\readmes
|
|
|
|
@if not exist %FB_GEN_DIR%\readmes (@mkdir %FB_GEN_DIR%\readmes)
|
|
|
|
@for %%d in (ba cz de es fr hu it pl pt ru si ) do (
|
|
|
|
@if not exist %FB_GEN_DIR%\readmes\%%d (@mkdir %FB_GEN_DIR%\readmes\%%d)
|
|
|
|
)
|
|
|
|
|
|
|
|
@echo s/\$MAJOR/%FB_MAJOR_VER%/g > %temp%.\b$4.txt
|
|
|
|
@echo s/\$MINOR/%FB_MINOR_VER%/g >> %temp%.\b$4.txt
|
|
|
|
@echo s/\$RELEASE/%FB_REV_NO%/g >> %temp%.\b$4.txt
|
|
|
|
@for %%f in (Readme.txt installation_readme.txt) do (
|
|
|
|
@echo Processing version strings in %%f
|
|
|
|
@sed -f %temp%.\b$4.txt %%f > %FB_GEN_DIR%\readmes\%%f
|
|
|
|
)
|
|
|
|
@for %%d in (ba cz de es fr hu it pl pt ru si ) do (
|
|
|
|
@pushd %%d
|
|
|
|
@for /F %%f in ( '@dir /B /A-D *.txt' ) do (
|
|
|
|
@echo Processing version strings in %%d\%%f
|
|
|
|
@sed -f %temp%.\b$4.txt %%f > %FB_GEN_DIR%\readmes\%%d\%%f
|
|
|
|
)
|
|
|
|
@popd
|
|
|
|
)
|
|
|
|
|
|
|
|
del %temp%.\b$?.txt
|
|
|
|
|
2007-02-26 16:20:30 +01:00
|
|
|
|
2005-02-17 15:53:43 +01:00
|
|
|
::End of SED_MAGIC
|
|
|
|
::----------------
|
2003-05-22 14:42:19 +02:00
|
|
|
@goto :EOF
|
2003-04-09 11:07:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
:COPY_XTRA
|
|
|
|
:: system dll's we need
|
2012-05-29 12:14:03 +02:00
|
|
|
:: MSVC should be installed with redistributable packages.
|
2003-04-09 11:07:44 +02:00
|
|
|
::=====================
|
2012-05-29 12:14:03 +02:00
|
|
|
@echo Copying MSVC runtime libraries...
|
2007-02-26 16:20:30 +01:00
|
|
|
if not exist %FB_OUTPUT_DIR%\system32 (mkdir %FB_OUTPUT_DIR%\system32)
|
2012-05-29 12:14:03 +02:00
|
|
|
@echo on
|
|
|
|
for %%f in ( msvcp%MSVC_VERSION%?.dll msvcr%MSVC_VERSION%?.dll ) do (
|
|
|
|
if exist "%VCINSTALLDIR%\redist\%PROCESSOR_ARCHITECTURE%\Microsoft.VC%MSVC_VERSION%0.CRT\%%f" (
|
|
|
|
copy "%VCINSTALLDIR%\redist\%PROCESSOR_ARCHITECTURE%\Microsoft.VC%MSVC_VERSION%0.CRT\%%f" %FB_OUTPUT_DIR%\
|
|
|
|
)
|
2005-02-17 15:53:43 +01:00
|
|
|
)
|
2012-05-29 12:14:03 +02:00
|
|
|
|
|
|
|
@echo off
|
|
|
|
|
|
|
|
|
2005-02-17 15:53:43 +01:00
|
|
|
@if %ERRORLEVEL% GEQ 1 ( (call :ERROR Copying MSVC runtime library failed with error %ERRORLEVEL% ) & (goto :EOF))
|
2003-04-09 11:07:44 +02:00
|
|
|
|
2005-02-17 15:53:43 +01:00
|
|
|
:: grab some missing bits'n'pieces from different parts of the source tree
|
2003-04-09 11:07:44 +02:00
|
|
|
::=========================================================================
|
2005-02-17 15:53:43 +01:00
|
|
|
@echo Copying ib_util etc
|
2007-02-26 16:20:30 +01:00
|
|
|
copy %FB_ROOT_PATH%\src\extlib\ib_util.h %FB_OUTPUT_DIR%\include > nul || (call :WARNING Copying ib_util.h failed.)
|
|
|
|
copy %FB_ROOT_PATH%\lang_helpers\ib_util.pas %FB_OUTPUT_DIR%\include > nul || (call :WARNING Copying ib_util.pas failed.)
|
2005-03-04 11:08:06 +01:00
|
|
|
|
2005-02-17 15:53:43 +01:00
|
|
|
@implib.exe | findstr "Borland" > nul
|
|
|
|
@if errorlevel 0 (
|
2007-02-26 16:20:30 +01:00
|
|
|
if "%PROCESSOR_ARCHITECTURE%"=="x86" (
|
2005-02-17 15:53:43 +01:00
|
|
|
@echo Generating fbclient_bor.lib
|
2012-05-29 12:14:03 +02:00
|
|
|
@implib %FB_OUTPUT_DIR%\lib\fbclient_bor.lib %FB_OUTPUT_DIR%\fbclient.dll > nul
|
2007-02-26 16:20:30 +01:00
|
|
|
)
|
2005-02-17 15:53:43 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
@if "%FBBUILD_SHIP_PDB%"=="ship_pdb" (
|
|
|
|
@echo Copying pdb files...
|
2012-05-29 12:14:03 +02:00
|
|
|
for %%v in ( fbembed firebird fbclient ) do (
|
2008-01-23 07:59:07 +01:00
|
|
|
@copy %FB_TEMP_DIR%\%FBBUILD_BUILDTYPE%\%%v\%%v.pdb %FB_OUTPUT_DIR%\bin > nul
|
|
|
|
@if %ERRORLEVEL% GEQ 1 (
|
|
|
|
call :ERROR Copying %%v.pdb files failed
|
|
|
|
goto :EOF
|
|
|
|
)
|
2005-02-17 15:53:43 +01:00
|
|
|
)
|
|
|
|
)
|
2012-05-29 12:14:03 +02:00
|
|
|
:: @copy %FB_TEMP_DIR%\%FBBUILD_BUILDTYPE%\firebird\*.pdb %FB_OUTPUT_DIR%\bin > nul
|
2005-02-17 15:53:43 +01:00
|
|
|
|
|
|
|
@echo Started copying docs...
|
2007-02-26 16:20:30 +01:00
|
|
|
@rmdir /S /Q %FB_OUTPUT_DIR%\doc 2>nul
|
|
|
|
@mkdir %FB_OUTPUT_DIR%\doc
|
|
|
|
@copy %FB_ROOT_PATH%\ChangeLog %FB_OUTPUT_DIR%\doc\ChangeLog.txt >nul
|
|
|
|
@copy %FB_ROOT_PATH%\doc\*.* %FB_OUTPUT_DIR%\doc\ > nul
|
2005-02-17 15:53:43 +01:00
|
|
|
@if %ERRORLEVEL% GEQ 1 (
|
|
|
|
call :ERROR COPY of main documentation tree failed with error %ERRORLEVEL%
|
|
|
|
goto :EOF
|
|
|
|
)
|
|
|
|
|
|
|
|
@echo Copying udf library scripts...
|
2006-03-29 15:44:55 +02:00
|
|
|
for %%v in ( ib_udf.sql ib_udf2.sql ) do (
|
2012-05-29 12:14:03 +02:00
|
|
|
@copy %FB_ROOT_PATH%\src\extlib\%%v %FB_OUTPUT_DIR%\UDF\%%v > nul
|
2005-02-17 15:53:43 +01:00
|
|
|
@if %ERRORLEVEL% GEQ 1 (
|
2008-01-23 07:59:07 +01:00
|
|
|
call :ERROR Copying %FB_ROOT_PATH%\src\extlib\%%v failed.
|
|
|
|
goto :EOF
|
2005-02-17 15:53:43 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
for %%v in ( fbudf.sql fbudf.txt ) do (
|
2007-02-26 16:20:30 +01:00
|
|
|
copy %FB_ROOT_PATH%\src\extlib\fbudf\%%v %FB_OUTPUT_DIR%\UDF\%%v > nul
|
2005-02-17 15:53:43 +01:00
|
|
|
@if %ERRORLEVEL% GEQ 1 (
|
2008-01-23 07:59:07 +01:00
|
|
|
call :ERROR Copying %FB_ROOT_PATH%\src\extlib\%%v failed with error %ERRORLEVEL%
|
|
|
|
goto :EOF
|
2005-02-17 15:53:43 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2005-03-14 15:55:48 +01:00
|
|
|
::UDF upgrade script and doc
|
2007-02-26 16:20:30 +01:00
|
|
|
mkdir %FB_OUTPUT_DIR%\misc\upgrade\ib_udf 2>nul
|
2012-05-29 12:14:03 +02:00
|
|
|
@copy %FB_ROOT_PATH%\src\misc\upgrade\v2\ib_udf*.* %FB_OUTPUT_DIR%\misc\upgrade\ib_udf\ > nul
|
2005-03-14 15:55:48 +01:00
|
|
|
|
2005-07-05 17:25:27 +02:00
|
|
|
::INTL script
|
2012-05-29 12:14:03 +02:00
|
|
|
@copy %FB_ROOT_PATH%\src\misc\intl.sql %FB_OUTPUT_DIR%\misc\ > nul
|
2005-07-05 17:25:27 +02:00
|
|
|
|
2005-03-14 15:55:48 +01:00
|
|
|
|
2005-02-17 15:53:43 +01:00
|
|
|
@echo Copying other documentation...
|
2012-05-29 12:14:03 +02:00
|
|
|
@copy %FB_GEN_DIR%\readmes\installation_readme.txt %FB_OUTPUT_DIR%\doc\installation_readme.txt > nul
|
2007-02-26 16:20:30 +01:00
|
|
|
@copy %FB_OUTPUT_DIR%\doc\WhatsNew %FB_OUTPUT_DIR%\doc\WhatsNew.txt > nul
|
|
|
|
@del %FB_OUTPUT_DIR%\doc\WhatsNew
|
2003-05-22 14:42:19 +02:00
|
|
|
|
2003-04-09 11:07:44 +02:00
|
|
|
|
2005-02-17 15:53:43 +01:00
|
|
|
:: If we are not doing a final release then include stuff that is
|
|
|
|
:: likely to be of use to testers, especially as our release notes
|
|
|
|
:: may be incomplete or non-existent
|
|
|
|
@if /I "%FBBUILD_PROD_STATUS%"=="DEV" (
|
2007-02-26 16:20:30 +01:00
|
|
|
@copy %FB_ROOT_PATH%\ChangeLog %FB_OUTPUT_DIR%\doc\ChangeLog.txt > nul
|
2003-05-22 14:42:19 +02:00
|
|
|
)
|
2003-04-09 11:07:44 +02:00
|
|
|
|
|
|
|
|
2007-02-26 16:20:30 +01:00
|
|
|
@mkdir %FB_OUTPUT_DIR%\doc\sql.extensions 2>nul
|
2005-02-17 15:53:43 +01:00
|
|
|
@if %ERRORLEVEL% GEQ 2 ( (call :ERROR MKDIR for doc\sql.extensions dir failed) & (@goto :EOF))
|
2007-02-26 16:20:30 +01:00
|
|
|
@copy %FB_ROOT_PATH%\doc\sql.extensions\*.* %FB_OUTPUT_DIR%\doc\sql.extensions\ > nul
|
2005-02-17 15:53:43 +01:00
|
|
|
@if %ERRORLEVEL% GEQ 1 ( (call :ERROR Copying doc\sql.extensions failed ) & (goto :EOF))
|
2003-04-09 11:07:44 +02:00
|
|
|
|
2008-01-23 07:59:07 +01:00
|
|
|
:: External docs aren't necessary for a snapshot build, so we don't throw
|
|
|
|
:: an error if FB_EXTERNAL_DOCS is not defined. On the other hand,
|
|
|
|
:: if the docs are available then we can include them.
|
|
|
|
if defined FB_EXTERNAL_DOCS (
|
2005-02-17 15:53:43 +01:00
|
|
|
@echo Copying pdf docs...
|
2012-05-29 12:14:03 +02:00
|
|
|
@for %%v in ( Firebird-%FB_MAJOR_VER%.%FB_MINOR_VER%-QuickStart.pdf Firebird_v%FBBUILD_FB_CUR_VER%.ReleaseNotes.pdf ) do (
|
2005-02-17 15:53:43 +01:00
|
|
|
@echo ... %%v
|
2007-02-26 16:20:30 +01:00
|
|
|
(@copy /Y %FB_EXTERNAL_DOCS%\%%v %FB_OUTPUT_DIR%\doc\%%v > nul) || (call :WARNING Copying %FB_EXTERNAL_DOCS%\%%v failed.)
|
2005-02-17 15:53:43 +01:00
|
|
|
)
|
2008-01-23 07:59:07 +01:00
|
|
|
)
|
2005-02-17 15:53:43 +01:00
|
|
|
|
|
|
|
:: Clean out text notes that are either not relevant to Windows or
|
|
|
|
:: are only of use to engine developers.
|
2007-03-15 16:25:41 +01:00
|
|
|
@for %%v in ( README.makefiles README.user README.user.embedded README.user.troubleshooting README.build.mingw.html README.build.msvc.html fb2-todo.txt cleaning-todo.txt install_win32.txt README.coding.style emacros-cross_ref.html firebird_conf.txt *.*~) do (
|
2007-02-26 16:20:30 +01:00
|
|
|
@del %FB_OUTPUT_DIR%\doc\%%v 2>nul
|
2005-02-17 15:53:43 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
:: Add license
|
|
|
|
for %%v in (IPLicense.txt IDPLicense.txt ) do (
|
2008-01-23 07:59:07 +01:00
|
|
|
@copy %FB_ROOT_PATH%\builds\install\misc\%%v %FB_OUTPUT_DIR%\%%v > nul
|
2005-02-17 15:53:43 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
:: And readme
|
2012-05-29 12:14:03 +02:00
|
|
|
@copy %FB_GEN_DIR%\readmes\readme.txt %FB_OUTPUT_DIR%\ > nul
|
2005-02-17 15:53:43 +01:00
|
|
|
|
|
|
|
:: Walk through all docs and transform any that are not .txt, .pdf or .html to .txt
|
|
|
|
echo Setting .txt filetype to ascii docs.
|
2007-02-26 16:20:30 +01:00
|
|
|
for /R %FB_OUTPUT_DIR%\doc %%v in (.) do (
|
2005-02-17 15:53:43 +01:00
|
|
|
pushd %%v
|
|
|
|
for /F %%W in ( 'dir /B /A-D' ) do (
|
2008-01-23 07:59:07 +01:00
|
|
|
if /I "%%~xW" NEQ ".txt" (
|
|
|
|
if /I "%%~xW" NEQ ".pdf" (
|
|
|
|
if /I "%%~xW" NEQ ".htm" (
|
|
|
|
if /I "%%~xW" NEQ ".html" (
|
|
|
|
ren %%W %%W.txt
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2005-02-17 15:53:43 +01:00
|
|
|
)
|
|
|
|
popd
|
|
|
|
)
|
|
|
|
|
|
|
|
:: Throw away any errorlevel left hanging around
|
|
|
|
@set | findstr win > nul
|
|
|
|
|
|
|
|
@echo Completed copying docs.
|
|
|
|
::End of COPY_XTRA
|
|
|
|
::----------------
|
|
|
|
@goto :EOF
|
|
|
|
|
|
|
|
|
2007-12-21 13:10:16 +01:00
|
|
|
:BUILD_CRT_MSI
|
|
|
|
:: Generate runtimes as an MSI file.
|
2008-01-23 07:59:07 +01:00
|
|
|
:: This requires WiX 2.0 to be installed
|
2007-12-21 13:10:16 +01:00
|
|
|
::============
|
2012-05-29 12:14:03 +02:00
|
|
|
:: This is only relevent if we are shipping packages built with MSVS 2005 (MSVC8)
|
|
|
|
:: We have never shipped packages with MSVS 2008 (MSVC9) and we are hoping not
|
|
|
|
:: to deploy MSI runtimes if we build with MSVC 2010 (MVC10)
|
|
|
|
if %MSVC_VERSION% EQU 8 (
|
2007-12-21 13:10:16 +01:00
|
|
|
if not exist %FB_OUTPUT_DIR%\system32\vccrt%MSVC_VERSION%_%FB_TARGET_PLATFORM%.msi (
|
2008-01-23 07:59:07 +01:00
|
|
|
%WIX%\candle.exe -v0 %FB_ROOT_PATH%\builds\win32\msvc%MSVC_VERSION%\VCCRT_%FB_TARGET_PLATFORM%.wxs -out %FB_GEN_DIR%\vccrt_%FB_TARGET_PLATFORM%.wixobj
|
|
|
|
%WIX%\light.exe %FB_GEN_DIR%\vccrt_%FB_TARGET_PLATFORM%.wixobj -out %FB_OUTPUT_DIR%\system32\vccrt%MSVC_VERSION%_%FB_TARGET_PLATFORM%.msi
|
2008-03-10 16:04:16 +01:00
|
|
|
) else (
|
|
|
|
@echo Using an existing build of %FB_OUTPUT_DIR%\system32\vccrt%MSVC_VERSION%_%FB_TARGET_PLATFORM%.msi
|
2007-12-21 13:10:16 +01:00
|
|
|
))
|
|
|
|
|
|
|
|
::End of BUILD_CRT_MSI
|
|
|
|
::--------------------
|
|
|
|
@goto :EOF
|
|
|
|
|
|
|
|
|
2005-02-17 15:53:43 +01:00
|
|
|
:IBASE_H
|
|
|
|
:: Concatenate header files into ibase.h
|
|
|
|
::======================================
|
|
|
|
:: o This section of code takes several header files, strips license
|
|
|
|
:: boiler plates and comments and inserts them into ibase.h for
|
|
|
|
:: distribution. The only drawback is that it strips all the comments.
|
|
|
|
:: o No error checking is done.
|
|
|
|
:: o Take note that different versions of sed use different
|
|
|
|
:: string delimiters. The firebird_tools version uses double quotes - ".
|
|
|
|
:: The cygwin one probably uses single quotes.
|
|
|
|
:: o The script 'strip_comments.sed' is taken from
|
|
|
|
:: http://sed.sourceforge.net/grabbag/scripts/testo.htm
|
|
|
|
|
|
|
|
setlocal
|
2007-02-26 16:20:30 +01:00
|
|
|
set OUTPATH=%FB_OUTPUT_DIR%\include
|
|
|
|
copy %FB_ROOT_PATH%\src\jrd\ibase.h %OUTPATH%\ibase.h > nul
|
2012-05-29 12:14:03 +02:00
|
|
|
for %%v in ( %FB_ROOT_PATH%\src\include\types_pub.h %FB_ROOT_PATH%\src\include\consts_pub.h %FB_ROOT_PATH%\src\dsql\sqlda_pub.h %FB_ROOT_PATH%\src\common\dsc_pub.h %FB_ROOT_PATH%\src\jrd\inf_pub.h %FB_ROOT_PATH%\src\jrd\blr.h ) do (
|
2005-02-17 15:53:43 +01:00
|
|
|
del %OUTPATH%\%%~nxv 2> nul
|
|
|
|
copy %%v %OUTPATH%\%%~nxv > nul
|
2012-05-29 12:14:03 +02:00
|
|
|
sed -n -f strip_comments.sed %OUTPATH%\%%~nxv > %OUTPATH%\%%~nv.more || call :ERROR Stripping comments from %%v failed.
|
|
|
|
|
2005-02-17 15:53:43 +01:00
|
|
|
more /s %OUTPATH%\%%~nv.more > %OUTPATH%\%%~nv.sed
|
|
|
|
)
|
|
|
|
move /y %OUTPATH%\ibase.h %OUTPATH%\ibase.sed
|
2012-05-29 12:14:03 +02:00
|
|
|
sed -e "/#include \"types_pub\.h\"/r %OUTPATH%\types_pub.sed" -e "/#include \"types_pub\.h\"/d" -e "/#include \"consts_pub\.h\"/r %OUTPATH%\consts_pub.sed" -e "/#include \"consts_pub\.h\"/d" -e "/#include \"..\/common\/dsc_pub\.h\"/r %OUTPATH%\dsc_pub.sed" -e "/#include \"..\/jrd\/dsc_pub\.h\"/d" -e "/#include \"..\/dsql\/sqlda_pub\.h\"/r %OUTPATH%\sqlda_pub.sed" -e "/#include \"..\/dsql\/sqlda_pub\.h\"/d" -e "/#include \"blr\.h\"/r %OUTPATH%\blr.sed" -e "/#include \"blr\.h\"/d" -e "/#include \"..\/jrd\/inf_pub\.h\"/r %OUTPATH%\inf_pub.sed" -e "/#include \"..\/jrd\/inf_pub\.h\"/d" %OUTPATH%\ibase.sed > %OUTPATH%\ibase.h
|
2007-03-22 10:10:14 +01:00
|
|
|
del %OUTPATH%\ibase.sed %OUTPATH%\types_pub.* %OUTPATH%\consts_pub.* %OUTPATH%\sqlda_pub.* %OUTPATH%\dsc_pub.* %OUTPATH%\inf_pub.* %OUTPATH%\blr.*
|
2005-02-17 15:53:43 +01:00
|
|
|
endlocal
|
|
|
|
|
|
|
|
::End of IBASE_H
|
|
|
|
::--------------
|
2003-05-22 14:42:19 +02:00
|
|
|
@goto :EOF
|
2003-04-09 11:07:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
:ALIAS_CONF
|
|
|
|
:: Generate a sample aliases file
|
|
|
|
::===============================
|
2005-02-17 15:53:43 +01:00
|
|
|
@echo Creating sample aliases.conf
|
2007-02-26 16:20:30 +01:00
|
|
|
@echo # > %FB_OUTPUT_DIR%\aliases.conf
|
|
|
|
@echo # List of known database aliases >> %FB_OUTPUT_DIR%\aliases.conf
|
|
|
|
@echo # ------------------------------ >> %FB_OUTPUT_DIR%\aliases.conf
|
|
|
|
@echo # >> %FB_OUTPUT_DIR%\aliases.conf
|
|
|
|
@echo # Examples: >> %FB_OUTPUT_DIR%\aliases.conf
|
|
|
|
@echo # >> %FB_OUTPUT_DIR%\aliases.conf
|
|
|
|
@echo # dummy = c:\data\dummy.fdb >> %FB_OUTPUT_DIR%\aliases.conf
|
|
|
|
@echo # >> %FB_OUTPUT_DIR%\aliases.conf
|
2005-02-17 15:53:43 +01:00
|
|
|
|
|
|
|
::End of ALIAS_CONF
|
|
|
|
::-----------------
|
|
|
|
@goto :EOF
|
|
|
|
|
|
|
|
|
|
|
|
:GBAK_SEC_DB
|
2007-02-26 16:20:30 +01:00
|
|
|
::@echo Let's make sure that we have a backup of the security database handy.
|
2005-02-17 15:53:43 +01:00
|
|
|
::======================================================================
|
2007-02-26 16:20:30 +01:00
|
|
|
::@copy %FB_ROOT_PATH%\builds\misc\security.gbak %FB_OUTPUT_DIR%\security2.fbk > nul
|
2005-05-04 12:47:44 +02:00
|
|
|
::@if %ERRORLEVEL% GEQ 1 ( (call :ERROR copy security2.fbk failed ) & (goto :EOF))
|
2005-02-17 15:53:43 +01:00
|
|
|
|
2005-03-14 15:55:48 +01:00
|
|
|
::Migration from old security db to new one
|
2007-02-26 16:20:30 +01:00
|
|
|
mkdir %FB_OUTPUT_DIR%\misc\upgrade\security 2>nul
|
2012-05-29 12:14:03 +02:00
|
|
|
@copy %FB_ROOT_PATH%\src\misc\upgrade\v2\security_database.* %FB_OUTPUT_DIR%\misc\upgrade\security > nul
|
2005-02-17 15:53:43 +01:00
|
|
|
|
2007-06-02 21:11:18 +02:00
|
|
|
::Metadata migration
|
|
|
|
mkdir %FB_OUTPUT_DIR%\misc\upgrade\metadata 2>nul
|
2012-05-29 12:14:03 +02:00
|
|
|
@copy %FB_ROOT_PATH%\src\misc\upgrade\v2.1\metadata_* %FB_OUTPUT_DIR%\misc\upgrade\metadata > nul
|
2007-06-02 21:11:18 +02:00
|
|
|
|
2005-02-17 15:53:43 +01:00
|
|
|
:: Make sure that qli's help.fdb is available
|
|
|
|
::===============================================
|
2007-02-26 16:20:30 +01:00
|
|
|
@if not exist %FB_OUTPUT_DIR%\help\help.fdb (
|
2008-01-23 07:59:07 +01:00
|
|
|
(@echo Copying help.fdb for qli support)
|
|
|
|
(@copy %FB_GEN_DIR%\dbs\help.fdb %FB_OUTPUT_DIR%\help\help.fdb > nul)
|
|
|
|
(@if %ERRORLEVEL% GEQ 1 ( (call :ERROR Could not copy qli help database ) & (goto :EOF)))
|
2005-02-17 15:53:43 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
::End of GBAK_SEC_DB
|
|
|
|
::------------------
|
2003-05-22 14:42:19 +02:00
|
|
|
@goto :EOF
|
2003-04-09 11:07:44 +02:00
|
|
|
|
2005-02-17 15:53:43 +01:00
|
|
|
|
|
|
|
:FB_MSG
|
2003-04-09 11:07:44 +02:00
|
|
|
::=================================================================
|
2005-02-17 15:53:43 +01:00
|
|
|
:: firebird.msg is generated as part of the build process
|
|
|
|
:: in builds\win32 by build_msg.bat. Copying from there to output dir
|
2003-04-09 11:07:44 +02:00
|
|
|
::=================================================================
|
2007-02-26 16:20:30 +01:00
|
|
|
@if not exist %FB_OUTPUT_DIR%\firebird.msg (
|
2008-01-23 07:59:07 +01:00
|
|
|
(@copy %FB_GEN_DIR%\firebird.msg %FB_OUTPUT_DIR%\firebird.msg > nul)
|
|
|
|
(@if %ERRORLEVEL% GEQ 1 ( (call :ERROR Could not copy firebird.msg ) & (goto :EOF)))
|
2005-02-17 15:53:43 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
::End of FB_MSG
|
|
|
|
::-------------
|
|
|
|
@goto :EOF
|
|
|
|
|
|
|
|
|
|
|
|
::TOUCH_LOCAL
|
|
|
|
::==========
|
|
|
|
:: Note 1: This doesn't seem to make any difference to whether local libraries are used.
|
|
|
|
:: Note 2: MS documentation was incorrectly interpreted. .local files should not be created
|
|
|
|
:: for libraries, they should be created for executables.
|
|
|
|
:: Create libname.local files for each locally installed library
|
2012-05-29 12:14:03 +02:00
|
|
|
::for %%v in ( fbclient msvcrt msvcp%VS_VER%0 ) do touch %FB_OUTPUT_DIR%\%%v.local
|
2005-02-17 15:53:43 +01:00
|
|
|
::@goto :EOF
|
|
|
|
|
|
|
|
|
|
|
|
:GEN_ZIP
|
|
|
|
::======
|
2005-03-04 11:08:06 +01:00
|
|
|
if %FBBUILD_ZIP_PACK% EQU 0 goto :EOF
|
2005-02-17 15:53:43 +01:00
|
|
|
:: Generate the directory tree to be zipped
|
2007-02-26 16:20:30 +01:00
|
|
|
set FBBUILD_ZIP_PACK_ROOT=%FB_ROOT_PATH%\builds\zip_pack_%FB_TARGET_PLATFORM%
|
2005-03-04 11:08:06 +01:00
|
|
|
if not exist %FBBUILD_ZIP_PACK_ROOT% @mkdir %FBBUILD_ZIP_PACK_ROOT% 2>nul
|
|
|
|
@del /s /q %FBBUILD_ZIP_PACK_ROOT%\ > nul
|
2007-02-26 16:20:30 +01:00
|
|
|
@copy /Y %FB_OUTPUT_DIR% %FBBUILD_ZIP_PACK_ROOT% > nul
|
2009-04-08 17:00:20 +02:00
|
|
|
for %%v in (bin doc doc\sql.extensions help include intl lib udf misc misc\upgrade misc\upgrade\ib_udf misc\upgrade\security misc\upgrade\metadata system32 plugins ) do (
|
2008-01-23 07:59:07 +01:00
|
|
|
@mkdir %FBBUILD_ZIP_PACK_ROOT%\%%v 2>nul
|
|
|
|
@dir /A-D %FB_OUTPUT_DIR%\%%v\*.* > nul 2>nul
|
|
|
|
if not ERRORLEVEL 1 @copy /Y %FB_OUTPUT_DIR%\%%v\*.* %FBBUILD_ZIP_PACK_ROOT%\%%v\ > nul
|
2005-02-17 15:53:43 +01:00
|
|
|
)
|
2007-03-15 16:25:41 +01:00
|
|
|
|
|
|
|
@if %FB2_EXAMPLES% equ 1 for %%v in (examples examples\api examples\dyn examples\empbuild examples\include examples\stat examples\udf examples\build_win32 ) do (
|
2008-01-23 07:59:07 +01:00
|
|
|
@mkdir %FBBUILD_ZIP_PACK_ROOT%\%%v 2>nul
|
|
|
|
dir %FB_OUTPUT_DIR%\%%v\*.* > nul 2>nul
|
|
|
|
if not ERRORLEVEL 1 @copy /Y %FB_OUTPUT_DIR%\%%v\*.* %FBBUILD_ZIP_PACK_ROOT%\%%v\ > nul
|
2007-03-15 16:25:41 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
|
2005-02-17 15:53:43 +01:00
|
|
|
:: Now remove stuff that is not needed.
|
2005-11-28 11:27:58 +01:00
|
|
|
setlocal
|
2009-04-08 17:00:20 +02:00
|
|
|
set FB_RM_FILE_LIST=doc\installation_readme.txt bin\gpre_boot.exe bin\gpre_static.exe bin\gpre_embed.exe bin\gbak_embed.exe bin\isql_embed.exe bin\gds32.dll bin\btyacc.exe
|
2007-02-26 16:20:30 +01:00
|
|
|
if %FB2_SNAPSHOT% EQU 0 (set FB_RM_FILE_LIST=bin\fbembed.dll bin\fbembed.pdb %FB_RM_FILE_LIST%)
|
|
|
|
for %%v in ( %FB_RM_FILE_LIST% ) do (
|
2005-03-04 11:08:06 +01:00
|
|
|
@del %FBBUILD_ZIP_PACK_ROOT%\%%v > nul 2>&1
|
2005-02-17 15:53:43 +01:00
|
|
|
)
|
2005-11-28 11:27:58 +01:00
|
|
|
endlocal
|
2005-02-17 15:53:43 +01:00
|
|
|
|
2005-05-04 12:47:44 +02:00
|
|
|
if %FB2_SNAPSHOT% EQU 1 (
|
2007-02-26 16:20:30 +01:00
|
|
|
@copy %FB_ROOT_PATH%\builds\install\arch-specific\win32\readme_snapshot.txt %FBBUILD_ZIP_PACK_ROOT%\readme_snapshot.txt > nul
|
2005-05-04 12:47:44 +02:00
|
|
|
)
|
|
|
|
|
2005-03-04 11:08:06 +01:00
|
|
|
if not "%FBBUILD_SHIP_PDB%"=="ship_pdb" (
|
2012-05-29 12:14:03 +02:00
|
|
|
@del /q %FBBUILD_ZIP_PACK_ROOT%\*.pdb > nul 2>&1
|
2005-03-04 11:08:06 +01:00
|
|
|
)
|
2005-02-17 15:53:43 +01:00
|
|
|
|
|
|
|
:: grab install notes for zip pack
|
2007-02-26 16:20:30 +01:00
|
|
|
@copy %FB_ROOT_PATH%\doc\install_win32.txt %FBBUILD_ZIP_PACK_ROOT%\doc\README_installation.txt > nul
|
2005-02-17 15:53:43 +01:00
|
|
|
|
|
|
|
::End of GEN_ZIP
|
|
|
|
::--------------
|
|
|
|
goto :EOF
|
|
|
|
|
|
|
|
|
|
|
|
:ZIP_PACK
|
|
|
|
::=======
|
2005-03-04 11:08:06 +01:00
|
|
|
if %FBBUILD_ZIP_PACK% EQU 0 goto :EOF
|
2005-02-17 15:53:43 +01:00
|
|
|
if "%FBBUILD_SHIP_PDB%" == "ship_pdb" (
|
2009-04-09 15:17:34 +02:00
|
|
|
if exist %FBBUILD_INSTALL_IMAGES%\Firebird-%FBBUILD_FILE_ID%_pdb%FBBUILD_FILENAME_SUFFIX%.zip (
|
|
|
|
@del %FBBUILD_INSTALL_IMAGES%\Firebird-%FBBUILD_FILE_ID%_pdb%FBBUILD_FILENAME_SUFFIX%.zip
|
2008-01-23 07:59:07 +01:00
|
|
|
)
|
2009-04-09 15:17:34 +02:00
|
|
|
set FBBUILD_ZIPFILE=%FBBUILD_INSTALL_IMAGES%\Firebird-%FBBUILD_FILE_ID%_pdb%FBBUILD_FILENAME_SUFFIX%.zip
|
2005-03-04 11:08:06 +01:00
|
|
|
|
2005-02-17 15:53:43 +01:00
|
|
|
) else (
|
2009-04-09 15:17:34 +02:00
|
|
|
if exist %FBBUILD_INSTALL_IMAGES%\Firebird-%FBBUILD_FILE_ID%%FBBUILD_FILENAME_SUFFIX%.zip (
|
|
|
|
@del %FBBUILD_INSTALL_IMAGES%\Firebird-%FBBUILD_FILE_ID%%FBBUILD_FILENAME_SUFFIX%.zip
|
2008-01-23 07:59:07 +01:00
|
|
|
)
|
2009-04-09 15:17:34 +02:00
|
|
|
set FBBUILD_ZIPFILE=%FBBUILD_INSTALL_IMAGES%\Firebird-%FBBUILD_FILE_ID%%FBBUILD_FILENAME_SUFFIX%.zip
|
2005-02-17 15:53:43 +01:00
|
|
|
)
|
|
|
|
|
2005-03-04 11:08:06 +01:00
|
|
|
@%SEVENZIP%\7z.exe a -r -tzip -mx9 %FBBUILD_ZIPFILE% %FBBUILD_ZIP_PACK_ROOT%\*.*
|
2007-12-21 13:10:16 +01:00
|
|
|
@echo End of ZIP_PACK
|
|
|
|
@echo.
|
2005-02-17 15:53:43 +01:00
|
|
|
::----------------
|
|
|
|
@goto :EOF
|
|
|
|
|
|
|
|
|
|
|
|
:GEN_EMBEDDED
|
|
|
|
::===========
|
|
|
|
:: Generate the directory tree for the embedded zip pack
|
2005-03-04 11:08:06 +01:00
|
|
|
if %FBBUILD_EMB_PACK% EQU 0 goto :EOF
|
2007-07-02 16:00:03 +02:00
|
|
|
set FBBUILD_EMB_PACK_ROOT=%FB_ROOT_PATH%\builds\emb_pack_%FB_TARGET_PLATFORM%
|
2005-03-04 11:08:06 +01:00
|
|
|
@mkdir %FBBUILD_EMB_PACK_ROOT% 2>nul
|
2005-03-18 12:25:48 +01:00
|
|
|
@del /s /q %FBBUILD_EMB_PACK_ROOT%\ > nul
|
2005-02-17 15:53:43 +01:00
|
|
|
|
2007-02-26 16:20:30 +01:00
|
|
|
for %%v in (aliases.conf firebird.conf firebird.msg) do ( @copy /Y %FB_OUTPUT_DIR%\%%v %FBBUILD_EMB_PACK_ROOT%\%%v > nul)
|
2005-02-17 15:53:43 +01:00
|
|
|
|
2005-03-04 11:08:06 +01:00
|
|
|
for %%v in ( doc intl udf ) do (@mkdir %FBBUILD_EMB_PACK_ROOT%\%%v 2>nul)
|
2005-02-17 15:53:43 +01:00
|
|
|
|
2012-05-29 12:14:03 +02:00
|
|
|
@copy /Y %FB_TEMP_DIR%\%FBBUILD_BUILDTYPE%\firebird\fbembed.* %FBBUILD_EMB_PACK_ROOT% > nul
|
2007-09-11 14:15:55 +02:00
|
|
|
|
2007-09-12 16:05:00 +02:00
|
|
|
for %%v in ( icuuc30 icudt30 icuin30 ) do (
|
2007-09-11 14:15:55 +02:00
|
|
|
@copy %FB_ICU_SOURCE_BIN%\%%v.dll %FBBUILD_EMB_PACK_ROOT% >nul
|
|
|
|
)
|
|
|
|
|
2012-05-29 12:14:03 +02:00
|
|
|
@copy /Y %FB_TEMP_DIR%\%FBBUILD_BUILDTYPE%\firebird\ib_util.dll %FBBUILD_EMB_PACK_ROOT% > nul
|
2007-02-26 16:20:30 +01:00
|
|
|
@copy /Y %FB_OUTPUT_DIR%\doc\Firebird*.pdf %FBBUILD_EMB_PACK_ROOT%\doc\ > nul
|
|
|
|
@copy /Y %FB_OUTPUT_DIR%\intl\*.* %FBBUILD_EMB_PACK_ROOT%\intl\ > nul
|
|
|
|
@copy /Y %FB_OUTPUT_DIR%\udf\*.* %FBBUILD_EMB_PACK_ROOT%\udf\ > nul
|
2012-05-29 12:14:03 +02:00
|
|
|
@copy /Y %FB_OUTPUT_DIR%\msvc*.* %FBBUILD_EMB_PACK_ROOT% > nul
|
2007-07-02 16:00:03 +02:00
|
|
|
if %MSVC_VERSION% EQU 8 (
|
2012-05-29 12:14:03 +02:00
|
|
|
@copy /Y %FB_OUTPUT_DIR%\Microsoft.VC80.CRT.manifest %FBBUILD_EMB_PACK_ROOT% > nul
|
2007-07-02 16:00:03 +02:00
|
|
|
)
|
2005-03-04 11:08:06 +01:00
|
|
|
|
|
|
|
if "%FBBUILD_SHIP_PDB%"=="ship_pdb" (
|
2007-02-26 16:20:30 +01:00
|
|
|
@copy /Y %FB_TEMP_DIR%\%FBBUILD_BUILDTYPE%\fbembed\fbembed.pdb %FBBUILD_EMB_PACK_ROOT% > nul
|
2005-03-04 11:08:06 +01:00
|
|
|
)
|
2005-02-17 15:53:43 +01:00
|
|
|
|
|
|
|
|
|
|
|
:: grab install notes for embedded zip pack
|
2007-02-26 16:20:30 +01:00
|
|
|
@copy %FB_ROOT_PATH%\doc\README.user.embedded %FBBUILD_EMB_PACK_ROOT%\doc\README_embedded.txt > nul
|
|
|
|
@copy %FB_ROOT_PATH%\doc\WhatsNew %FBBUILD_EMB_PACK_ROOT%\doc\WhatsNew.txt > nul
|
2005-02-17 15:53:43 +01:00
|
|
|
|
|
|
|
:: Add license
|
|
|
|
for %%v in (IPLicense.txt IDPLicense.txt ) do (
|
2008-01-23 07:59:07 +01:00
|
|
|
@copy %FB_ROOT_PATH%\builds\install\misc\%%v %FBBUILD_EMB_PACK_ROOT%\%%v > nul
|
2005-02-17 15:53:43 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
:: And readme
|
2012-05-29 12:14:03 +02:00
|
|
|
@copy %FB_GEN_DIR%\readmes\readme.txt %FBBUILD_EMB_PACK_ROOT%\ > nul
|
2005-02-17 15:53:43 +01:00
|
|
|
|
|
|
|
|
|
|
|
::End of GEN_EMBEDDED
|
|
|
|
::-------------------
|
|
|
|
@goto :EOF
|
|
|
|
|
|
|
|
|
|
|
|
:EMB_PACK
|
|
|
|
::=======
|
2005-03-04 11:08:06 +01:00
|
|
|
if %FBBUILD_EMB_PACK% EQU 0 goto :EOF
|
2005-02-17 15:53:43 +01:00
|
|
|
:: Now we can zip it up and copy the package to the install images directory.
|
|
|
|
if "%FBBUILD_SHIP_PDB%" == "ship_pdb" (
|
2009-04-08 17:00:20 +02:00
|
|
|
@del %FBBUILD_INSTALL_IMAGES%\%FBBUILD_FILE_ID%_embed_pdb%FBBUILD_FILENAME_SUFFIX%.zip > nul
|
|
|
|
set FBBUILD_EMBFILE=%FBBUILD_INSTALL_IMAGES%\Firebird-%FBBUILD_FILE_ID%_embed_pdb%FBBUILD_FILENAME_SUFFIX%.zip
|
2005-02-17 15:53:43 +01:00
|
|
|
) else (
|
2009-04-08 17:00:20 +02:00
|
|
|
@del %FBBUILD_INSTALL_IMAGES%\Firebird-%FBBUILD_FILE_ID%_embed%FBBUILD_FILENAME_SUFFIX%.zip > nul
|
|
|
|
set FBBUILD_EMBFILE=%FBBUILD_INSTALL_IMAGES%\Firebird-%FBBUILD_FILE_ID%_embed%FBBUILD_FILENAME_SUFFIX%.zip
|
2005-02-17 15:53:43 +01:00
|
|
|
)
|
|
|
|
|
2005-03-04 11:08:06 +01:00
|
|
|
@%SEVENZIP%\7z.exe a -r -tzip -mx9 %FBBUILD_EMBFILE% %FBBUILD_EMB_PACK_ROOT%\*.*
|
|
|
|
|
2005-02-17 15:53:43 +01:00
|
|
|
|
2007-12-21 13:10:16 +01:00
|
|
|
@echo End of EMB_PACK
|
|
|
|
@echo.
|
2005-02-17 15:53:43 +01:00
|
|
|
::---------------
|
|
|
|
goto :EOF
|
|
|
|
|
2003-04-09 11:07:44 +02:00
|
|
|
|
|
|
|
:TOUCH_ALL
|
|
|
|
::========
|
|
|
|
::Set file timestamp to something meaningful.
|
2005-02-17 15:53:43 +01:00
|
|
|
::While building and testing this feature might be annoying, so we don't do it.
|
2003-04-09 11:07:44 +02:00
|
|
|
::==========================================================
|
2006-12-06 06:52:31 +01:00
|
|
|
setlocal
|
|
|
|
set TIMESTRING=0%PRODUCT_VER_STRING:~0,1%:0%PRODUCT_VER_STRING:~2,1%:0%PRODUCT_VER_STRING:~4,1%
|
2005-02-17 15:53:43 +01:00
|
|
|
@if /I "%BUILDTYPE%"=="release" (
|
2008-01-23 07:59:07 +01:00
|
|
|
(@echo Touching release build files with %TIMESTRING% timestamp) & (touch -s -D -t%TIMESTRING% %FB_OUTPUT_DIR%\*.*)
|
|
|
|
(if %FBBUILD_EMB_PACK% EQU 1 (@echo Touching release build files with %TIMESTRING% timestamp) & (touch -s -D -t%TIMESTRING% %FB_ROOT_PATH%\emb_pack\*.*) )
|
|
|
|
(if %FBBUILD_ZIP_PACK% EQU 1 (@echo Touching release build files with %TIMESTRING% timestamp) & (touch -s -D -t%TIMESTRING% %FB_ROOT_PATH%\zip_pack\*.*) )
|
2005-02-17 15:53:43 +01:00
|
|
|
)
|
2006-12-06 06:52:31 +01:00
|
|
|
endlocal
|
2005-02-17 15:53:43 +01:00
|
|
|
::End of TOUCH_ALL
|
|
|
|
::----------------
|
2003-05-22 14:42:19 +02:00
|
|
|
@goto :EOF
|
2003-04-09 11:07:44 +02:00
|
|
|
|
|
|
|
|
2005-02-17 15:53:43 +01:00
|
|
|
:ISX_PACK
|
2003-04-09 11:07:44 +02:00
|
|
|
::=======
|
|
|
|
:: Now let's go and build the installable .exe
|
2007-07-25 16:41:06 +02:00
|
|
|
::
|
|
|
|
:: Note - define INNO5_SETUP_PATH with double quotes if it is installed into a path string using spaces.
|
|
|
|
:: eg set INNO5_SETUP_PATH="C:\Program Files\Inno Setup 5"
|
|
|
|
::
|
2003-04-09 11:07:44 +02:00
|
|
|
::=================================================
|
2005-02-17 15:53:43 +01:00
|
|
|
if %FBBUILD_ISX_PACK% NEQ 1 goto :EOF
|
2007-12-21 13:10:16 +01:00
|
|
|
@Echo Now let's compile the InnoSetup scripts
|
2005-02-17 15:53:43 +01:00
|
|
|
@Echo.
|
2007-07-25 16:41:06 +02:00
|
|
|
%INNO5_SETUP_PATH%\iscc %FB_ROOT_PATH%\builds\install\arch-specific\win32\FirebirdInstall_%FBBUILD_FILE_ID%.iss
|
2005-02-17 15:53:43 +01:00
|
|
|
@echo.
|
2003-04-09 11:07:44 +02:00
|
|
|
|
2007-12-21 13:10:16 +01:00
|
|
|
@echo End of ISX_PACK
|
|
|
|
@echo.
|
2005-02-17 15:53:43 +01:00
|
|
|
::---------------
|
2003-05-22 14:42:19 +02:00
|
|
|
@goto :EOF
|
2003-04-09 11:07:44 +02:00
|
|
|
|
|
|
|
|
2012-05-29 12:14:03 +02:00
|
|
|
:DO_MD5SUMS
|
|
|
|
::=========
|
|
|
|
:: Generate the md5sum checksum file
|
|
|
|
::==================================
|
|
|
|
if NOT DEFINED GNU_TOOLCHAIN (
|
|
|
|
call :WARNING GNU_TOOLCHAIN variable not defined. Cannot generate md5 sums.
|
|
|
|
@goto :EOF
|
|
|
|
)
|
|
|
|
@echo Generating md5sums for Firebird-%FBBUILD_PRODUCT_VER_STRING%-%FBBUILD_PACKAGE_NUMBER%
|
|
|
|
|
|
|
|
%GNU_TOOLCHAIN%\md5sum.exe %FBBUILD_INSTALL_IMAGES%\Firebird-%FBBUILD_PRODUCT_VER_STRING%?%FBBUILD_PACKAGE_NUMBER%*.* > %FBBUILD_INSTALL_IMAGES%\Firebird-%FBBUILD_PRODUCT_VER_STRING%-%FBBUILD_PACKAGE_NUMBER%.md5sum
|
|
|
|
|
|
|
|
::---------------
|
|
|
|
@goto :EOF
|
|
|
|
|
|
|
|
|
2003-05-22 14:42:19 +02:00
|
|
|
:HELP
|
|
|
|
::===
|
|
|
|
@echo.
|
|
|
|
@echo.
|
2005-02-17 15:53:43 +01:00
|
|
|
@echo Parameters can be passed in any order.
|
|
|
|
@echo Currently the recognised params are:
|
|
|
|
@echo.
|
|
|
|
@echo DEBUG Use binaries from 'debug' dir, not 'release' dir.
|
|
|
|
@echo (Requires a debug build. NOTE: A debug build is
|
|
|
|
@echo not required to create packages with debug info.)
|
|
|
|
@echo.
|
|
|
|
@echo PDB Include pdb files.
|
|
|
|
@echo (These files roughly double the size of the package.)
|
|
|
|
@echo.
|
|
|
|
@echo ISX Create installable binary from InnoSetup Extensions compiler.
|
2007-06-22 14:21:25 +02:00
|
|
|
@echo (You need to set the INNO5_SETUP_PATH environment variable.)
|
2005-02-17 15:53:43 +01:00
|
|
|
@echo.
|
|
|
|
@echo ZIP Create Zip package.
|
2006-12-06 06:52:31 +01:00
|
|
|
@echo (SEVENZIP is currently used and the SEVENZIP env var must be set.)
|
2003-05-22 14:42:19 +02:00
|
|
|
@echo.
|
2005-02-17 15:53:43 +01:00
|
|
|
@echo EMB Create Embedded package.
|
2006-12-06 06:52:31 +01:00
|
|
|
@echo (SEVENZIP is currently used and the SEVENZIP env var must be set.)
|
2003-05-22 14:42:19 +02:00
|
|
|
@echo.
|
2005-02-17 15:53:43 +01:00
|
|
|
@echo ALL Build InnoSetup, Zip and Embedded packages.
|
2003-05-22 14:42:19 +02:00
|
|
|
@echo.
|
2005-02-17 15:53:43 +01:00
|
|
|
@echo HELP This help screen.
|
|
|
|
@echo.
|
|
|
|
@echo In addition, the following environment variables are checked:
|
|
|
|
@echo.
|
|
|
|
@echo FB2_ISS_DEBUG=1 - Prepare an InnoSetup script that is
|
|
|
|
@echo easier to debug
|
|
|
|
@echo.
|
|
|
|
@echo FB2_EXAMPLES=0 - Don't include examples in the install kit.
|
|
|
|
@echo.
|
2012-05-29 12:14:03 +02:00
|
|
|
@echo.
|
|
|
|
@echo Required Files
|
|
|
|
@echo.
|
|
|
|
@echo To successfully package Firebird you will need to make sure several
|
|
|
|
@echo packages are installed and correctly configured on your system.
|
|
|
|
@echo.
|
|
|
|
@echo o InnoSetup is needed to create the binary installer. See the header
|
|
|
|
@echo of the .iss file to see which minimum version is required.
|
|
|
|
@echo.
|
|
|
|
@echo o 7ZIP is required to create the zip and embedded packages
|
|
|
|
@echo.
|
|
|
|
@echo o sed is required for packaging. Use the sed provided by
|
|
|
|
@echo gnuwin32. The cygwin one is not guaranteed to work.
|
|
|
|
@echo.
|
|
|
|
|
2005-02-17 15:53:43 +01:00
|
|
|
::End of HELP
|
|
|
|
::-----------
|
2003-05-22 14:42:19 +02:00
|
|
|
@goto :EOF
|
2003-04-09 11:07:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
:ERROR
|
|
|
|
::====
|
2003-05-22 14:42:19 +02:00
|
|
|
@echo.
|
2005-02-17 15:53:43 +01:00
|
|
|
@echo Error in BuildExecutableInstall
|
|
|
|
@echo %*
|
2003-05-22 14:42:19 +02:00
|
|
|
@echo.
|
2005-02-17 15:53:43 +01:00
|
|
|
popd
|
|
|
|
:: Attempt to execute a phony command. This will ensure
|
|
|
|
:: that ERRORLEVEL is set on exit.
|
|
|
|
cancel_script > nul 2>&1
|
2007-10-10 12:54:20 +02:00
|
|
|
:: And set ERRLEV in case we are called by run_all.bat
|
|
|
|
set ERRLEV=1
|
2005-02-17 15:53:43 +01:00
|
|
|
::End of ERROR
|
|
|
|
::------------
|
|
|
|
@goto :EOF
|
|
|
|
|
|
|
|
|
|
|
|
:WARNING
|
|
|
|
::======
|
|
|
|
@echo.
|
|
|
|
@echo **** WARNING - Execution of a non-critical component failed.
|
|
|
|
@echo %*
|
|
|
|
@echo.
|
|
|
|
if "%FBBUILD_PROD_STATUS%"=="PROD" (
|
|
|
|
@echo.
|
|
|
|
@echo Production status is Final or Release Candidate
|
|
|
|
@echo Error must be fixed before continuing
|
|
|
|
@echo.
|
|
|
|
cancel_script > nul 2>&1
|
|
|
|
) else (
|
|
|
|
@set | findstr win > nul 2>&1
|
|
|
|
)
|
2003-05-22 14:42:19 +02:00
|
|
|
@goto :EOF
|
2003-04-09 11:07:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
:MAIN
|
|
|
|
::====
|
2005-02-17 15:53:43 +01:00
|
|
|
|
|
|
|
::Check if on-line help is required
|
|
|
|
for %%v in ( %1 %2 %3 %4 %5 %6 %7 %8 %9 ) do (
|
|
|
|
( @if /I "%%v"=="-h" (goto :HELP & goto :EOF) )
|
|
|
|
( @if /I "%%v"=="/h" (goto :HELP & goto :EOF) )
|
|
|
|
( @if /I "%%v"=="HELP" (goto :HELP & goto :EOF) )
|
|
|
|
)
|
|
|
|
|
|
|
|
pushd ..\..\..\win32
|
|
|
|
::This must be called from the directory it resides in.
|
|
|
|
@call setenvvar.bat
|
|
|
|
popd
|
|
|
|
@if errorlevel 1 (goto :END)
|
|
|
|
|
|
|
|
@if not defined FB2_ISS_DEBUG (set FB2_ISS_DEBUG=0)
|
|
|
|
@if not defined FB2_EXAMPLES (set FB2_EXAMPLES=1)
|
|
|
|
|
2003-07-04 21:13:58 +02:00
|
|
|
@Echo.
|
2005-02-17 15:53:43 +01:00
|
|
|
@Echo Reading command-line parameters...
|
|
|
|
@(@call :SET_PARAMS %* )
|
|
|
|
@if "%ERRLEV%"=="1" (goto :ERROR %errorlevel% calling SET_PARAMS )
|
|
|
|
|
2003-07-04 21:13:58 +02:00
|
|
|
@Echo.
|
2005-02-17 15:53:43 +01:00
|
|
|
@Echo Checking that all required components are available...
|
|
|
|
@(@call :CHECK_ENVIRONMENT ) || (@echo Error calling CHECK_ENVIRONMENT & @goto :EOF)
|
2003-07-04 21:13:58 +02:00
|
|
|
@Echo.
|
2005-02-17 15:53:43 +01:00
|
|
|
|
|
|
|
@Echo Setting version number...
|
|
|
|
@(@call :SED_MAGIC ) || (@echo Error calling SED_MAGIC & @goto :EOF)
|
2003-07-04 21:13:58 +02:00
|
|
|
@Echo.
|
2005-02-17 15:53:43 +01:00
|
|
|
|
2008-03-10 16:04:16 +01:00
|
|
|
@Echo Copying additional files needed for installation, documentation etc.
|
2005-02-17 15:53:43 +01:00
|
|
|
@(@call :COPY_XTRA ) || (@echo Error calling COPY_XTRA & @goto :EOF)
|
|
|
|
@Echo.
|
|
|
|
|
2008-01-23 07:59:07 +01:00
|
|
|
:: WIX is not necessary for a snapshot build, so we don't throw
|
|
|
|
:: an error if WIX is not defined. On the other hand,
|
|
|
|
:: if it is there anyway, use it.
|
2008-03-10 16:04:16 +01:00
|
|
|
if defined WIX (
|
2007-12-21 13:10:16 +01:00
|
|
|
@Echo Building MSI runtimes
|
2008-03-10 16:04:16 +01:00
|
|
|
@(@call :BUILD_CRT_MSI ) || (@echo Error calling BUILD_CRT_MSI & @goto :EOF)
|
2007-12-21 13:10:16 +01:00
|
|
|
@Echo.
|
|
|
|
)
|
|
|
|
|
2005-02-17 15:53:43 +01:00
|
|
|
@Echo Concatenating header files for ibase.h
|
|
|
|
@(@call :IBASE_H ) || (@echo Error calling IBASE_H & @goto :EOF)
|
2003-07-04 21:13:58 +02:00
|
|
|
@Echo.
|
2005-02-17 15:53:43 +01:00
|
|
|
|
|
|
|
@Echo Writing alias conf
|
|
|
|
@(@call :ALIAS_CONF ) || (@echo Error calling ALIAS_CONF & @goto :EOF)
|
|
|
|
@Echo.
|
|
|
|
@Echo Copying backup of security database
|
|
|
|
@(@call :GBAK_SEC_DB ) || (@echo Error calling GBAK_SEC_DB & @goto :EOF)
|
|
|
|
@Echo.
|
|
|
|
@Echo Copying firebird.msg
|
|
|
|
@(@call :FB_MSG ) || (@echo Error calling FB_MSG & @goto :EOF)
|
|
|
|
@Echo.
|
|
|
|
|
|
|
|
if %FBBUILD_EMB_PACK% EQU 1 (
|
2005-03-04 11:08:06 +01:00
|
|
|
@Echo Generating image of embedded install
|
2005-02-17 15:53:43 +01:00
|
|
|
@(@call :GEN_EMBEDDED ) || (@echo Error calling GEN_EMBEDDED & @goto :EOF)
|
|
|
|
@Echo.
|
|
|
|
)
|
|
|
|
|
|
|
|
if %FBBUILD_ZIP_PACK% EQU 1 (
|
2005-03-04 11:08:06 +01:00
|
|
|
@echo Generating image of zipped install
|
2005-02-17 15:53:43 +01:00
|
|
|
@(@call :GEN_ZIP ) || (@echo Error calling GEN_ZIP & @goto :EOF)
|
|
|
|
@echo.
|
|
|
|
)
|
|
|
|
|
|
|
|
::@Echo Creating .local files for libraries
|
|
|
|
::@(@call :TOUCH_LOCAL ) || (@echo Error calling TOUCH_LOCAL & @goto :EOF)
|
|
|
|
::@Echo.
|
|
|
|
|
|
|
|
@(@call :TOUCH_ALL ) || (@echo Error calling TOUCH_ALL & @goto :EOF)
|
|
|
|
@echo.
|
|
|
|
|
|
|
|
if %FBBUILD_ZIP_PACK% EQU 1 (
|
2005-03-04 11:08:06 +01:00
|
|
|
@echo Zipping files for zip pack
|
2005-02-17 15:53:43 +01:00
|
|
|
@(@call :ZIP_PACK ) || (@echo Error calling ZIP_PACK & @goto :EOF)
|
|
|
|
@echo.
|
|
|
|
)
|
|
|
|
|
|
|
|
if %FBBUILD_EMB_PACK% EQU 1 (
|
2005-03-04 11:08:06 +01:00
|
|
|
@echo Zipping files for embedded pack
|
2005-02-17 15:53:43 +01:00
|
|
|
@(@call :EMB_PACK ) || (@echo Error calling EMB_PACK & @goto :EOF)
|
|
|
|
@echo.
|
|
|
|
)
|
|
|
|
|
|
|
|
if %FBBUILD_ISX_PACK% EQU 1 (
|
|
|
|
@(@call :ISX_PACK ) || (@echo Error calling ISX_PACK & @goto :EOF)
|
|
|
|
@echo.
|
|
|
|
)
|
|
|
|
|
2012-05-29 12:14:03 +02:00
|
|
|
@(@call :DO_MD5SUMS ) || (@echo Error calling DO_MD5SUMS & @goto :EOF)
|
|
|
|
|
|
|
|
|
2005-02-17 15:53:43 +01:00
|
|
|
@echo.
|
|
|
|
@echo Completed building installation kit(s)
|
|
|
|
@echo.
|
|
|
|
|
|
|
|
::@if %FB2_ISS_DEBUG% equ 0 (ENDLOCAL)
|
|
|
|
::End of MAIN
|
|
|
|
::-----------
|
2003-05-22 14:42:19 +02:00
|
|
|
@goto :EOF
|
|
|
|
|
2005-02-17 15:53:43 +01:00
|
|
|
|
2003-05-22 14:42:19 +02:00
|
|
|
:END
|
2005-02-17 15:53:43 +01:00
|
|
|
|
|
|
|
|
|
|
|
|