[chora] chora on windoze

mike mike001 at giga.net.tw
Mon Oct 25 02:00:10 PDT 2004


my windoze version is advanced server
5.00.2195 Service Pack4
but I thinks it should be works on the other windoze.

CVSNT-2.0.58b    http://www.cvsnt.org
Apache-1.3.31    http://httpd.apache.org
PHP-4.3.9        http://www.php.net
Horde-2.2.6      http://www.horde.org
Chora-1.2.2      http://www.horde.org/chora/
RCS-5.7          http://www.cs.purdue.edu/homes/trinkle/RCS/rcs57pc1.zip

The most external execute files that Chora needs are inside CVSNT.
The only one lost is rcs.
I install GNU RCS PC binary version from
http://www.cs.purdue.edu/homes/trinkle/RCS/
Download that file (rcs57pc1.zip) above, and extract the files under
directory
bin\win32 to anywhere you want (I use D:/work/tools/chora-bin/).

Below is my setting, hope it works(at least to me).

--part of horde/config/registry.php--
$this->applications['chora'] = array(
    'fileroot' => dirname(__FILE__) . '/../chora',
    'webroot' => $this->applications['horde']['webroot'] . '/chora',
    'icon' => $this->applications['horde']['webroot'] .
'/chora/graphics/chora.gif',
    'name' => _("CVS"),
    'allow_guests' => true,
    'status' => 'active'
);
--part of horde/config/registry.php--


--part of horde/chora/config/cvsroots.php--
$cvsroots['test'] = array(
    'name' => 'test',
    'location' => 'D:/repos/test',
    'title' => 'test Repository',
    'default' => true
);
--part of horde/chora/config/cvsroots.php--


--part of horde/chora/config/conf.php--
$conf['paths']['co']          = 'C:/progra~1/cvsnt/co';
$conf['paths']['rcs']         = 'D:/work/tools/chora-bin/rcs';
$conf['paths']['rcsdiff']     = 'C:/progra~1/cvsnt/rcsdiff';
$conf['paths']['rlog']        = 'C:/progra~1/cvsnt/rlog';
$conf['paths']['cvs']         = 'C:/progra~1/cvsnt/cvs';
--part of horde/chora/config/conf.php--


patch code is stolen from chora/lib/CVSLib/Annotate.php
cause of the backslash will been eaten by escapeshellcmd()
and it will makes diff didn't work.
D:\work\tools\chora-bin>diff -u
D:\tmp\install\cvs\chora-1.2.2\lib\CVSLib\Diff.p
hp  D:\work\tools\horde-2.2.6\chora\lib\CVSLib\Diff.php
--- D:\tmp\install\cvs\chora-1.2.2\lib\CVSLib\Diff.php  Sat Jun 12 22:06:20
2004

+++ D:\work\tools\horde-2.2.6\chora\lib\CVSLib\Diff.php Mon Oct 25 15:32:41
2004

@@ -69,6 +69,11 @@
             break;
         }

+        // Windows versions of cvs always return $where with forwards
slashes.
+        if (OS_WINDOWS) {
+            $fullName = str_replace(DIRECTORY_SEPARATOR, '/', $fullName);
+        }
+
         // TODO: add options for $hr options - however these may not
         // be compatible with some diffs - avsm
         $command = $GLOBALS['conf']['paths']['rcsdiff'] . "
$options -r$rev1 -r$rev2 \"" . escapeshellcmd($fullName) . '" 2>&1';



mike0



More information about the chora mailing list