mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
bf3034195f
Generate sql_yacc_ora.yy from sql_yacc.yy , by using cmake script which does some simple string(REPLACE)
15 lines
702 B
CMake
15 lines
702 B
CMake
|
|
file(READ "${IN}" yytmp)
|
|
|
|
# Comment out sql_mode=DEFAULT rules and directives (e.g. %expect, %type)
|
|
string(REPLACE "/* Start SQL_MODE_DEFAULT_SPECIFIC */"
|
|
"/* Start SQL_MODE_DEFAULT_SPECIFIC" yytmp "${yytmp}")
|
|
string(REPLACE "/* End SQL_MODE_DEFAULT_SPECIFIC */"
|
|
"End SQL_MODE_DEFAULT_SPECIFIC */" yytmp "${yytmp}")
|
|
|
|
# Uncomment sql_mode=ORACLE rules and directives
|
|
string(REPLACE "/* Start SQL_MODE_ORACLE_SPECIFIC"
|
|
"/* Start SQL_MODE_ORACLE_SPECIFIC */" yytmp "${yytmp}")
|
|
string(REPLACE "End SQL_MODE_ORACLE_SPECIFIC */"
|
|
"/* End SQL_MODE_ORACLE_SPECIFIC */" yytmp "${yytmp}")
|
|
file(WRITE "${OUT}" "${yytmp}")
|