4 * @file tools/upgrade.php
6 * Copyright (c) 2003-2008 John Willinsky
7 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
12 * @brief CLI tool for upgrading OMP.
14 * Note: Some functions require fopen wrappers to be enabled.
17 // $Id: upgrade.php,v 1.2 2009/06/02 21:18:26 asmecher Exp $
20 define('INDEX_FILE_LOCATION', dirname(dirname(__FILE__
)) . '/index.php');
21 require(dirname(dirname(__FILE__
)) . '/lib/pkp/classes/cliTool/CliTool.inc.php');
23 import('cliTool.UpgradeTool');
25 class OMPUpgradeTool
extends UpgradeTool
{
28 * @param $argv array command-line arguments
30 function OMPUpgradeTool($argv = array()) {
31 parent
::UpgradeTool($argv);
35 $tool = new OMPUpgradeTool(isset($argv) ?
$argv : array());