Add framework_bin config option to Release library
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 19 Nov 2010 18:30:31 +0000 (11:30 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 19 Nov 2010 20:10:49 +0000 (13:10 -0700)
framework/Release/lib/Horde/Release.php

index 0874124..c48f080 100644 (file)
@@ -463,8 +463,13 @@ class Horde_Release
             if ($status) {
                 die("\nThere was an error running the command\n$cmd\n");
             }
+
+            $bin_path = isset($this->_options['framework_bin'])
+                ? rtrim($this->_options['framework_bin'], '/') . '/'
+                : '';
+
             print "Installing framework packages\n";
-            passthru("install_framework --copy --src ./$directory/framework --horde /tmp --dest ./$directory/lib", $result);
+            passthru($bin_path . "install_framework --copy --src ./$directory/framework --horde /tmp --dest ./$directory/lib", $result);
             if ($result) {
                 exit;
             }