diff --git a/core/oql/build/build.bash b/core/oql/build/build.bash index eb3c1f6ab..c6c006d4e 100644 --- a/core/oql/build/build.bash +++ b/core/oql/build/build.bash @@ -1,4 +1,11 @@ #!/bin/bash -php PHP/LexerGenerator/cli.php oql-lexer.plex -php PHP/ParserGenerator/cli.php oql-parser.y +# +# Rebuild the iTop Lexer / Parser +# PEAR is required to build (really?) +# Launch this batch from the core/oql/build directory +# with ./build.bash +# +php PHP/LexerGenerator/cli.php ../oql-lexer.plex +php PHP/ParserGenerator/cli.php ../oql-parser.y +php -r "echo date('Y-m-d');" > ../version.txt diff --git a/core/oql/build/build.cmd b/core/oql/build/build.cmd index df34ce8d6..9edd6d3d4 100644 --- a/core/oql/build/build.cmd +++ b/core/oql/build/build.cmd @@ -2,4 +2,5 @@ rem must be run with current directory = the directory of the batch rem PEAR is required to build php -d include_path=".;C:\iTop\PHP\PEAR" ".\PHP\LexerGenerator\cli.php" ..\oql-lexer.plex php ".\PHP\ParserGenerator\cli.php" ..\oql-parser.y +php -r "echo date('Y-m-d');" > ..\version.txt pause \ No newline at end of file diff --git a/core/oql/version.txt b/core/oql/version.txt new file mode 100644 index 000000000..25ada144d --- /dev/null +++ b/core/oql/version.txt @@ -0,0 +1 @@ +2015-08-31