OSDN Git Service

Add "licensing terms" overlay pages.
authorKeith Marshall <keith@users.osdn.me>
Wed, 7 Oct 2020 19:15:44 +0000 (20:15 +0100)
committerKeith Marshall <keith@users.osdn.me>
Wed, 7 Oct 2020 19:15:44 +0000 (20:15 +0100)
* terms.html fdl.html: New files.
* header.html (Licensing tab): Add "terms.html" overlay reference.
* site.css (h3-numbered): New "div" class; specify formatting.
* site.js (load_page_overlay): New function; implement it.

fdl.html [new file with mode: 0644]
header.html
site.css
site.js
terms.html [new file with mode: 0644]

diff --git a/fdl.html b/fdl.html
new file mode 100644 (file)
index 0000000..185a4c2
--- /dev/null
+++ b/fdl.html
@@ -0,0 +1,77 @@
+<!DOCTYPE HTML><!--
+ *
+ * fdl.html
+ *
+ * An HTML rendition of the MinGW.org free documentation licence; (a
+ * derivative of the FreeBSD Documentation Licence).
+ *
+ *
+ * $Id$
+ *
+ * Written by Keith Marshall <keith@users.osdn.me>
+ * Copyright (C) 2020, MinGW.org Project
+ *
+ *
+ * Redistribution and use in source and 'compiled' forms (SGML, HTML,
+ * PDF, PostScript, RTF, etc) with or without modification, are permitted
+ * provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer as
+ *    the first lines of this file, unmodified.
+ *
+ * 2. Redistributions in compiled form (transformed to other DTDs,
+ *    converted to PDF, PostScript, RTF and other formats) must
+ *    reproduce the above copyright notice, this list of conditions
+ *    and the following disclaimer in the documentation and/or other
+ *    materials provided with the distribution.
+ *
+ * THIS DOCUMENTATION IS PROVIDED BY THE MINGW.ORG PROJECT "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE MINGW.ORG PROJECT, OR
+ * ITS CONTRIBUTORS, BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+-->
+<p>Copyright &copy; 2020, MinGW.org Project
+</p>
+<p>Redistribution and use in source and 'compiled' forms (SGML, HTML,
+PDF, PostScript, RTF, etc) with or without modification, are permitted
+provided that the following conditions are met:&mdash;
+</p>
+<ol style="margin: 0.2em 0 0 0;">
+  <li style="padding-bottom: 0.2em;">
+      Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer as
+      the first lines of this file, unmodified.
+  </li>
+  <li>Redistributions in compiled form (transformed to other DTDs,
+      converted to PDF, PostScript, RTF and other formats) must
+      reproduce the above copyright notice, this list of conditions
+      and the following disclaimer in the documentation and/or other
+      materials provided with the distribution.
+  </li>
+</ol>
+<p>
+THIS DOCUMENTATION IS PROVIDED BY THE MINGW.ORG PROJECT "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE MINGW.ORG PROJECT, OR
+ITS CONTRIBUTORS, BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGE.
+</p>
+
+<!-- $RCSfile$: end of file -->
index 03ef550..666d78f 100644 (file)
   <ul id="navbar">
     <li><a href="index.html">Home</a></li>
     <li><a href="#">Downloads</a></li>
-    <li><a href="#">Licensing</a></li>
+    <li><a onclick="load_page_overlay('terms.html', 'MinGW Licensing',
+          'Terms of Use for MinGW.org Products and Resources')"
+          href="#"
+       >Licensing</a>
+    </li>
     <li><a href="#">Documentation</a></li>
     <li><a href="#">Contact Us</a></li>
   </ul>
index 350264c..6db77ac 100644 (file)
--- a/site.css
+++ b/site.css
@@ -213,4 +213,24 @@ p+ul
   margin: 0; padding-top: 1px; font-weight: normal;
 }
 
+/* Supplementary formatting for sections with numbered headings
+ * ============================================================
+ */
+.h3-numbered
+{ /* On starting any new numbered section division, reset the
+   * heading serial number sequence, and establish a suitable
+   * space at the top of the display region.
+   */
+  counter-reset: h3-number;
+  margin-top: 0.8em;
+}
+.h3-numbered h3::before
+{ /* For each section heading, in sequence, increment the serial
+   * number, and prefix it to the heading text.
+   */
+  counter-increment: h3-number;
+  font-family: inherit; font-size: 0.87em; font-weight: bold;
+  content: counter(h3-number) ". ";
+}
+
 /* $RCSfile$: end of file */
diff --git a/site.js b/site.js
index df255c7..f2da66d 100644 (file)
--- a/site.js
+++ b/site.js
@@ -64,6 +64,15 @@ function load_page_content( src, subtitle )
   load_content( "page-content", src );
 }
 
+function load_page_overlay( src, title, subtitle )
+{ /* Replace the existing page content from the specified overlay
+   * "src" file, updating the page title, and subtitle, as may be
+   * appropriate.
+   */
+  if( title ) document.title = title;
+  load_page_content( src, subtitle );
+}
+
 function new_page( src, subtitle )
 { /* Create a new page display, starting from scratch; assign the
    * displayed title from the HTML document title attribute, adding
diff --git a/terms.html b/terms.html
new file mode 100644 (file)
index 0000000..d7461d9
--- /dev/null
@@ -0,0 +1,155 @@
+<!DOCTYPE HTML><!--
+ *
+ * terms.html
+ *
+ * General description of the licensing terms which are applicable to
+ * the use of MinGW.org products, and resources.
+ *
+ *
+ * $Id$
+ *
+ * Written by Keith Marshall <keith@users.osdn.me>
+ * Copyright (C) 2020, MinGW.org Project
+ *
+ *
+ * Redistribution and use in source and 'compiled' forms (SGML, HTML,
+ * PDF, PostScript, RTF, etc) with or without modification, are permitted
+ * provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer as
+ *    the first lines of this file, unmodified.
+ *
+ * 2. Redistributions in compiled form (transformed to other DTDs,
+ *    converted to PDF, PostScript, RTF and other formats) must
+ *    reproduce the above copyright notice, this list of conditions
+ *    and the following disclaimer in the documentation and/or other
+ *    materials provided with the distribution.
+ *
+ * THIS DOCUMENTATION IS PROVIDED BY THE MINGW.ORG PROJECT "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE MINGW.ORG PROJECT, OR
+ * ITS CONTRIBUTORS, BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ *
+ * Note: this page assumes browser support for the following numeric
+ * HTML entity codes:
+ *
+ *    &#8209;  non-breaking hyphen
+ *    &#8217;  typographic apostrophe
+ *    &#8220;   left (opening) typographic double quote
+ *    &#8221;   right (closing) typographic double quote
+ *
+-->
+<div class="h3-numbered">
+<p>Each of the various packages,
+which are distributed by MinGW.org,
+is governed by its own individual copyright and licensing terms.
+In summary, the applicable terms for the web&#8209;site content,
+and for the most commonly deployed packages,
+are as follows:&mdash;
+</p>
+<h3>MinGW.org Web&#8209;Site Content</h3>
+<p>Publication of the content of this MinGW.org web&#8209;site is
+subject to the terms of
+<a href="#"
+onclick="load_page_content('fdl.html','The MinGW Free Documentation Licence')"
+>this MinGW specific adaptation</a>
+of the
+<a rel="noopener noreferrer" target="_blank"
+href="https://www.freebsd.org/copyright/freebsd-doc-license.html"
+>FreeBSD Documentation Licence</a>.
+</p>
+<h3>MinGW.org Windows System Libraries (WSL)</h3>
+<p>Not to be confused with
+Microsoft&#8217;s &#8220;Windows Subsystem for Linux&#8221;,
+(MinGW.org&#8217;s adoption of the &#8220;WSL&#8221; acronym
+preceded Microsoft&#8217;s by several years),
+the &#8220;MinGW.org Windows System Libraries&#8221; comprise:&mdash;
+</p>
+<ul>
+<li>the &#8220;MinGW C&#8209;Runtime Library&#8221; (mingwrt), and</li>
+<li>the &#8220;MinGW Windows API&#8221; (w32api).</li>
+</ul>
+<p>Prior to version 4.0,
+these constituents of MinGW.org WSL were released independently,
+with no synchronization of their version numbers.
+There is a commonly held misconception,
+that both of these constituent packages
+were released into the public domain,
+and thus, were exempt from licensing and copyright considerations.
+However,
+while it is true that all
+<em>direct</em> contributors to MinGW agreed to waive copyright,
+it is <em>not</em>,
+and <em>never has been</em> true
+that the entire code base is exempt from copyright;
+in fact,
+substantial portions of the code base have been acquired from third parties,
+who retain copyright,
+and have granted permission to redistribute under licences such as BSD,
+or MIT/X11, so while parts of the code base <em>may</em> be public domain,
+the work as a whole must be considered to be licensed under
+a hybrid collection of BSD, MIT/X11,
+and a few other compatible (generally very permissive) licences.
+</p>
+<p>From version 4.0 onwards,
+the two constituents of the &#8220;MinGW.org Windows System Libraries&#8221;
+have been published as an integrated package set;
+(version 4.x blurred the distinction between the two constituents;
+version 5.x reinstated it,
+but the two constituents are <em>always</em> released concurrently,
+with <em>strictly</em> synchronized version numbers).
+Additionally,
+from the release of version 4.0,
+and on account of the inadmissibility of the very concept of public domain,
+in certain legal jurisdictions,
+the entire &#8220;MinGW.org Windows System Libraries&#8221; suite
+has been published under the terms of
+<a rel="noopener noreferrer" target="_blank"
+href="http://git.osdn.net/view?p=mingw/mingw-org-wsl.git;a=blob;f=LICENSE;
+h=d5640dc6377de4b4e9af1a472b0be5999b885a71;hb=HEAD"
+>the MIT/X11 Licence</a>,
+(except in the case of those elements of the code base to which
+some alternative <em>explicit</em> licence was already applicable;
+such elements retain their original licensing terms).
+</p>
+<h3>MinGW.org WSL Code Profiling Extensions</h3>
+<p>The code profiling extensions,
+which are included within
+the &#8220;MinGW.org Windows System Libraries&#8221; distribution,
+are licensed under the terms of the
+<a rel="noopener noreferrer" target="_blank"
+ href="http://www.gnu.org/licenses/old-licenses/gpl-2.0.html"
+>GNU General Public Licence (GPL), Version&#8209;2</a>.
+If you use these profiling extensions within your code,
+then your application becomes subject to the terms of the GPL&#8209;v2.
+</p>
+<h3>MinGW Distributions of GNU Packages</h3>
+<p>Other than the
+&#8220;MinGW.org Windows System Libraries&#8221;,
+the principal packages which comprise the MinGW distribution,
+including the &#8220;GNU Compiler Collection (GCC)&#8221;,
+the &#8220;GNU Binary Utilities (binutils)&#8221;,
+the &#8220;GNU Debugger (GDB)&#8221;,
+and &#8220;GNU Make&#8221;,
+are derived from upstream GNU packages;
+as such, they are distributed under the terms of the
+<a rel="noopener noreferrer" target="_blank"
+ href="http://www.gnu.org/licenses/licenses.html#GPL"
+>GNU General Public Licence</a>;
+(in the case of more recent releases,
+this will normally be GPL&#8209;v3;
+earlier releases may often still be under GPL&#8209;v2).
+</p>
+</div>
+
+<!-- $RCSfile$: end of file -->