From 72b382a9a9d676ad327c0a332fb7bbe6f5227461 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Thu, 9 Sep 2010 15:08:07 +0200 Subject: [PATCH] Link all apps if none specified. --- framework/bin/install_dev | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/framework/bin/install_dev b/framework/bin/install_dev index 728122be0..db0952f51 100755 --- a/framework/bin/install_dev +++ b/framework/bin/install_dev @@ -86,11 +86,25 @@ print "\nLINKING framework\n"; mkdir($web_dir . '/libs'); system(dirname(__FILE__) . '/install_framework --src ' . escapeshellarg($horde_git) . '/framework --dest ' . escapeshellarg($web_dir . '/libs') . ' --horde ' . escapeshellarg($web_dir)); +function link_app($app) +{ + print "LINKING " . $app . "\n"; + symlink($GLOBALS['horde_git'] . '/' . $app, $GLOBALS['web_dir'] . '/' . $app); + file_put_contents($GLOBALS['horde_git'] . '/' . $app . '/config/horde.local.php', 'isDot() && $it->isDir() && $it != 'horde' && + is_dir($it->getPathname() . '/config')) { + link_app($it); + } } } -- 2.11.0