From df8aa931adb8e03e276b62798b7a885d5e4cd668 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Mon, 11 Jan 2010 18:12:26 +0100 Subject: [PATCH] Show a few messages even without debug mode. --- framework/bin/install_dev | 29 +++++++---------------------- 1 file changed, 7 insertions(+), 22 deletions(-) diff --git a/framework/bin/install_dev b/framework/bin/install_dev index cef26d7cd..d6c1a36cf 100755 --- a/framework/bin/install_dev +++ b/framework/bin/install_dev @@ -17,9 +17,7 @@ $horde_git = rtrim(ltrim($horde_git), '/ '); $horde_hatchery = rtrim(ltrim($horde_hatchery), '/ '); $web_dir = rtrim(ltrim($web_dir), '/ '); -if ($debug) { - print "DELETING old web directory " . $web_dir . "\n"; -} +print "EMPTYING old web directory " . $web_dir . "\n"; $it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($web_dir), RecursiveIteratorIterator::CHILD_FIRST); while ($it->valid()) { if (!$it->isDot()) { @@ -44,16 +42,12 @@ while ($it->valid()) { } if (!empty($git)) { - if ($debug) { - print "\nUPDATING repositories\n"; - } + print "\nUPDATING repositories\n"; system('cd ' . $horde_git . ';' . $git); system('cd ' . $horde_hatchery . ';' . $git); } -if ($debug) { - print "\nLINKING horde\n"; -} +print "\nLINKING horde\n"; $it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($horde_git . '/horde'), RecursiveIteratorIterator::SELF_FIRST); while ($it->valid()) { if (!$it->isDot()) { @@ -80,29 +74,20 @@ if (!empty($static_group)) { chmod($web_dir . '/static', $static_mode); } -if ($debug) { - print "\nLINKING framework\n"; -} - +print "\nLINKING framework\n"; mkdir($web_dir . '/libs'); file_put_contents($horde_git . '/horde/config/horde.local.php', "