3 # Ivana Hrivnacova 15.2.00
5 # This script defines the class categories
6 # and calls doc_alcategory.pl to generate
7 # the html category pages
9 print "Generating html pages for class categories\n";
11 # main categories list
12 $G4SOURCE = $ENV{'G4INSTALL'} . "/source";
17 foreach $DIR (@DIRLIST) {
19 # exclude unwanted subdirectories/files
20 if ($DIR ne "GNUmakefile" && $DIR ne "History" && $DIR ne "nohup.out") {
21 # subcategories are considered only in one level
22 $DIRPATH = $G4SOURCE . "/" . $DIR;
25 # test if subcategories are present
26 @INCLUDE = `find . -name "include"`;
27 $FIRSTINCLUDE = @INCLUDE[0];
29 if ($FIRSTINCLUDE eq "./include") {
36 # process subcategories
37 foreach $CAT (@CATLIST) {
39 # exclude other subdirectories
40 if ($CAT ne "GNUmakefile" && $CAT ne "History" && $CAT ne "nohup.out") {
41 print "Processing category: " . $CAT . " of " . $DIR . "\n";
43 $CATDIRPATH = $DIRPATH;
47 $CATDIRPATH = $DIRPATH . "/" . $CAT;
48 $CATNAME = $DIR . "_" . $CAT;
51 # generate the category pages
52 system $ENV{'AG4_INSTALL'} . "/config/doc_g4category.pl " . $CATDIRPATH . " " . $CATNAME;