A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add some missing files from postprocesser.
[simgrid.git]
/
tools
/
doxygen
/
index_php.pl
diff --git
a/tools/doxygen/index_php.pl
b/tools/doxygen/index_php.pl
index
ed777a5
..
4d8a9d0
100755
(executable)
--- a/
tools/doxygen/index_php.pl
+++ b/
tools/doxygen/index_php.pl
@@
-14,9
+14,10
@@
my($body) = "";
open FILE,$inputhtml;
while(defined($line=<FILE>)) {
open FILE,$inputhtml;
while(defined($line=<FILE>)) {
- if($line =~/<div class="tabs">/) {
+ if($line =~/<div
id=".*"
class="tabs">/) {
$onglets = $line;
while(defined($line=<FILE>) && !($line =~/<\/div>/)) {
$onglets = $line;
while(defined($line=<FILE>) && !($line =~/<\/div>/)) {
+ $line =~ s/ class="current"//g;
$onglets.=$line;
}
$onglets.=$line;
$onglets.=$line;
}
$onglets.=$line;
@@
-38,11
+39,14
@@
while(defined($line=<FILE>)) {
}
close FILE;
}
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";
open FILE,$inputphp;
open OUTPUT,"> $output";