Can someone please apply this?

>From 18f41253cbb7e673f4a8b7ad42d60175d043f0a6 Mon Sep 17 00:00:00 2001
From: Justin Bogner <[email protected]>
Date: Wed, 23 Jan 2013 13:45:55 -0700
Subject: [PATCH] scan-build: Always generate index.html when outputting html

If we're generating plist output, we obviously don't want to generate
the html index files. Unfortunately, the current check also catches
plist-html, in which case we actually do need an index. This change
causes us to generate an index for any output format that includes
html.
---
 tools/scan-build/scan-build |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/scan-build/scan-build b/tools/scan-build/scan-build
index 5bff0d9..20b85a0 100755
--- a/tools/scan-build/scan-build
+++ b/tools/scan-build/scan-build
@@ -1563,7 +1563,7 @@ if (defined $OutputFormat) {
     Diag "Analysis run complete.\n";
     Diag "Analysis results (plist files) deposited in '$HtmlDir'\n";
   }
-  elsif ($OutputFormat =~ /html/) {
+  if ($OutputFormat =~ /html/) {
     # Postprocess the HTML directory.
     my $NumBugs = Postprocess($HtmlDir, $BaseDir, $AnalyzerStats);
 
-- 
1.7.9.5

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to