Debian Codegraph @

builds/win32/create_msgs.bat

raw
1 @echo off
2
3 @call setenvvar.bat
4 @if errorlevel 1 (goto :END)
5 @if not defined FB_BIN_DIR (@call set_build_target.bat %*)
6
7 @if "%1"=="msg" goto MSG
8
9 @if exist "%FB_GEN_DIR%\dbs\msg.fdb" del "%FB_GEN_DIR%\dbs\msg.fdb"
10
11 @echo creating msg.fdb
12 @echo create database '%FB_GEN_DB_DIR%/dbs/msg.fdb'; | "%FB_BIN_DIR%\isql" -q
13 @set FB_MSG_ISQL=@"%FB_BIN_DIR%\isql" -b -q %FB_GEN_DB_DIR%/dbs/msg.fdb -i %FB_ROOT_PATH%\src\msgs\
14 @echo loading msg.sql
15 @%FB_MSG_ISQL%msg.sql
16 @echo.
17 @echo loading facilities
18 @%FB_MSG_ISQL%facilities2.sql
19 @echo loading sql states
20 @%FB_MSG_ISQL%sqlstates.sql
21 @echo loading locales
22 @%FB_MSG_ISQL%locales.sql
23 @echo loading history
24 @%FB_MSG_ISQL%history2.sql
25 @echo loading messages
26 @%FB_MSG_ISQL%messages2.sql
27 @echo loading symbols
28 @%FB_MSG_ISQL%symbols2.sql
29 @echo loading system errors
30 @%FB_MSG_ISQL%system_errors2.sql
31 @echo loading French translation
32 @%FB_MSG_ISQL%transmsgs.fr_FR2.sql
33 @echo loading German translation
34 @%FB_MSG_ISQL%transmsgs.de_DE2.sql
35
36 @if "%1"=="db" goto END
37
38 :MSG
39 @echo Building message file...
40 ::@%FB_BIN_DIR%\build_msg -D %FB_GEN_DB_DIR%\dbs\msg.fdb -p %FB_GEN_DB_DIR% -f firebird.msg -L all
41 @%FB_BIN_DIR%\build_msg -D %FB_GEN_DB_DIR%\dbs\msg.fdb -p %FB_GEN_DB_DIR% -f firebird.msg
42 @copy %FB_GEN_DIR%\firebird.msg %FB_BIN_DIR% > nul
43
44 @echo Building codes header...
45 @%FB_BIN_DIR%\codes %FB_ROOT_PATH%\src\include\gen %FB_ROOT_PATH%\lang_helpers
46
47 :END