projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[runtime] Fix use before null-check crasher. Found by PVS Studio.
[mono.git]
/
docs
/
exdoc
diff --git
a/docs/exdoc
b/docs/exdoc
index e161a0c3d42ebbbe4362f555889af8a70b1b3ca4..f2711d26b1301058f375998378a495f77430b8c5 100644
(file)
--- a/
docs/exdoc
+++ b/
docs/exdoc
@@
-1,17
+1,23
@@
#!/usr/bin/perl
if ($ARGV[0] eq "-h"){
#!/usr/bin/perl
if ($ARGV[0] eq "-h"){
- $dir = $ARGV[1];
+ $sourcedir = $ARGV[1];
+ $dir = $sourcedir;
$html = 1;
shift @ARGV;
shift @ARGV;
}
$html = 1;
shift @ARGV;
shift @ARGV;
}
+if ($ARGV[0] eq "-t"){
+ $dir = $ARGV[1];
+ shift @ARGV;
+}
+
if ($html){
if ($html){
- opendir (D, "$dir/sources/") || die "Can not open $dir";
+ opendir (D, "$
source
dir/sources/") || die "Can not open $dir";
while ($n = readdir (D)){
if ($n =~ /mono-api-.*\.html$/){
while ($n = readdir (D)){
if ($n =~ /mono-api-.*\.html$/){
- open (IN, "$dir/sources/$n") || die "Can not open $n";
+ open (IN, "$
source
dir/sources/$n") || die "Can not open $n";
$files[$filecount] = $n;
while (<IN>){
@files_content[$filecount] .= $_;
$files[$filecount] = $n;
while (<IN>){
@files_content[$filecount] .= $_;