]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tools/tinyos/ncc/nesdoc.in
-quiet option for nesdoc
[tinyos-2.x.git] / tools / tinyos / ncc / nesdoc.in
index 47a731de3daa21977550d753db5dbd4ad116d4e4..9d8aa3d4a26058dab4a3a27fb7d157d709137097 100644 (file)
@@ -97,6 +97,10 @@ for ($i = 0; $i <= $#ARGV; $i++) {
            $app = 1;
            $strip = 1;
        }
+       elsif (/^-quiet$/) {
+           $quiet = 1;
+           $strip = 1;
+       }
     }
     push @ncc_args, $_ if !$strip;
 }
@@ -117,7 +121,11 @@ else {
 }
 
 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
@@ -150,6 +158,7 @@ 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;