[cfe-commits] r56444 - in /cfe/trunk/utils: scan-build scanview.css
Ted Kremenek
kremenek at apple.com
Mon Sep 22 10:50:53 PDT 2008
Author: kremenek
Date: Mon Sep 22 12:50:47 2008
New Revision: 56444
URL: http://llvm.org/viewvc/llvm-project?rev=56444&view=rev
Log:
Don't embed CSS inside scan-build script; use external scanview.css.
Added:
cfe/trunk/utils/scanview.css
Modified:
cfe/trunk/utils/scan-build
Modified: cfe/trunk/utils/scan-build
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/scan-build?rev=56444&r1=56443&r2=56444&view=diff
==============================================================================
--- cfe/trunk/utils/scan-build (original)
+++ cfe/trunk/utils/scan-build Mon Sep 22 12:50:47 2008
@@ -392,10 +392,10 @@
}
##----------------------------------------------------------------------------##
-# CopyJS - Copy JavaScript code to target directory.
+# CopyFiles - Copy resource files to target directory.
##----------------------------------------------------------------------------##
-sub CopyJS {
+sub CopyFiles {
my $Dir = shift;
@@ -406,6 +406,14 @@
DieDiag("Could not copy 'sorttable.js' to '$Dir'.\n")
if (! -r "$Dir/sorttable.js");
+
+ DieDiag("Cannot find 'scanview.css'.\n")
+ if (! -r "$RealBin/scanview.css");
+
+ system ("cp", "$RealBin/scanview.css", "$Dir");
+
+ DieDiag("Could not copy 'scanview.css' to '$Dir'.\n")
+ if (! -r "$Dir/scanview.css");
}
##----------------------------------------------------------------------------##
@@ -464,29 +472,7 @@
<html>
<head>
<title>${HtmlTitle}</title>
-<style type="text/css">
- body { color:#000000; background-color:#ffffff }
- body { font-family: Helvetica, sans-serif; font-size:9pt }
- h1 { font-size: 14pt; }
- h2 { font-size: 12pt; }
- table { font-size:9pt }
- table { border-spacing: 0px; border: 1px solid black }
- th, table thead {
- background-color:#eee; color:#666666;
- font-weight: bold; cursor: default;
- text-align:center;
- font-weight: bold; font-family: Verdana;
- white-space:nowrap;
- }
- .W { font-size:0px }
- th, td { padding:5px; padding-left:8px; text-align:left }
- td.SUMM_DESC { padding-left:12px }
- td.DESC { white-space:pre }
- td.Q { text-align:right }
- td { text-align:left }
- tbody.scrollContent { overflow:auto }
-}
-</style>
+<link type="text/css" rel="stylesheet" href="/scanview.css"/>
<script language='javascript' type="text/javascript">
if (document.styleSheets && RegExp(" AppleWebKit/").test(navigator.userAgent))
{
@@ -494,7 +480,7 @@
if (sheet) {
var rules = sheet.cssRules;
if (rules) {
- sheet.insertRule("td.View a { white-space: nowrap; -webkit-appearance:square-button; padding-left:1em; padding-right:1em; padding-top:0.5ex; padding-bottom:0.5ex; text-decoration:none; color:black }", rules.length);
+ sheet.insertRule("td.Button a { white-space: nowrap; -webkit-appearance:square-button; padding-left:1em; padding-right:1em; padding-top:0.5ex; padding-bottom:0.5ex; text-decoration:none; color:black }", rules.length);
}
}
}
@@ -721,7 +707,7 @@
print OUT "</body></html>\n";
close(OUT);
- CopyJS($Dir);
+ CopyFiles($Dir);
# Make sure $Dir and $BaseDir are world readable/executable.
system("chmod", "755", $Dir);
Added: cfe/trunk/utils/scanview.css
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/scanview.css?rev=56444&view=auto
==============================================================================
--- cfe/trunk/utils/scanview.css (added)
+++ cfe/trunk/utils/scanview.css Mon Sep 22 12:50:47 2008
@@ -0,0 +1,20 @@
+body { color:#000000; background-color:#ffffff }
+body { font-family: Helvetica, sans-serif; font-size:9pt }
+h1 { font-size: 14pt; }
+h2 { font-size: 12pt; }
+table { font-size:9pt }
+table { border-spacing: 0px; border: 1px solid black }
+th, table thead {
+ background-color:#eee; color:#666666;
+ font-weight: bold; cursor: default;
+ text-align:center;
+ font-weight: bold; font-family: Verdana;
+ white-space:nowrap;
+}
+.W { font-size:0px }
+th, td { padding:5px; padding-left:8px; text-align:left }
+td.SUMM_DESC { padding-left:12px }
+td.DESC { white-space:pre }
+td.Q { text-align:right }
+td { text-align:left }
+tbody.scrollContent { overflow:auto }
\ No newline at end of file
More information about the cfe-commits
mailing list