New feature: Command line installer. Credit: Dilan Anurudda.
authormjollnir_ <mjollnir_>
Mon, 7 Jan 2008 01:54:28 +0000 (01:54 +0000)
committermjollnir_ <mjollnir_>
Mon, 7 Jan 2008 01:54:28 +0000 (01:54 +0000)
commit2f13f94ccc7fe3a004f736f513be54b4c4f0de3c
treec2670852154f42bf4a890ef1fd2c0d6467742ec5
parent6b34dd500c37a674e676d57fd31d8aab24e88572
New feature: Command line installer.  Credit: Dilan Anurudda.

This was a Google Summer of Code 2007 Project.

This introduces two new files, admin/cliupgrader.php and lib/installlib.php.

It also introduces a new PEAR library, Console_GetOpt.  I have recieved permission from the upstream author to include this in GPL Moodle (essentially dual license it) -  notes in lib/pear.

Most stuff that outputs html during install gets suppressed by the use of a constant.

Run the script like  php admin/cliupgrade.php --help for info.

Note that this all uses strings from install/ rather than lang, so I have updated stringnames.txt accordingly and they'll all be broken until the cronjob that generates them runs.
14 files changed:
admin/cliupgrade.php [new file with mode: 0644]
backup/lib.php
install/stringnames.txt
lang/en_utf8/install.php
lib/adminlib.php
lib/blocklib.php
lib/dmllib.php
lib/installlib.php [new file with mode: 0644]
lib/locallib.php
lib/pear/Console/Getopt.php [new file with mode: 0644]
lib/pear/Console/README [new file with mode: 0644]
lib/pear/README.txt
lib/setuplib.php
lib/weblib.php