X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/75fc8671809ed40a2bc14d463f1068cefcc82140..d2bf78ef3304878995a537b02d90c8f598a5817f:/tools/doxygen/index_php.pl diff --git a/tools/doxygen/index_php.pl b/tools/doxygen/index_php.pl index ed777a569e..3a2e6144fd 100755 --- a/tools/doxygen/index_php.pl +++ b/tools/doxygen/index_php.pl @@ -14,13 +14,14 @@ my($body) = ""; open FILE,$inputhtml; while(defined($line=)) { - if($line =~/
/) { + if($line =~/
/) { $onglets = $line; while(defined($line=) && !($line =~/<\/div>/)) { + $line =~ s/ class="current"//g; $onglets.=$line; } $onglets.=$line; - $onglets.="


\n" + #$onglets.="


\n" } if($line =~/(.*)$/) { $tmp=$1; @@ -38,11 +39,14 @@ while(defined($line=)) { } close FILE; -$onglets =~ s/href=\"/href=\"doc\//gi; -$onglets =~ s/src=\"/src=\"doc\//gi; +# (?!http) : A zero-width negative look-ahead assertion. +# For example "/foo(?!bar)/" matches any occurrence of "foo" that isn’t followed by "bar". -$body =~ s/href=\"/href=\"doc\//gi; -$body =~ s/src=\"/src=\"doc\//gi; +$onglets =~ s/href=\"(?!http)/href=\"doc\//gi; +$onglets =~ s/src=\"(?!http)/src=\"doc\//gi; + +$body =~ s/href=\"(?!http)/href=\"doc\//gi; +$body =~ s/src=\"(?!http)/src=\"doc\//gi; open FILE,$inputphp; open OUTPUT,"> $output"; @@ -50,6 +54,7 @@ open OUTPUT,"> $output"; while(defined($line=)) { chomp $line; if($line =~/______ONGLETS______/) { + $onglets =~ s/