php run-g5.phpA message saying that you must provide supplementary arguments is displayed.
WRONG USAGE - run-g5.php needs at least 3 arguments ------- Usage : php run-g5.php
[optional arguments] Example : php run-g5.php gauq A2 raw2tmp ------- Possible values for argument1 : acts, cfepp, cpara, csicop, db, eminence, ertel, gauq, muller, wd
run-g5.phpis only able to execute commands. The 3 first arguments permit to specify the command which will be executed.
Commands are located in
src/commands. A command is a class with a method
4th and following arguments are passed when needed to the command's
Each time an incomplete list of arguments is given to the program, it prints the general error message and prints the possible values for the next missing argument.
php run-g5.php gauq
WRONG USAGE - need at least 3 arguments ... (general message) ... Possible argument2 for argument1 = gauq : all, look, A, A1, A2, A3, A4, A5, A6, D6, D10, E1, E3Example 2
php run-g5.php gauq A3
WRONG USAGE - need at least 3 arguments ... (general message) ... Possible argument3 for gauq / A3 : build, export, look, raw2tmp, tmp2db, tweak2tmpExample 3
php run-g5.php gauq A3 raw2tmpThis does a real transformation (converts A3 raw html file to a csv file in data/tmp/gauq/lerrcp).
Complete generation of the databaseAs described in the page about g5 organisation, the program first converts raw data to temporary data, and then imports temporary files in a database.
The different steps must be executed in a precise order, because some steps need the result of previous executions to work.
The order of execution is given by the code of class
The code of this class is the only reliable reference documenting the complete build process.
php run-g5.php db init all
PARAMETER MISSING Possible values for parameter : tmp : Build files in data/tmp db : Fill database with tmp files finalize : Finalize DB (stats, groups, search) export : Exports the groups in zipped csv files all : Executes all stepsIf 'db' or 'all' are choosen, it also drops existing tables and creates empty ones.
Then the following command builds the database from scratch :
php run-g5.php db init all all