Linking projects and cvs checkouts
| From: | Mehdi Achour | Date: | Sun, 31 Oct 2004 21:13:05 +0000 |
| Subject: | Linking projects and cvs checkouts | ||
| Groups: | php.doc.web | ||
| Request: | Send a blank email to doc-web+get-398@lists.php.net to get a copy of this message | ||
Hi all,
I'm actually reworking the rev.php scripts that generates the sqlite databases needed for the revision tracking, and I'm in need of a function that links a SITE to a local checkout on the server.
It used to be get_cvs_dir(), but looking at the code in lib_general.inc.php I see:
function get_cvs_dir($project)
{
// @@@ make this return something until the function is found
return $GLOBALS['PROJECTS'][$project][1] . '/';
}
Who added this comment and why ? :) We need such a functionnality
when running scripts, or using templates. Sean harcoded /cvs/phpdoc-all/$lang/docweb in his templating class, but I'm sure we will need to allow the other projects to have their own words in their own modules.
So, if get_cvs_dir() is deprecated, it needs to be replaced by something . For now the map is done in $PROJECTS, but we can change it to another place.. Someone ?
Thanks
didou