$_ = $ARGV[$i];
if (/^-/) {
if (/^-topdir=(.*)/) {
- push @archive_args, $1;
+ push @archive_args, "--topdir=$1";
$strip = 1;
}
elsif (/^--version$/) {
$preserve = 1;
$strip = 1;
}
+ elsif (/^-app$/) {
+ $app = 1;
+ $strip = 1;
+ }
+ elsif (/^-quiet$/) {
+ $quiet = 1;
+ $strip = 1;
+ }
}
push @ncc_args, $_ if !$strip;
}
}
if ($genhtml) {
- execorfail($python, "$libprogs/nesdoc/genhtml.py", $docdir)
+ push @html_args, $python;
+ push @html_args, "$libprogs/nesdoc/genhtml.py";
+ push @html_args, "--quiet" if $quiet;
+ push @html_args, $docdir;
+ execorfail(@html_args);
}
# Collecting nesdoc data. Run ncc, then process the results with
# nesdoc-archive
unshift @ncc_args, "-fsyntax-only";
+unshift @ncc_args, "-fnesc-dump=wiring" if $app;
unshift @ncc_args, "-fnesc-dump=interfacedefs";
unshift @ncc_args, "-fnesc-dump=components(wiring)";
unshift @ncc_args, "-fnesc-dump=interfaces";
unshift @ncc_args, "-fnesc-dump=functions(!global())";
-unshift @ncc_args, "-fnesc-dump=referenced(interfaces,components)";
+unshift @ncc_args, "-fnesc-dump=referenced(interfaces,components,functions)";
unshift @ncc_args, "$exec_prefix/bin/ncc";
print STDERR join(' ', @ncc_args), "\n" if $verbose;
chomp $toscontainer;
push @archive_args, "--topdir=$toscontainer";
push @archive_args, "--preserve" if $preserve;
+push @archive_args, "--app" if $app;
+push @archive_args, "--quiet" if $quiet;
push @archive_args, "$docdir";
unshift @archive_args, "$libprogs/nesdoc/archive.py";
unshift @archive_args, $python;
nesdoc -o <documentation directory> -html
Generate nesdoc html pages from archived nesdoc information.
+
+ nesdoc -o <documentation directory> -app <ncc options and nesC file>
+ Compile specified nesC application and generate a wiring graph
+ for the whole program in the current directory.
EOM
)
}