2003-01-24 17:39:37 +01:00
|
|
|
::
|
|
|
|
:: Preprocess all .epp files to .cpp
|
|
|
|
:: ---------------------------------
|
|
|
|
::
|
|
|
|
:: To do:
|
|
|
|
::
|
|
|
|
:: o Better/Some documentation as to what this does
|
|
|
|
:: o Add some logging/diagnostics, so we can see what is happening
|
|
|
|
:: and track errors.
|
|
|
|
:: o License boiler plate, copyright and authorship acknowledgements
|
|
|
|
::
|
|
|
|
|
2004-03-31 19:50:17 +02:00
|
|
|
@echo off
|
2003-01-24 17:39:37 +01:00
|
|
|
|
|
|
|
::===========
|
|
|
|
:MAIN
|
2003-07-02 16:40:30 +02:00
|
|
|
|
2003-07-08 12:56:41 +02:00
|
|
|
@call setenvvar.bat
|
|
|
|
|
2003-01-24 17:39:37 +01:00
|
|
|
@if "%1"=="BOOT" (set BOOTBUILD=1) else (set BOOTBUILD=0)
|
|
|
|
@echo.
|
|
|
|
@if "%BOOTBUILD%"=="1" (call :BOOT_PROCESS) else (call :MASTER_PROCESS)
|
|
|
|
@set BOOTBUILD=
|
|
|
|
@set GPRE=
|
2003-01-25 09:55:04 +01:00
|
|
|
@goto :END
|
2003-01-24 17:39:37 +01:00
|
|
|
|
|
|
|
::===========
|
|
|
|
:PREPROCESS
|
|
|
|
@echo Processing %1/%2.epp
|
2003-07-05 03:10:56 +02:00
|
|
|
@del %ROOT_PATH%\gen\%1\%2.cpp 2>nul
|
2003-01-24 17:39:37 +01:00
|
|
|
@echo Calling GPRE for %1/%2.epp
|
|
|
|
@if "%3"=="" (call :GPRE_M %1 %2) else (call :GPRE_GDS %1 %2)
|
|
|
|
@echo.
|
|
|
|
@goto :EOF
|
|
|
|
|
|
|
|
::===========
|
|
|
|
:GPRE_M
|
2004-03-31 19:50:17 +02:00
|
|
|
@%GPRE% -n -m -raw %ROOT_PATH%\src\%1\%2.epp %ROOT_PATH%\gen\%1\%2.cpp -b %SERVER_NAME%:%DB_PATH%/gen/dbs/
|
2003-01-24 17:39:37 +01:00
|
|
|
@goto :EOF
|
|
|
|
|
|
|
|
::===========
|
|
|
|
:GPRE_GDS
|
2004-03-31 19:50:17 +02:00
|
|
|
@%GPRE% -n -gds -raw -ids %ROOT_PATH%\src\%1\%2.epp %ROOT_PATH%\gen\%1\%2.cpp -b %SERVER_NAME%:%DB_PATH%/gen/dbs/
|
2003-01-24 17:39:37 +01:00
|
|
|
goto :EOF
|
|
|
|
|
|
|
|
::===========
|
|
|
|
:BOOT_PROCESS
|
|
|
|
@echo.
|
2003-07-05 03:10:56 +02:00
|
|
|
@set GPRE=%ROOT_PATH%\gen\gpre_boot -lang_internal
|
2003-01-24 17:39:37 +01:00
|
|
|
@for %%i in (array, blob, metd) do @call :PREPROCESS dsql %%i
|
2003-01-24 18:15:04 +01:00
|
|
|
@for %%i in (gpre_meta) do @call :PREPROCESS gpre %%i
|
2004-11-04 02:35:58 +01:00
|
|
|
::CVC - Uncomment these lines if you can't compile when new fields are added. See below.
|
2004-11-04 01:25:04 +01:00
|
|
|
@for %%i in (backup, restore) do @call :PREPROCESS burp %%i
|
|
|
|
@for %%i in (extract, isql, show) do @call :PREPROCESS isql %%i
|
|
|
|
::END
|
2003-01-24 17:39:37 +01:00
|
|
|
@goto :EOF
|
|
|
|
|
|
|
|
::===========
|
|
|
|
:MASTER_PROCESS
|
|
|
|
@echo.
|
2003-07-05 03:10:56 +02:00
|
|
|
@set GPRE=%ROOT_PATH%\gen\gpre_static
|
2003-01-24 17:39:37 +01:00
|
|
|
@for %%i in (alice_meta) do @call :PREPROCESS alice %%i
|
2004-11-04 02:35:58 +01:00
|
|
|
::CVC - Comment these lines if you can't compile when new fields are added. See above.
|
2006-02-10 20:40:01 +01:00
|
|
|
@for %%i in (backup, restore) do @call :PREPROCESS burp %%i
|
|
|
|
@for %%i in (extract, isql, show) do @call :PREPROCESS isql %%i
|
2004-11-04 01:25:04 +01:00
|
|
|
::END
|
2003-01-24 18:15:04 +01:00
|
|
|
@for %%i in (array, blob, metd) do @call :PREPROCESS dsql %%i
|
2003-01-24 17:39:37 +01:00
|
|
|
@for %%i in (exe, extract) do @call :PREPROCESS dudley %%i
|
2003-01-24 18:15:04 +01:00
|
|
|
@for %%i in (gpre_meta) do @call :PREPROCESS gpre %%i
|
2003-09-04 15:47:49 +02:00
|
|
|
@for %%i in (dfw, dpm, dyn, dyn_def, dyn_del, dyn_mod, dyn_util, fun, grant, ini, met, pcmet, scl) do @call :PREPROCESS jrd %%i GDS
|
2003-08-29 13:20:27 +02:00
|
|
|
@for %%i in (codes) do @call :PREPROCESS misc %%i
|
2003-04-13 14:14:47 +02:00
|
|
|
@for %%i in (build_file) do @call :PREPROCESS msgs %%i
|
2003-01-24 17:39:37 +01:00
|
|
|
@for %%i in (help, meta, proc, show) do @call :PREPROCESS qli %%i
|
2004-05-28 03:31:27 +02:00
|
|
|
@for %%i in (dba) do @call :PREPROCESS utilities/gstat %%i
|
2003-07-15 04:43:36 +02:00
|
|
|
@for %%i in (security) do @call :PREPROCESS utilities/gsec %%i
|
2003-09-04 15:47:49 +02:00
|
|
|
@for %%i in (stats) do @call :PREPROCESS utilities %%i
|
2003-01-24 17:39:37 +01:00
|
|
|
|
|
|
|
@goto :EOF
|
|
|
|
|
|
|
|
:END
|
2004-01-06 11:33:18 +01:00
|
|
|
|