Skip to content

Commit

Permalink
Add option to skip framework installation.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Jan 21, 2015
1 parent 7aa90a8 commit 567fbc3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
16 changes: 11 additions & 5 deletions framework/bin/install_dev
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ array_shift($argv);

/* Defaults */
$apps = array();
$debug = $git = false;
$debug = $git = $no_framework = false;
$horde_git = $static_group = $web_dir = '';
$static_mode = 0775;

if (count($argv)) {
$options = $c->getopt2($argv, '', array('apps=', 'config=', 'debug', 'git', 'group=', 'hordegit=', 'mode=', 'webdir='));
$options = $c->getopt2($argv, '', array('apps=', 'config=', 'debug', 'git', 'group=', 'hordegit=', 'mode=', 'noframework=', 'webdir='));
if ($options instanceof PEAR_Error) {
exit("Invalid arguments.\n");
}
Expand Down Expand Up @@ -59,6 +59,10 @@ if (count($argv)) {
$mode = $val[1];
break;

case '--noframework':
$no_framework = $val[1];
break;

case '--webdir':
$web_dir = $val[1];
break;
Expand Down Expand Up @@ -190,6 +194,8 @@ if ($apps) {
}
}

print "\nLINKING framework\n";
mkdir($web_dir . '/libs');
system(__DIR__ . '/install_framework --src ' . escapeshellarg($horde_git) . '/framework --dest ' . escapeshellarg($web_dir . '/libs') . ' --horde ' . escapeshellarg($web_dir));
if (!$no_framework) {
print "\nLINKING framework\n";
mkdir($web_dir . '/libs');
system(__DIR__ . '/install_framework --src ' . escapeshellarg($horde_git) . '/framework --dest ' . escapeshellarg($web_dir . '/libs') . ' --horde ' . escapeshellarg($web_dir));
}
3 changes: 3 additions & 0 deletions framework/bin/install_dev.conf.dist
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ $git = false;
// The list of apps to create symlinks for
$apps = array();

// Don't install framework?
$no_framework = false;

// The location of the horde-git repository
$horde_git = '';

Expand Down

0 comments on commit 567fbc3

Please sign in to comment.