HOW TO DEPLOY AMOS AND RELOAD THE HISTORY OF STRINGS
====================================================

1.  Install /local/amos as normal subplugin
2.  Copy /local/amos/cli/config-dist.php to config.php and modify if needed
3.  Prepare git repositories of Moodle core and Moodle lang packs in locations
    defined in config.php
4.  Run cli/parse-core.php to get English strings into database
5.  Run cli/parse-lang.php to get translations into database
6.  Modify cli/parse-core.php and uncomment XXX'ed code to hard code the
    startat commit hash
7.  Re-run cli/parse-core.php to execute AMOS scripts from recent commits
8.  Run cli/rev-clean.php --full to delete orphaned strings

HOW TO REPOPULATE THE HISTORY AGAIN
===================================

Reinstall the plugin via Moodle interface to cleanup DB tables and run

$ crontab -e
$ rm /var/www/data/moodle-amos/amos/var/*
$ php cli/parse-core.php && php cli/parse-lang.php && echo 61bb07c2573ec711a0e5d1ccafa313cf47b9fc22 > /var/www/data/moodle-amos/amos/var/MOODLE_20_STABLE.startat && php cli/parse-core.php && php cli/rev-clean.php --full
$ crontab -e

HOW TO KEEP AMOS DATA UP-TO-UPDATE
==================================

1.  git pull both repositories
2.  Run cli/parse-core.php
3.  Run cli/parse-lang.php
4.  Run cli/rev-clean.php (from time to time, run with --full)
