-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathregen.bat
31 lines (22 loc) · 1.07 KB
/
regen.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@echo off
setlocal
rem ---------------------------------------------------------------------------
rem set code generation options
set STRUCTURES=EMPLOYEE DEPARTMENT
set DBLV11=-define DBLV11
set ENABLE_CLEAN_DATA=-define CLEAN_DATA
rem set USE_STRUCTURE_ALIASES=-a %STRUCTURES%
rem set USE_ALTERNATE_FIELD_NAMES=-af
rem set ENABLE_EXCLUDE_KEYS= -rpsoverride ExcludeKeyTest.json
rem set ASA_TIREMAX=-define ASA_TIREMAX
rem ---------------------------------------------------------------------------
rem Configure the CodeGen environment
set ROOT=%~dp0
set STDOPTS=-i %ROOT%SRC\TEMPLATES -o %ROOT%SRC\LIBRARY -rps %RPSMFIL% %RPSTFIL% -e -r -lf %USE_STRUCTURE_ALIASES% %USE_ALTERNATE_FIELD_NAMES% %ENABLE_CLEAN_DATA% %ENABLE_EXCLUDE_KEYS% %DBLV11% %ASA_TIREMAX%
rem ---------------------------------------------------------------------------
rem Generate code
rem Generate SQL I/O routines for the structures being replicated
codegen -s %STRUCTURES% -t SqlIO %STDOPTS%
rem Generate the GetReplicatedTables routine
codegen -s %STRUCTURES% -ms -t GetReplicatedTables %STDOPTS%
endlocal