Bug 1562642 - Part 4 - Add missing MPL2 headers in tools r=ahal
authorSylvestre Ledru <sledru@mozilla.com>
Wed, 10 Jul 2019 19:12:07 +0000
changeset 482243 24f264c75fcdbc3d53856ca83fee6bd9bff39695
parent 482241 4295df39798a266e463b3e133c6f2a0498cb2cac
child 482244 cf81db9c88874fd53345b64885bcf6a25b39810c
push id36272
push usercsabou@mozilla.com
push dateThu, 11 Jul 2019 04:03:34 +0000
treeherdermozilla-central@925e5936677c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersahal
bugs1562642
milestone70.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1562642 - Part 4 - Add missing MPL2 headers in tools r=ahal Differential Revision: https://phabricator.services.mozilla.com/D37579
tools/lint/cpp/__init__.py
tools/lint/docs/conf.py
tools/lint/eslint/eslint-plugin-mozilla/lib/configs/recommended.js
tools/lint/eslint/eslint-plugin-mozilla/reporters/mozilla-format.js
tools/lint/python/__init__.py
tools/lint/wpt/__init__.py
tools/profiler/rust-helper/src/compact_symbol_table.rs
tools/profiler/rust-helper/src/elf.rs
tools/profiler/rust-helper/src/lib.rs
tools/quitter/background.js
tools/quitter/parent.js
tools/tryselect/__init__.py
tools/tryselect/selectors/__init__.py
tools/tryselect/selectors/chooser/static/filter.js
tools/tryselect/selectors/chooser/static/select.js
tools/tryselect/selectors/chooser/templates/chooser.html
tools/tryselect/selectors/chooser/templates/close.html
tools/tryselect/selectors/chooser/templates/layout.html
tools/tryselect/util/__init__.py
tools/update-verify/python/util/__init__.py
tools/update-verify/python/util/commands.py
tools/update-verify/release/compare-directories.py
tools/update-verify/release/replace-updater-certs.py
tools/update-verify/scripts/chunked-verify.py
--- a/tools/lint/cpp/__init__.py
+++ b/tools/lint/cpp/__init__.py
@@ -0,0 +1,3 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this file,
+# You can obtain one at http://mozilla.org/MPL/2.0/.
--- a/tools/lint/docs/conf.py
+++ b/tools/lint/docs/conf.py
@@ -1,8 +1,12 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this file,
+# You can obtain one at http://mozilla.org/MPL/2.0/.
+
 # -*- coding: utf-8 -*-
 #
 # mozlint documentation build configuration file, created by
 # sphinx-quickstart on Fri Nov 27 17:38:49 2015.
 #
 # This file is execfile()d with the current directory set to its
 # containing dir.
 
--- a/tools/lint/eslint/eslint-plugin-mozilla/lib/configs/recommended.js
+++ b/tools/lint/eslint/eslint-plugin-mozilla/lib/configs/recommended.js
@@ -1,8 +1,12 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this file,
+ * You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 "use strict";
 
 /**
  * The configuration is based on eslint:recommended config. The details for all
  * the ESLint rules, and which ones are in the recommended configuration can
  * be found here:
  *
  * https://eslint.org/docs/rules/
--- a/tools/lint/eslint/eslint-plugin-mozilla/reporters/mozilla-format.js
+++ b/tools/lint/eslint/eslint-plugin-mozilla/reporters/mozilla-format.js
@@ -1,8 +1,12 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this file,
+ * You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 /**
  * This file outputs the format that treeherder requires. If we integrate
  * these tests with ./mach, then we may replace this with a json handler within
  * mach itself.
  */
 
 "use strict";
 
--- a/tools/lint/python/__init__.py
+++ b/tools/lint/python/__init__.py
@@ -0,0 +1,3 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this file,
+# You can obtain one at http://mozilla.org/MPL/2.0/.
--- a/tools/lint/wpt/__init__.py
+++ b/tools/lint/wpt/__init__.py
@@ -0,0 +1,3 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this file,
+# You can obtain one at http://mozilla.org/MPL/2.0/.
--- a/tools/profiler/rust-helper/src/compact_symbol_table.rs
+++ b/tools/profiler/rust-helper/src/compact_symbol_table.rs
@@ -1,8 +1,12 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this file,
+ * You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 use std::collections::HashMap;
 use thin_vec::ThinVec;
 
 #[repr(C)]
 pub struct CompactSymbolTable {
     pub addr: ThinVec<u32>,
     pub index: ThinVec<u32>,
     pub buffer: ThinVec<u8>,
--- a/tools/profiler/rust-helper/src/elf.rs
+++ b/tools/profiler/rust-helper/src/elf.rs
@@ -1,8 +1,12 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this file,
+ * You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 use compact_symbol_table::CompactSymbolTable;
 use object::{ElfFile, Object, SymbolKind, Uuid};
 use std::collections::HashMap;
 use std::cmp;
 use goblin::elf;
 
 const UUID_SIZE: usize = 16;
 const PAGE_SIZE: usize = 4096;
--- a/tools/profiler/rust-helper/src/lib.rs
+++ b/tools/profiler/rust-helper/src/lib.rs
@@ -1,8 +1,12 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this file,
+ * You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 extern crate memmap;
 extern crate thin_vec;
 
 #[cfg(feature = "parse_elf")]
 extern crate object;
 #[cfg(feature = "parse_elf")]
 extern crate goblin;
 
--- a/tools/quitter/background.js
+++ b/tools/quitter/background.js
@@ -1,8 +1,12 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this file,
+ * You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 "use strict";
 
 /* eslint-env webextensions */
 
 browser.runtime.onMessage.addListener(msg => {
   if (msg === "quit") {
     browser.quitter.quit();
   }
--- a/tools/quitter/parent.js
+++ b/tools/quitter/parent.js
@@ -1,8 +1,12 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this file,
+ * You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 "use strict";
 
 /* globals ExtensionAPI */
 
 const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
 
 this.quitter = class extends ExtensionAPI {
   getAPI(context) {
--- a/tools/tryselect/__init__.py
+++ b/tools/tryselect/__init__.py
@@ -0,0 +1,3 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this file,
+# You can obtain one at http://mozilla.org/MPL/2.0/.
--- a/tools/tryselect/selectors/__init__.py
+++ b/tools/tryselect/selectors/__init__.py
@@ -0,0 +1,3 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this file,
+# You can obtain one at http://mozilla.org/MPL/2.0/.
--- a/tools/tryselect/selectors/chooser/static/filter.js
+++ b/tools/tryselect/selectors/chooser/static/filter.js
@@ -1,8 +1,12 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this file,
+ * You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 const selection = $("#selection")[0];
 const count = $("#selection-count")[0];
 const pluralize = (count, noun, suffix = "s") =>
   `${count} ${noun}${count !== 1 ? suffix : ""}`;
 
 var selected = [];
 
 var updateLabels = () => {
--- a/tools/tryselect/selectors/chooser/static/select.js
+++ b/tools/tryselect/selectors/chooser/static/select.js
@@ -1,8 +1,12 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this file,
+ * You can obtain one at http://mozilla.org/MPL/2.0/. */
+
 const labels = $("label.multiselect");
 const boxes = $("label.multiselect input:checkbox");
 var lastChecked = {};
 
 // implements shift+click
 labels.click(function(e) {
   if (e.target.tagName === "INPUT") {
     return;
--- a/tools/tryselect/selectors/chooser/templates/chooser.html
+++ b/tools/tryselect/selectors/chooser/templates/chooser.html
@@ -1,8 +1,12 @@
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+   - License, v. 2.0. If a copy of the MPL was not distributed with this file,
+   - You can obtain one at http://mozilla.org/MPL/2.0/. -->
+
 {% extends 'layout.html' %}
 {% block content %}
 <div class="container-fluid">
   <div class="row">
     <div class="col-8">
       <div class="form-group form-inline">
         <span class="col-form-label col-md-2 pt-1">Build Type</span>
         <div class="form-check form-check-inline">
--- a/tools/tryselect/selectors/chooser/templates/close.html
+++ b/tools/tryselect/selectors/chooser/templates/close.html
@@ -1,8 +1,12 @@
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+   - License, v. 2.0. If a copy of the MPL was not distributed with this file,
+   - You can obtain one at http://mozilla.org/MPL/2.0/. -->
+
 {% extends 'layout.html' %}
 {% block content %}
 <div class="container-fluid">
   <div class="alert alert-primary" role="alert">
     You may now close this page.
   </div>
 </div>
 {% endblock %}
--- a/tools/tryselect/selectors/chooser/templates/layout.html
+++ b/tools/tryselect/selectors/chooser/templates/layout.html
@@ -1,8 +1,12 @@
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+   - License, v. 2.0. If a copy of the MPL was not distributed with this file,
+   - You can obtain one at http://mozilla.org/MPL/2.0/. -->
+
 <html>
     <head>
         <meta charset="utf-8">
         <title>Try Chooser Enhanced</title>
         <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">
         <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
     </head>
     <body>
--- a/tools/tryselect/util/__init__.py
+++ b/tools/tryselect/util/__init__.py
@@ -0,0 +1,3 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this file,
+# You can obtain one at http://mozilla.org/MPL/2.0/.
--- a/tools/update-verify/python/util/__init__.py
+++ b/tools/update-verify/python/util/__init__.py
@@ -0,0 +1,3 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this file,
+# You can obtain one at http://mozilla.org/MPL/2.0/.
--- a/tools/update-verify/python/util/commands.py
+++ b/tools/update-verify/python/util/commands.py
@@ -1,8 +1,12 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this file,
+# You can obtain one at http://mozilla.org/MPL/2.0/.
+
 """Functions for running commands"""
 
 from __future__ import absolute_import, print_function
 
 import subprocess
 import os
 import time
 import logging
--- a/tools/update-verify/release/compare-directories.py
+++ b/tools/update-verify/release/compare-directories.py
@@ -1,9 +1,12 @@
 #! /usr/bin/env python
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this file,
+# You can obtain one at http://mozilla.org/MPL/2.0/.
 
 from __future__ import absolute_import, print_function
 
 import argparse
 import difflib
 import hashlib
 import logging
 import os
--- a/tools/update-verify/release/replace-updater-certs.py
+++ b/tools/update-verify/release/replace-updater-certs.py
@@ -1,8 +1,12 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this file,
+# You can obtain one at http://mozilla.org/MPL/2.0/.
+
 from __future__ import absolute_import, print_function
 
 import os.path
 import sys
 
 cert_dir = sys.argv[1]
 # Read twice, because strings cannot be copied
 updater_data = open(sys.argv[2], "rb").read()
--- a/tools/update-verify/scripts/chunked-verify.py
+++ b/tools/update-verify/scripts/chunked-verify.py
@@ -1,9 +1,12 @@
 #!/usr/bin/env python
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this file,
+# You can obtain one at http://mozilla.org/MPL/2.0/.
 
 from __future__ import absolute_import, print_function
 
 import logging
 import os
 from os import path
 import sys
 from tempfile import mkstemp