Re: THtml and ViewCVS

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Wed, 15 Nov 2006 18:08:29 +0100


Hi Antonio,

Everything you add to system.rootrc can also be executed dynamically from the command line
with gEnv->SetValue.
See my script below that I use to generate the full ROOT html documentation

Rene Brun

void html(const char* option="") {

   gEnv->SetValue("Unix.*.Root.Html.SourceDir", ".:src:include:test:/home/brun/geant3");

   gEnv->SetValue("Root.Html.ViewCVS","http://root.cern.ch/viewcvs/");    gEnv->SetValue("Root.Html.Search",
"http://www.google.com/search?q=%s+site%3Aroot.cern.ch%2Froot%2Fhtml");

   gROOT->ProcessLine(".x htmlLoadlibs.C");    THtml htmldoc;
   htmldoc.SetEscape(255);
   if (strcmp(option,"all")) htmldoc.MakeAll(kFALSE,"*");

   else                      htmldoc.MakeAll(kTRUE,"*");
}

Antonio Bulgheroni wrote:
> Dear ROOTers,
> I'm using THtml to write the documentation of our project and
> since we are also using CVS it would be very interesting to enable the
> ViewCVS header/source links. To do that I've to set
> the Root.Html.ViewCVS variable in the $ROOTSYS/etc/system.rootrc
> file. This worked perfectly as you can see here
> <http://sucimaweb.dipscfm.uninsubria.it/doc/sucimapix/htmldoc/TPixelMatrix.html>.
>
> But I wasn't able to find a method like THtml::SetViewCVS(const
> char * cvspath), this would help a lot because since I can call it in
> the very small program used to generate the docs instead of asking to
> all the developers to modify their $ROOTSYS/etc/system.rootrc file.
> Are you planning to add it?
>
> Thanks for your collaboration,
>
> Cheers, Antonio
>
> --
> Antonio Bulgheroni, PhD
>
> Your mouse has moved. Windows NT must be restarted for the change to take
> effect. Reboot now? [ OK ]
Received on Wed Nov 15 2006 - 18:08:37 MET

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:02 MET