Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [dsdp-pmc] DSDP SearchCVS is live!

Hi Pawel,
 
First, I need to manually add your CVS project to the script. I did this here:
 
 
In _projectCommon, you do need almost all of the modleing variables.
Try attached patch, against /dsdp project.
 
Cheers,
--
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
 
 


From: Piech, Pawel
Sent: Donnerstag, 06. März 2008 05:25
To: Oberhuber, Martin
Subject: Re: [dsdp-pmc] DSDP SearchCVS is live!

Hi Martin,
I've spend some time tonight trying to set this up: I added searchcvs to DD project web, but I gave up trying to setup the variables: shoud I try to copy and adapt everything inside <modeling variables>?

The CVS modules I would like to index are in:
/cvsroot/dsdp/org.eclipse.dd.dsf
/cvsroot/dsdp/org.eclipse.dd.debug.memory.renderings
/cvsroot/dsdp/org.eclipse.dd.ipxact

Thanks in advance for your help.
-Pawel
### Eclipse Workspace Patch 1.0
#P www-dsdp
Index: dd/_projectCommon.php
===================================================================
RCS file: /cvsroot/org.eclipse/www/dsdp/dd/_projectCommon.php,v
retrieving revision 1.9
diff -u -r1.9 _projectCommon.php
--- dd/_projectCommon.php	6 Mar 2008 04:27:42 -0000	1.9
+++ dd/_projectCommon.php	6 Mar 2008 12:35:39 -0000
@@ -3,14 +3,86 @@
 # <modeling variables>
 $PR = "dsdp/dd";
 $projectName = "Device Debugging";
-# </modeling variables>
 
+$isEMFserver = (preg_match("/^emf(?:\.torolab\.ibm\.com)$/", $_SERVER["SERVER_NAME"]));
+$isBuildServer = (preg_match("/^(dsdp|build)\.eclipse\.org$/", $_SERVER["SERVER_NAME"])) || $isEMFserver;
+$isBuildDotEclipseServer = $_SERVER["SERVER_NAME"] == "build.eclipse.org";
+$isWWWserver = (preg_match("/^(?:www.|)eclipse.org$/", $_SERVER["SERVER_NAME"]));
+$isEclipseCluster = (preg_match("/^(?:www.||download.|download1.|build.)eclipse.org$/", $_SERVER["SERVER_NAME"]));
+$debug = (isset ($_GET["debug"]) && preg_match("/^\d+$/", $_GET["debug"]) ? $_GET["debug"] : -1);
+$writableRoot = ($isBuildServer ? $_SERVER["DOCUMENT_ROOT"] . "/dsdp/includes/" : "/home/data/httpd/writable/dsdp/");
+$writableBuildRoot = $isBuildDotEclipseServer ? "/opt/public/dsdp" : "/home/www-data";
+
+$rooturl = "http://"; . $_SERVER["HTTP_HOST"] . "/$PR";
+$downurl = ($isBuildServer ? "" : "http://www.eclipse.org";);
+$bugurl = "https://bugs.eclipse.org";;
+
+# Set the theme for your project's web pages.
+# See the Committer Tools "How Do I" for list of themes
+# https://dev.eclipse.org/committers/
+# Optional: defaults to system theme 
+#$theme = "";
+if (isset ($_GET["skin"]) && preg_match("/^(Blue|EclipseStandard|Industrial|Lazarus|Miasma|Modern|OldStyle|Phoenix|PhoenixTest|PlainText)$/", $_GET["skin"], $regs))
+{
+	$theme = $regs[1];
+}
+else
+{
+	$theme = "Phoenix";
+}
+
+/* projects/components in cvs */
+/* "proj" => "cvsname" */
+#$cvsprojs = array (); /* should always be empty */
+$cvsprojs = array (
+	"dsf" => "org.eclipse.dd.dsf",
+	"ddmemrenderings" => "org.eclipse.dd.debug.memory.renderings",
+	"ipxact" => "org.eclipse.dd.ipxact"
+);
+
+/* sub-projects/components in cvs for projects/components above (if any) */
+/* "cvsname" => array("shortname" => "cvs-subname") */
+$cvscoms = array(
+	#"org.eclipse.tm.core" => array (
+	#	"terminal" => "terminal",
+	#	"discovery" => "discovery"
+	#	/* add more here */
+	#)
+);
+
+/* Readable Project names: "bugzilla component" => "shortname" */
+$projects = array(
+	"DSF" => "dsf",
+	"Memory" => "ddmemrenderings",
+	"IP-XACT" => "ipxact"
+);
 
-	# Set the theme for your project's web pages.
-	# See the Committer Tools "How Do I" for list of themes
-	# https://dev.eclipse.org/committers/
-	# Optional: defaults to system theme 
-	$theme = "";
+$bugcoms = array_flip($projects);
+$bugcoms = preg_replace("/ /", "%20", $bugcoms);
+
+$extraprojects = array(); //components with only downloads, no info yet, "prettyname" => "directory"
+$nodownloads = array(); //components with only information, no downloads, or no builds available yet, "projectkey"
+$nonewsgroup = array(); //components without newsgroup
+$nomailinglist = array(); //components without mailinglist
+$incubating = $projects; // ALL components are incubating
+#$incubating = array("tcf"); //Only TCF is incubating for now
+$hasmoved = array(); // components which have moved, and to where
+$nomenclature = "Component"; //are we dealing with "components" or "projects"?
+
+include_once $_SERVER["DOCUMENT_ROOT"] . "/dsdp/includes/scripts.php";
+
+$regs = null;
+$proj = (isset($_GET["project"]) && preg_match("/^(" . join("|", $projects) . ")$/", $_GET["project"], $regs) ? $regs[1] : getProjectFromPath($PR));
+$projct= preg_replace("#^/#", "", $proj);
+
+$buildtypes = array(
+	"R" => "Release",
+	"S" => "Stable",
+	"I" => "Integration",
+	"M" => "Maintenance",
+	"N" => "Nightly"
+);
+# </modeling variables>
 
 	require_once($_SERVER['DOCUMENT_ROOT'] . "/projects/common/project-info.class.php");
 	$projectInfo = new ProjectInfo("dsdp.dd");

Back to the top