GCC Regression Tester.wdgt: Rename to GCC_Regression_Tester.wdgt.
authorGeoffrey Keating <geoffk@geoffk.org>
Mon, 28 Nov 2005 17:41:07 +0000 (17:41 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Mon, 28 Nov 2005 17:41:07 +0000 (17:41 +0000)
* GCC Regression Tester.wdgt: Rename to GCC_Regression_Tester.wdgt.
* GCC_Regression_Tester.wdgt/Info.plist
(CFBundleDisplayName): Update for rename.
(CFBundleName): Use shorter name.
(CFBundleVersion): Update to 1.0.1.
(CFBundleShortVersionString): Update to 1.0.1.
(LSHasLocalizedDisplayName): New.
(NSHumanReadableCopyright): New.
* GCC_Regression_Tester.wdgt/de.lproj/InfoPlist.strings: New.
* GCC_Regression_Tester.wdgt/en.lproj/InfoPlist.strings: New.
* GCC_Regression_Tester.wdgt/ja.lproj/InfoPlist.strings: New.

* GCC_Regression_Tester.wdgt/widget.html: Use max-age=30
to help out intermediate caches.

From-SVN: r107606

13 files changed:
contrib/regression/ChangeLog
contrib/regression/GCC Regression Tester.wdgt/Default.png [deleted file]
contrib/regression/GCC Regression Tester.wdgt/Icon.png [deleted file]
contrib/regression/GCC Regression Tester.wdgt/Info.plist [deleted file]
contrib/regression/GCC Regression Tester.wdgt/widget.html [deleted file]
contrib/regression/GCC_Regression_Tester.wdgt/Default.png [new file with mode: 0644]
contrib/regression/GCC_Regression_Tester.wdgt/Icon.png [new file with mode: 0644]
contrib/regression/GCC_Regression_Tester.wdgt/Info.plist [new file with mode: 0644]
contrib/regression/GCC_Regression_Tester.wdgt/de.lproj/InfoPlist.strings [new file with mode: 0644]
contrib/regression/GCC_Regression_Tester.wdgt/en.lproj/InfoPlist.strings [new file with mode: 0644]
contrib/regression/GCC_Regression_Tester.wdgt/ja.lproj/InfoPlist.strings [new file with mode: 0644]
contrib/regression/GCC_Regression_Tester.wdgt/widget.html [new file with mode: 0644]
contrib/regression/README

index a6ba783ff2b1493c5f037854cbddae90899c50f5..153e0f6d235b0dea308039ad750a5603cf3042de 100644 (file)
@@ -1,3 +1,20 @@
+2005-11-28  Geoffrey Keating  <geoffk@geoffk.org>
+
+       * GCC Regression Tester.wdgt: Rename to GCC_Regression_Tester.wdgt.
+       * GCC_Regression_Tester.wdgt/Info.plist
+       (CFBundleDisplayName): Update for rename.
+       (CFBundleName): Use shorter name.
+       (CFBundleVersion): Update to 1.0.1.
+       (CFBundleShortVersionString): Update to 1.0.1.
+       (LSHasLocalizedDisplayName): New.
+       (NSHumanReadableCopyright): New.
+       * GCC_Regression_Tester.wdgt/de.lproj/InfoPlist.strings: New.
+       * GCC_Regression_Tester.wdgt/en.lproj/InfoPlist.strings: New.
+       * GCC_Regression_Tester.wdgt/ja.lproj/InfoPlist.strings: New.
+
+       * GCC_Regression_Tester.wdgt/widget.html: Use max-age=30
+       to help out intermediate caches.
+
 2005-11-23  Geoffrey Keating  <geoffk@geoffk.org>
 
        * GCC Regression Tester.wdgt/widget.html: New file.
diff --git a/contrib/regression/GCC Regression Tester.wdgt/Default.png b/contrib/regression/GCC Regression Tester.wdgt/Default.png
deleted file mode 100644 (file)
index a6dfd46..0000000
Binary files a/contrib/regression/GCC Regression Tester.wdgt/Default.png and /dev/null differ
diff --git a/contrib/regression/GCC Regression Tester.wdgt/Icon.png b/contrib/regression/GCC Regression Tester.wdgt/Icon.png
deleted file mode 100644 (file)
index 662b516..0000000
Binary files a/contrib/regression/GCC Regression Tester.wdgt/Icon.png and /dev/null differ
diff --git a/contrib/regression/GCC Regression Tester.wdgt/Info.plist b/contrib/regression/GCC Regression Tester.wdgt/Info.plist
deleted file mode 100644 (file)
index 0902ff7..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
-       <key>AllowNetworkAccess</key>
-       <true/>
-       <key>CFBundleDisplayName</key>
-       <string>GCC Regression Tester</string>
-       <key>CFBundleName</key>
-       <string>GCC Regression Tester</string>
-       <key>CFBundleIdentifier</key>
-       <string>org.geoffk.widget.regress</string>
-       <key>CFBundleShortVersionString</key>
-       <string>1.0</string>
-       <key>CFBundleVersion</key>
-       <string>1.0</string>
-       <key>CloseBoxInsetX</key>
-       <integer>0</integer>
-       <key>CloseBoxInsetY</key>
-       <integer>0</integer>
-       <key>MainHTML</key>
-       <string>widget.html</string>
-       <key>Width</key>
-       <integer>261</integer>
-       <key>Height</key>
-       <integer>192</integer>
-</dict>
-</plist>
diff --git a/contrib/regression/GCC Regression Tester.wdgt/widget.html b/contrib/regression/GCC Regression Tester.wdgt/widget.html
deleted file mode 100644 (file)
index e2bc6ac..0000000
+++ /dev/null
@@ -1,155 +0,0 @@
-<!-- Get and update the GCC regression tester's web page.
-     Copyright (C) 2005 Free Software Foundation, Inc.
-
-This file is part of GCC.
-
-GCC is free software; you can redistribute it and/or modify it under
-the terms of the GNU General Public License as published by the Free
-Software Foundation; either version 2, or (at your option) any later
-version.
-
-GCC is distributed in the hope that it will be useful, but WITHOUT ANY
-WARRANTY; without even the implied warranty of MERCHANTABILITY or
-FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
-for more details.
-
-You should have received a copy of the GNU General Public License
-along with GCC; see the file COPYING.  If not, write to the Free
-Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
-02110-1301, USA.  -->
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE html 
-     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<META http-equiv="Content-Script-Type" content="text/javascript">
-
-<head>
-<script type='text/javascript'>
-// A string representing NUM, with a leading zero if it would be 1 digit long
-function dig2 (num) 
-{
-    var result = num.toString();
-    if (result.length == 1)
-       return '0' + result;
-    else
-       return result;
-}
-
-// Get DATE as a string in standard ISO format in UTC
-function getISO (date) 
-{
-    return (date.getUTCFullYear().toString() + '-'
-           + dig2 (date.getUTCMonth() + 1) + '-'
-           + dig2 (date.getUTCDate()) + 'T'
-           + dig2 (date.getUTCHours()) + ':'
-           + dig2 (date.getUTCMinutes()) + 'Z');
-}
-
-// STR is a bunch of lines of the form '<key>: <date>' where <date> is in
-// standard ISO UTC format.  Return a Date object corresponding to KEY, or null
-// if none is found.
-function fromISO (str, key)
-{
-    var rx = new RegExp (key + ": (\\d+)-(\\d+)-(\\d+)T(\\d+):(\\d+):(\\d+)Z");
-    var match = rx.exec (str);
-    if (match == null || match.length != 7)
-       return null;
-    var date = new Date(0);
-    date.setUTCFullYear (match[1], match[2] - 1, match[3]);
-    date.setUTCHours (match[4], match[5], match[6], 0);
-    return date;
-}
-
-// Update the data
-function updateContents () {
-    var url = 'http://gcc.gnu.org/regtest/HEAD/status.txt';
-    var xml_request = new XMLHttpRequest();
-    
-    xml_request.onload = function(e) 
-       {
-           gotContents(e, xml_request);
-       }
-    xml_request.open("GET", url);
-    xml_request.setRequestHeader("Cache-Control", "max-age=0");
-    xml_request.send(null);
-}
-
-function gotContents (event, request) {
-    if (request.status != 200)
-        return;
-
-    if (! request.responseText)
-       return;
-
-    var txt = (request.responseText
-              .replace (/&/g,"&amp;")
-              .replace (/</g,"&lt;")
-              .replace (/&quot;/g,"&quot;")
-              .replace (/>;/g,"&gt;"));
-    
-    var today = new Date();
-    var date_r = fromISO (txt, "Date");
-    var completed_r = fromISO (txt, "Test-Completed");
-    var now_test_r = fromISO (txt, "Now-Testing");
-    var eta = "";
-    
-    if (date_r != null && completed_r != null && now_test_r != null)
-       {
-           var eta_r = new Date (now_test_r.getTime() 
-                                 + completed_r.getTime() - date_r.getTime());
-           eta = "ETA: " + getISO (eta_r) + '\n';
-       }
-
-    var val = txt + "Now: " + getISO (today) + '\n' + eta;
-    document.getElementById ("contents").innerHTML = "<pre>"+val+"<\/pre>";
-}
-
-var mainTimer = null;
-
-function myOnShow () 
-{
-    if (! mainTimer) {
-       mainTimer = setInterval (updateContents, 60000);
-    }
-    updateContents();
-}
-
-function myOnHide () 
-{
-    if (mainTimer) {
-       clearInterval (mainTimer);
-       mainTimer = null;
-    }
-}
-
-function myOnLoad ()
-{
-    if ( window.widget ) {
-       widget.onshow = myOnShow;
-       widget.onhide = myOnHide;
-    }
-    myOnShow();
-}
-</script>
-<style>
-body {
-       margin: 0px;
-       padding: 0px;
-}
-pre {
-       font-family: Monaco;
-       font-size: 9px;
-       margin: 0px;
-       padding: 1px 2px 1px 2px;
-       color: black;
-       background-color: white;
-       opacity: 0.8;
-}
-</style>
-</head>
-
-<body onLoad='myOnLoad();'>
-<div id="contents">Loading...</div>
-</body>
-</html>
diff --git a/contrib/regression/GCC_Regression_Tester.wdgt/Default.png b/contrib/regression/GCC_Regression_Tester.wdgt/Default.png
new file mode 100644 (file)
index 0000000..a6dfd46
Binary files /dev/null and b/contrib/regression/GCC_Regression_Tester.wdgt/Default.png differ
diff --git a/contrib/regression/GCC_Regression_Tester.wdgt/Icon.png b/contrib/regression/GCC_Regression_Tester.wdgt/Icon.png
new file mode 100644 (file)
index 0000000..662b516
Binary files /dev/null and b/contrib/regression/GCC_Regression_Tester.wdgt/Icon.png differ
diff --git a/contrib/regression/GCC_Regression_Tester.wdgt/Info.plist b/contrib/regression/GCC_Regression_Tester.wdgt/Info.plist
new file mode 100644 (file)
index 0000000..a00106d
--- /dev/null
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+       <key>AllowNetworkAccess</key>
+       <true/>
+       <key>CFBundleDisplayName</key>
+       <string>GCC_Regression_Tester</string>
+       <key>CFBundleIdentifier</key>
+       <string>org.geoffk.widget.regress</string>
+       <key>CFBundleName</key>
+       <string>GCC Regr. Tester</string>
+       <key>CFBundleShortVersionString</key>
+       <string>1.0.1</string>
+       <key>CFBundleVersion</key>
+       <string>1.0.1</string>
+       <key>CloseBoxInsetX</key>
+       <integer>0</integer>
+       <key>CloseBoxInsetY</key>
+       <integer>0</integer>
+       <key>Height</key>
+       <integer>192</integer>
+       <key>LSHasLocalizedDisplayName</key>
+       <true/>
+       <key>MainHTML</key>
+       <string>widget.html</string>
+       <key>NSHumanReadableCopyright</key>
+       <string>Copyright © 2005 Free Software Foundation, Inc.</string>
+       <key>Width</key>
+       <integer>261</integer>
+</dict>
+</plist>
diff --git a/contrib/regression/GCC_Regression_Tester.wdgt/de.lproj/InfoPlist.strings b/contrib/regression/GCC_Regression_Tester.wdgt/de.lproj/InfoPlist.strings
new file mode 100644 (file)
index 0000000..7692ed5
Binary files /dev/null and b/contrib/regression/GCC_Regression_Tester.wdgt/de.lproj/InfoPlist.strings differ
diff --git a/contrib/regression/GCC_Regression_Tester.wdgt/en.lproj/InfoPlist.strings b/contrib/regression/GCC_Regression_Tester.wdgt/en.lproj/InfoPlist.strings
new file mode 100644 (file)
index 0000000..45628a3
Binary files /dev/null and b/contrib/regression/GCC_Regression_Tester.wdgt/en.lproj/InfoPlist.strings differ
diff --git a/contrib/regression/GCC_Regression_Tester.wdgt/ja.lproj/InfoPlist.strings b/contrib/regression/GCC_Regression_Tester.wdgt/ja.lproj/InfoPlist.strings
new file mode 100644 (file)
index 0000000..f3110f3
Binary files /dev/null and b/contrib/regression/GCC_Regression_Tester.wdgt/ja.lproj/InfoPlist.strings differ
diff --git a/contrib/regression/GCC_Regression_Tester.wdgt/widget.html b/contrib/regression/GCC_Regression_Tester.wdgt/widget.html
new file mode 100644 (file)
index 0000000..b9fecc2
--- /dev/null
@@ -0,0 +1,155 @@
+<!-- Get and update the GCC regression tester's web page.
+     Copyright (C) 2005 Free Software Foundation, Inc.
+
+This file is part of GCC.
+
+GCC is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation; either version 2, or (at your option) any later
+version.
+
+GCC is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+along with GCC; see the file COPYING.  If not, write to the Free
+Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301, USA.  -->
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html 
+     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<META http-equiv="Content-Script-Type" content="text/javascript">
+
+<head>
+<script type='text/javascript'>
+// A string representing NUM, with a leading zero if it would be 1 digit long
+function dig2 (num) 
+{
+    var result = num.toString();
+    if (result.length == 1)
+       return '0' + result;
+    else
+       return result;
+}
+
+// Get DATE as a string in standard ISO format in UTC
+function getISO (date) 
+{
+    return (date.getUTCFullYear().toString() + '-'
+           + dig2 (date.getUTCMonth() + 1) + '-'
+           + dig2 (date.getUTCDate()) + 'T'
+           + dig2 (date.getUTCHours()) + ':'
+           + dig2 (date.getUTCMinutes()) + 'Z');
+}
+
+// STR is a bunch of lines of the form '<key>: <date>' where <date> is in
+// standard ISO UTC format.  Return a Date object corresponding to KEY, or null
+// if none is found.
+function fromISO (str, key)
+{
+    var rx = new RegExp (key + ": (\\d+)-(\\d+)-(\\d+)T(\\d+):(\\d+):(\\d+)Z");
+    var match = rx.exec (str);
+    if (match == null || match.length != 7)
+       return null;
+    var date = new Date(0);
+    date.setUTCFullYear (match[1], match[2] - 1, match[3]);
+    date.setUTCHours (match[4], match[5], match[6], 0);
+    return date;
+}
+
+// Update the data
+function updateContents () {
+    var url = 'http://gcc.gnu.org/regtest/HEAD/status.txt';
+    var xml_request = new XMLHttpRequest();
+    
+    xml_request.onload = function(e) 
+       {
+           gotContents(e, xml_request);
+       }
+    xml_request.open("GET", url);
+    xml_request.setRequestHeader("Cache-Control", "max-age=30");
+    xml_request.send(null);
+}
+
+function gotContents (event, request) {
+    if (request.status != 200)
+        return;
+
+    if (! request.responseText)
+       return;
+
+    var txt = (request.responseText
+              .replace (/&/g,"&amp;")
+              .replace (/</g,"&lt;")
+              .replace (/&quot;/g,"&quot;")
+              .replace (/>;/g,"&gt;"));
+    
+    var today = new Date();
+    var date_r = fromISO (txt, "Date");
+    var completed_r = fromISO (txt, "Test-Completed");
+    var now_test_r = fromISO (txt, "Now-Testing");
+    var eta = "";
+    
+    if (date_r != null && completed_r != null && now_test_r != null)
+       {
+           var eta_r = new Date (now_test_r.getTime() 
+                                 + completed_r.getTime() - date_r.getTime());
+           eta = "ETA: " + getISO (eta_r) + '\n';
+       }
+
+    var val = txt + "Now: " + getISO (today) + '\n' + eta;
+    document.getElementById ("contents").innerHTML = "<pre>"+val+"<\/pre>";
+}
+
+var mainTimer = null;
+
+function myOnShow () 
+{
+    if (! mainTimer) {
+       mainTimer = setInterval (updateContents, 60000);
+    }
+    updateContents();
+}
+
+function myOnHide () 
+{
+    if (mainTimer) {
+       clearInterval (mainTimer);
+       mainTimer = null;
+    }
+}
+
+function myOnLoad ()
+{
+    if ( window.widget ) {
+       widget.onshow = myOnShow;
+       widget.onhide = myOnHide;
+    }
+    myOnShow();
+}
+</script>
+<style>
+body {
+       margin: 0px;
+       padding: 0px;
+}
+pre {
+       font-family: Monaco;
+       font-size: 9px;
+       margin: 0px;
+       padding: 1px 2px 1px 2px;
+       color: black;
+       background-color: white;
+       opacity: 0.8;
+}
+</style>
+</head>
+
+<body onLoad='myOnLoad();'>
+<div id="contents">Loading...</div>
+</body>
+</html>
index 9eecd0dd909feea67abc9690000b5c8c87c46cc3..9e94e5c394c5d004bc2e2c4986fe05d43ef35b08 100644 (file)
@@ -12,10 +12,10 @@ the newly-build tools to check that they will not cause regressions.
 'site.exp' is what $DEJAGNU points to when the regression tester runs
 these scripts.
 
-'GCC Regression Tester.wdgt' is a Dashboard widget that displays the
+'GCC_Regression_Tester.wdgt' is a Dashboard widget that displays the
 current state of the tester using Javascript.  You can use it without
 needing Dashboard by pointing your web browser at
-'GCC%20Regression%20Tester.wdgt/widget.html', if your browser supports
+'GCC_Regression_Tester.wdgt/widget.html', if your browser supports
 and permits it.
 
 Note that any changes made here need to be approved by the regression