|
Revision 25834, 0.5 kB
(checked in by ornicar2, 3 years ago)
|
[Diem] renamed instal.php to install
|
| Line | |
|---|
| 1 |
#!/usr/bin/env php |
|---|
| 2 |
<?php |
|---|
| 3 |
|
|---|
| 4 |
if (!defined('STDIN')) |
|---|
| 5 |
{ |
|---|
| 6 |
die('The installer is designed to be run from the command line.'); |
|---|
| 7 |
} |
|---|
| 8 |
|
|---|
| 9 |
if (is_dir(getcwd().'/dmCorePlugin')) |
|---|
| 10 |
{ |
|---|
| 11 |
echo "Please create the project in an empty directory\n"; |
|---|
| 12 |
return 1; |
|---|
| 13 |
} |
|---|
| 14 |
|
|---|
| 15 |
$projectName = basename(getcwd()); |
|---|
| 16 |
|
|---|
| 17 |
$installer = dirname(__FILE__).'/dmCorePlugin/config/installer.php'; |
|---|
| 18 |
|
|---|
| 19 |
$_SERVER['argv'] = array( |
|---|
| 20 |
$_SERVER['argv'][0], |
|---|
| 21 |
'generate:project', |
|---|
| 22 |
$projectName, |
|---|
| 23 |
'--installer='.$installer |
|---|
| 24 |
); |
|---|
| 25 |
|
|---|
| 26 |
require_once dirname(__FILE__).'/symfony/lib/command/cli.php'; |
|---|
| 27 |
|
|---|
| 28 |
return 0; |
|---|