From: Jan Schneider Date: Thu, 9 Sep 2010 13:08:07 +0000 (+0200) Subject: Link all apps if none specified. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=72b382a9a9d676ad327c0a332fb7bbe6f5227461;p=horde.git Link all apps if none specified. --- 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); + } } }