diff options
133 files changed, 169 insertions, 1 deletions
diff --git a/.clang-format b/.clang-format index a08ef5c5..deed826d 100644 --- a/.clang-format +++ b/.clang-format @@ -1,5 +1,6 @@ --- # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2018 Philip Chimento <philip.chimento@gmail.com> # Global Options Go Here IndentWidth: 4 ColumnLimit: 80 diff --git a/.eslintignore b/.eslintignore index 6e5903ab..9ee950d3 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,4 +1,5 @@ # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2018 Claudio André <claudioandre.br@gmail.com> installed-tests/js/jasmine.js installed-tests/js/modules/badOverrides/WarnLib.js diff --git a/.eslintrc.yml b/.eslintrc.yml index 3ce7d7c0..9edb5641 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -1,5 +1,6 @@ --- # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2018 Claudio André <claudioandre.br@gmail.com> env: es6: true extends: 'eslint:recommended' diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 23156089..399083d7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,5 @@ # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2017 Claudio André <claudioandre.br@gmail.com> --- include: - remote: 'https://gitlab.freedesktop.org/freedesktop/ci-templates/-/raw/7ea696055e322cc7aa4bcbe5422b56a198c4bdff/templates/alpine.yml' diff --git a/CPPLINT.cfg b/CPPLINT.cfg index 8862d19c..31fd530d 100644 --- a/CPPLINT.cfg +++ b/CPPLINT.cfg @@ -1,4 +1,5 @@ # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2018 Philip Chimento <philip.chimento@gmail.com> # This is the toplevel CPPLINT.cfg file set noparent diff --git a/build/choose-tests-locale.sh b/build/choose-tests-locale.sh index b0ebe1e3..41cfb958 100755 --- a/build/choose-tests-locale.sh +++ b/build/choose-tests-locale.sh @@ -1,5 +1,6 @@ #!/bin/sh # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2019 Endless Mobile, Inc. if ! which locale > /dev/null; then exit 1 diff --git a/build/compile-gschemas.py b/build/compile-gschemas.py index 9cd5ad58..f1800767 100644 --- a/build/compile-gschemas.py +++ b/build/compile-gschemas.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2019 Philip Chimento <philip.chimento@gmail.com> import os import subprocess diff --git a/build/symlink-gjs.py b/build/symlink-gjs.py index d8eac68e..8f4a60c5 100644 --- a/build/symlink-gjs.py +++ b/build/symlink-gjs.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2019 Chun-wei Fan <fanchunwei@src.gnome.org> import os import shutil diff --git a/examples/clutter.js b/examples/clutter.js index 7174e080..a9886cb0 100644 --- a/examples/clutter.js +++ b/examples/clutter.js @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2008 litl, LLC const Clutter = imports.gi.Clutter; diff --git a/examples/dbus-client.js b/examples/dbus-client.js index 5590cc5b..a59d1ff5 100644 --- a/examples/dbus-client.js +++ b/examples/dbus-client.js @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2020 Andy Holmes <andrew.g.r.holmes@gmail.com> 'use strict'; diff --git a/examples/dbus-service.js b/examples/dbus-service.js index 5daf567f..74d6689b 100644 --- a/examples/dbus-service.js +++ b/examples/dbus-service.js @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2020 Andy Holmes <andrew.g.r.holmes@gmail.com> 'use strict'; diff --git a/examples/gettext.js b/examples/gettext.js index 360bfdb2..494c6947 100644 --- a/examples/gettext.js +++ b/examples/gettext.js @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2009 Red Hat, Inc. imports.gi.versions.Gtk = '3.0'; const Gettext = imports.gettext; diff --git a/examples/gio-cat.js b/examples/gio-cat.js index d0f51695..2d083c3c 100644 --- a/examples/gio-cat.js +++ b/examples/gio-cat.js @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2010 litl, LLC const ByteArray = imports.byteArray; const GLib = imports.gi.GLib; diff --git a/examples/glistmodel.js b/examples/glistmodel.js index 8a2a758f..ab7ba433 100644 --- a/examples/glistmodel.js +++ b/examples/glistmodel.js @@ -1,5 +1,6 @@ /* exported GjsListStore */ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2020 Andy Holmes <andrew.g.r.holmes@gmail.com> 'use strict'; diff --git a/examples/gtk-application.js b/examples/gtk-application.js index f60e4690..2cc5b956 100644 --- a/examples/gtk-application.js +++ b/examples/gtk-application.js @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2017 Andy Holmes <andrew.g.r.holmes@gmail.com> // See the note about Application.run() at the bottom of the script const System = imports.system; diff --git a/examples/gtk.js b/examples/gtk.js index 20df833d..8aa8b4e3 100644 --- a/examples/gtk.js +++ b/examples/gtk.js @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2008 litl, LLC // Include this in case both GTK3 and GTK4 installed, otherwise an exception // will be thrown diff --git a/examples/http-client.js b/examples/http-client.js index c68f409b..29effb31 100644 --- a/examples/http-client.js +++ b/examples/http-client.js @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2019 Sonny Piers <sonny@fastmail.net> // This is a simple example of a HTTP client in Gjs using libsoup // https://developer.gnome.org/libsoup/stable/libsoup-client-howto.html diff --git a/examples/http-server.js b/examples/http-server.js index 48ba0a9c..43ddf4c6 100644 --- a/examples/http-server.js +++ b/examples/http-server.js @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2010 litl, LLC // This is a simple example of a HTTP server in Gjs using libsoup diff --git a/examples/webkit.js b/examples/webkit.js index ddaac022..adf809f4 100644 --- a/examples/webkit.js +++ b/examples/webkit.js @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2008 litl, LLC imports.gi.versions.Gtk = '3.0'; imports.gi.versions.WebKit2 = '4.0'; diff --git a/examples/websocket-client.js b/examples/websocket-client.js index a9fe4dde..7de93e1a 100644 --- a/examples/websocket-client.js +++ b/examples/websocket-client.js @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2019 Sonny Piers <sonny@fastmail.net> // This is an example of a WebSocket client in Gjs using libsoup // https://developer.gnome.org/libsoup/stable/libsoup-2.4-WebSockets.html diff --git a/gi/gjs_gi_probes.d b/gi/gjs_gi_probes.d index 9e2cacaa..d0e4300c 100644 --- a/gi/gjs_gi_probes.d +++ b/gi/gjs_gi_probes.d @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: MIT OR LGPL-2.0-or-later + * SPDX-FileCopyrightText: 2010 Red Hat, Inc. */ provider gjs { @@ -1,5 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- SPDX-License-Identifier: MIT OR LGPL-2.0-or-later --> +<!-- SPDX-FileCopyrightText: 2011-2020 Current and former GJS maintainers --> <Project xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:foaf="http://xmlns.com/foaf/0.1/" diff --git a/gjs/gjs.stp.in b/gjs/gjs.stp.in index 34bd99ce..d0b51ad3 100644 --- a/gjs/gjs.stp.in +++ b/gjs/gjs.stp.in @@ -1,5 +1,6 @@ /* * SPDX-License-Identifier: MIT OR LGPL-2.0-or-later + * SPDX-FileCopyrightText: 2010 Red Hat, Inc. */ probe gjs.object_wrapper_new = process("@EXPANDED_LIBDIR@/libgjs-gi.so.0.0.0").mark("object__wrapper__new") diff --git a/gjs/stack.cpp b/gjs/stack.cpp index a6ad8539..762890f9 100644 --- a/gjs/stack.cpp +++ b/gjs/stack.cpp @@ -1,5 +1,6 @@ /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; -*- */ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2009 Red Hat, Inc. #include <config.h> diff --git a/installed-tests/debugger-test.sh b/installed-tests/debugger-test.sh index b5a0bee0..08b3661f 100755 --- a/installed-tests/debugger-test.sh +++ b/installed-tests/debugger-test.sh @@ -1,5 +1,6 @@ #!/bin/sh # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2018 Philip Chimento <philip.chimento@gmail.com> if test "$GJS_USE_UNINSTALLED_FILES" = "1"; then gjs="$TOP_BUILDDIR/gjs-console" diff --git a/installed-tests/debugger.test.in b/installed-tests/debugger.test.in index c6c51de8..5f45cf8e 100644 --- a/installed-tests/debugger.test.in +++ b/installed-tests/debugger.test.in @@ -1,4 +1,5 @@ # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2018 Philip Chimento <philip.chimento@gmail.com> [Test] Type=session diff --git a/installed-tests/debugger/.eslintrc.yml b/installed-tests/debugger/.eslintrc.yml index 324367d4..5bd67acb 100644 --- a/installed-tests/debugger/.eslintrc.yml +++ b/installed-tests/debugger/.eslintrc.yml @@ -1,4 +1,5 @@ --- # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2018 Philip Chimento <philip.chimento@gmail.com> rules: no-debugger: 'off' diff --git a/installed-tests/extra/gjs.supp b/installed-tests/extra/gjs.supp index fd74f546..76dfbdfb 100644 --- a/installed-tests/extra/gjs.supp +++ b/installed-tests/extra/gjs.supp @@ -1,4 +1,5 @@ # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2008 litl, LLC # Valgrind suppressions file for GJS # This is intended to be used in addition to GLib's glib.supp file. diff --git a/installed-tests/extra/lsan.supp b/installed-tests/extra/lsan.supp index 52340674..91cadbb3 100644 --- a/installed-tests/extra/lsan.supp +++ b/installed-tests/extra/lsan.supp @@ -1,4 +1,5 @@ # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2017 Endless Mobile, Inc. # SpiderMonkey leaks a mutex for each GC helper thread. leak:js::HelperThread::threadLoop diff --git a/installed-tests/js/.eslintrc.yml b/installed-tests/js/.eslintrc.yml index d4ab1a80..a9c37e58 100644 --- a/installed-tests/js/.eslintrc.yml +++ b/installed-tests/js/.eslintrc.yml @@ -1,5 +1,6 @@ --- # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2018 Philip Chimento <philip.chimento@gmail.com> env: jasmine: true rules: diff --git a/installed-tests/js/complex3.ui b/installed-tests/js/complex3.ui index 9215a0c2..a9ed8527 100644 --- a/installed-tests/js/complex3.ui +++ b/installed-tests/js/complex3.ui @@ -1,5 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- SPDX-License-Identifier: MIT OR LGPL-2.0-or-later --> +<!-- SPDX-FileCopyrightText: 2014 Jonas Danielsson <jonas@threetimestwo.org> --> <interface> <template class="Gjs_MyComplexGtkSubclassFromResource" parent="GtkGrid"> <property name="margin_top">10</property> diff --git a/installed-tests/js/complex4.ui b/installed-tests/js/complex4.ui index b3c9e0ed..77f43a65 100644 --- a/installed-tests/js/complex4.ui +++ b/installed-tests/js/complex4.ui @@ -1,5 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- SPDX-License-Identifier: MIT OR LGPL-2.0-or-later --> +<!-- SPDX-FileCopyrightText: 2014 Jonas Danielsson <jonas@threetimestwo.org> --> <interface> <template class="Gjs_MyComplexGtkSubclassFromResource" parent="GtkGrid"> <property name="margin_top">10</property> diff --git a/installed-tests/js/jsunit.gresources.xml b/installed-tests/js/jsunit.gresources.xml index 4e6372cf..674e342f 100644 --- a/installed-tests/js/jsunit.gresources.xml +++ b/installed-tests/js/jsunit.gresources.xml @@ -1,5 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- SPDX-License-Identifier: MIT OR LGPL-2.0-or-later --> +<!-- SPDX-FileCopyrightText: 2014 Jonas Danielsson <jonas@threetimestwo.org> --> <gresources> <gresource prefix="/org/gjs/jsunit"> <file preprocess="xml-stripblanks">complex3.ui</file> diff --git a/installed-tests/js/meson.build b/installed-tests/js/meson.build index 3ea141e0..dae48e07 100644 --- a/installed-tests/js/meson.build +++ b/installed-tests/js/meson.build @@ -1,4 +1,6 @@ # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2019 Philip Chimento <philip.chimento@gmail.com> +# SPDX-FileCopyrightText: 2019 Chun-wei Fan <fanchunwei@src.gnome.org> ### Jasmine tests ############################################################## diff --git a/installed-tests/js/minijasmine.js b/installed-tests/js/minijasmine.js index cbf94860..43d7d242 100644 --- a/installed-tests/js/minijasmine.js +++ b/installed-tests/js/minijasmine.js @@ -1,5 +1,6 @@ #!/usr/bin/env gjs // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2016 Philip Chimento <philip.chimento@gmail.com> const GLib = imports.gi.GLib; diff --git a/installed-tests/js/modules/alwaysThrows.js b/installed-tests/js/modules/alwaysThrows.js index ed118ce9..70500ee2 100644 --- a/installed-tests/js/modules/alwaysThrows.js +++ b/installed-tests/js/modules/alwaysThrows.js @@ -1,4 +1,4 @@ // line 0 // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later -// line 2 +// SPDX-FileCopyrightText: 2008 litl, LLC throw new Error('This is an error that always happens on line 3'); diff --git a/installed-tests/js/modules/badOverrides/.eslintrc.yml b/installed-tests/js/modules/badOverrides/.eslintrc.yml index bef63f79..b1c10f5d 100644 --- a/installed-tests/js/modules/badOverrides/.eslintrc.yml +++ b/installed-tests/js/modules/badOverrides/.eslintrc.yml @@ -1,5 +1,6 @@ --- # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2018 Philip Chimento <philip.chimento@gmail.com> rules: no-throw-literal: 'off' # these are intended to be bad code no-unused-vars: diff --git a/installed-tests/js/modules/badOverrides/GIMarshallingTests.js b/installed-tests/js/modules/badOverrides/GIMarshallingTests.js index bd7adaef..e3f777a2 100644 --- a/installed-tests/js/modules/badOverrides/GIMarshallingTests.js +++ b/installed-tests/js/modules/badOverrides/GIMarshallingTests.js @@ -1,4 +1,5 @@ // Sabotage the import of imports.gi.GIMarshallingTests! // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2016 Philip Chimento <philip.chimento@gmail.com> throw '💩'; diff --git a/installed-tests/js/modules/badOverrides/Gio.js b/installed-tests/js/modules/badOverrides/Gio.js index 2313b23e..dcf0e34e 100644 --- a/installed-tests/js/modules/badOverrides/Gio.js +++ b/installed-tests/js/modules/badOverrides/Gio.js @@ -1,4 +1,5 @@ // Sabotage the import of imports.gi.Gio! // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2016 Philip Chimento <philip.chimento@gmail.com> var _init = '💩'; diff --git a/installed-tests/js/modules/badOverrides/Regress.js b/installed-tests/js/modules/badOverrides/Regress.js index c693206e..7ce4878b 100644 --- a/installed-tests/js/modules/badOverrides/Regress.js +++ b/installed-tests/js/modules/badOverrides/Regress.js @@ -1,5 +1,6 @@ // Sabotage the import of imports.gi.Regress! // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2016 Philip Chimento <philip.chimento@gmail.com> function _init() { throw '💩'; diff --git a/installed-tests/js/modules/badOverrides/WarnLib.js b/installed-tests/js/modules/badOverrides/WarnLib.js index 74a2008e..8ab39deb 100644 --- a/installed-tests/js/modules/badOverrides/WarnLib.js +++ b/installed-tests/js/modules/badOverrides/WarnLib.js @@ -1,4 +1,5 @@ // Sabotage the import of imports.gi.WarnLib! // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2016 Philip Chimento <philip.chimento@gmail.com> k$^s^%$#^*($%jdghdsfjkgd diff --git a/installed-tests/js/modules/foobar.js b/installed-tests/js/modules/foobar.js index 7e27c619..9f8fbae9 100644 --- a/installed-tests/js/modules/foobar.js +++ b/installed-tests/js/modules/foobar.js @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2008 litl, LLC // simple test module (used by testImporter.js) diff --git a/installed-tests/js/modules/lexicalScope.js b/installed-tests/js/modules/lexicalScope.js index 2b359e50..d8112195 100644 --- a/installed-tests/js/modules/lexicalScope.js +++ b/installed-tests/js/modules/lexicalScope.js @@ -1,5 +1,6 @@ /* exported a, b, c */ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2017 Philip Chimento <philip.chimento@gmail.com> // Tests bindings in the global scope (var) and lexical environment (let, const) diff --git a/installed-tests/js/modules/modunicode.js b/installed-tests/js/modules/modunicode.js index 157d03ef..326139ab 100644 --- a/installed-tests/js/modules/modunicode.js +++ b/installed-tests/js/modules/modunicode.js @@ -1,5 +1,6 @@ /* exported uval */ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2012 Red Hat, Inc. // This file is written in UTF-8. diff --git a/installed-tests/js/modules/mutualImport/a.js b/installed-tests/js/modules/mutualImport/a.js index 3a60c0e3..f98f3325 100644 --- a/installed-tests/js/modules/mutualImport/a.js +++ b/installed-tests/js/modules/mutualImport/a.js @@ -1,5 +1,6 @@ /* exported getCount, getCountViaB, incrementCount */ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2008 Red Hat, Inc. const B = imports.mutualImport.b; diff --git a/installed-tests/js/modules/mutualImport/b.js b/installed-tests/js/modules/mutualImport/b.js index 082ec031..aabc1da8 100644 --- a/installed-tests/js/modules/mutualImport/b.js +++ b/installed-tests/js/modules/mutualImport/b.js @@ -1,5 +1,6 @@ /* exported getCount */ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2008 Red Hat, Inc. const A = imports.mutualImport.a; diff --git a/installed-tests/js/modules/overrides/.eslintrc.yml b/installed-tests/js/modules/overrides/.eslintrc.yml index c9faaeb6..8a5f8fd9 100644 --- a/installed-tests/js/modules/overrides/.eslintrc.yml +++ b/installed-tests/js/modules/overrides/.eslintrc.yml @@ -1,5 +1,6 @@ --- # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2018 Philip Chimento <philip.chimento@gmail.com> rules: no-unused-vars: - error diff --git a/installed-tests/js/modules/overrides/GIMarshallingTests.js b/installed-tests/js/modules/overrides/GIMarshallingTests.js index fbbba3aa..684878b2 100644 --- a/installed-tests/js/modules/overrides/GIMarshallingTests.js +++ b/installed-tests/js/modules/overrides/GIMarshallingTests.js @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2019 Philip Chimento <philip.chimento@gmail.com> function _init() { const GIMarshallingTests = this; diff --git a/installed-tests/js/modules/subA/subB/__init__.js b/installed-tests/js/modules/subA/subB/__init__.js index f14e5cac..2e9bd586 100644 --- a/installed-tests/js/modules/subA/subB/__init__.js +++ b/installed-tests/js/modules/subA/subB/__init__.js @@ -1,5 +1,6 @@ /* exported ImporterClass, testImporterFunction */ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2009 litl, LLC function testImporterFunction() { return '__init__ function tested'; diff --git a/installed-tests/js/modules/subA/subB/foobar.js b/installed-tests/js/modules/subA/subB/foobar.js index ebfb8c13..d442ec13 100644 --- a/installed-tests/js/modules/subA/subB/foobar.js +++ b/installed-tests/js/modules/subA/subB/foobar.js @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2008 litl, LLC // simple test module (used by testImporter.js) diff --git a/installed-tests/js/org.gnome.GjsTest.gschema.xml b/installed-tests/js/org.gnome.GjsTest.gschema.xml index abe09625..07bcd487 100644 --- a/installed-tests/js/org.gnome.GjsTest.gschema.xml +++ b/installed-tests/js/org.gnome.GjsTest.gschema.xml @@ -1,5 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- SPDX-License-Identifier: MIT OR LGPL-2.0-or-later --> +<!-- SPDX-FileCopyrightText: 2019 Philip Chimento <philip.chimento@gmail.com --> <schemalist> <schema id="org.gnome.GjsTest" path="/org/gnome/GjsTest/"> <key name="window-size" type="(ii)"> diff --git a/installed-tests/js/testByteArray.js b/installed-tests/js/testByteArray.js index 001f0fbe..10fcdaa1 100644 --- a/installed-tests/js/testByteArray.js +++ b/installed-tests/js/testByteArray.js @@ -1,4 +1,6 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2010 litl, LLC +// SPDX-FileCopyrightText: 2017 Philip Chimento <philip.chimento@gmail.com> const ByteArray = imports.byteArray; const {GIMarshallingTests, GLib} = imports.gi; diff --git a/installed-tests/js/testCairo.js b/installed-tests/js/testCairo.js index d1a9903d..67a7dc43 100644 --- a/installed-tests/js/testCairo.js +++ b/installed-tests/js/testCairo.js @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2010 litl, LLC imports.gi.versions.Gdk = '3.0'; imports.gi.versions.Gtk = '3.0'; diff --git a/installed-tests/js/testExceptions.js b/installed-tests/js/testExceptions.js index 2b8c57fe..0262e43c 100644 --- a/installed-tests/js/testExceptions.js +++ b/installed-tests/js/testExceptions.js @@ -1,4 +1,6 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2013 Red Hat, Inc. +// SPDX-FileCopyrightText: 2015 Endless Mobile, Inc. const {GIMarshallingTests, Gio, GLib, GObject} = imports.gi; diff --git a/installed-tests/js/testFormat.js b/installed-tests/js/testFormat.js index c11c3549..6e46e420 100644 --- a/installed-tests/js/testFormat.js +++ b/installed-tests/js/testFormat.js @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2013 Red Hat, Inc. const Format = imports.format; String.prototype.format = Format.format; diff --git a/installed-tests/js/testFundamental.js b/installed-tests/js/testFundamental.js index 17fb2d27..8a61f5f7 100644 --- a/installed-tests/js/testFundamental.js +++ b/installed-tests/js/testFundamental.js @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2013 Lionel Landwerlin <llandwerlin@gmail.com> const {GObject, Regress} = imports.gi; diff --git a/installed-tests/js/testGDBus.js b/installed-tests/js/testGDBus.js index 7317a665..6464d3d1 100644 --- a/installed-tests/js/testGDBus.js +++ b/installed-tests/js/testGDBus.js @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2008 litl, LLC const ByteArray = imports.byteArray; const {Gio, GjsPrivate, GLib} = imports.gi; diff --git a/installed-tests/js/testGIMarshalling.js b/installed-tests/js/testGIMarshalling.js index 48011544..dedea30a 100644 --- a/installed-tests/js/testGIMarshalling.js +++ b/installed-tests/js/testGIMarshalling.js @@ -1,4 +1,10 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2010 Collabora, Ltd. +// SPDX-FileCopyrightText: 2010 litl, LLC +// SPDX-FileCopyrightText: 2010 Giovanni Campagna <gcampagna@src.gnome.org> +// SPDX-FileCopyrightText: 2011 Red Hat, Inc. +// SPDX-FileCopyrightText: 2016 Endless Mobile, Inc. +// SPDX-FileCopyrightText: 2019 Philip Chimento <philip.chimento@gmail.com> // Load overrides for GIMarshallingTests imports.overrides.searchPath.unshift('resource:///org/gjs/jsunit/modules/overrides'); diff --git a/installed-tests/js/testGLib.js b/installed-tests/js/testGLib.js index e090c2f7..bd114292 100644 --- a/installed-tests/js/testGLib.js +++ b/installed-tests/js/testGLib.js @@ -1,4 +1,6 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2011 Giovanni Campagna <gcampagna@src.gnome.org> +// SPDX-FileCopyrightText: 2019 Philip Chimento <philip.chimento@gmail.com> const ByteArray = imports.byteArray; const GLib = imports.gi.GLib; diff --git a/installed-tests/js/testGObject.js b/installed-tests/js/testGObject.js index f71644cb..bbea88a0 100644 --- a/installed-tests/js/testGObject.js +++ b/installed-tests/js/testGObject.js @@ -1,4 +1,6 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2013 Giovanni Campagna <gcampagna@src.gnome.org> +// SPDX-FileCopyrightText: 2018 Red Hat, Inc. // This is where overrides in modules/core/overrides/GObject.js are tested, // except for the class machinery, interface machinery, and GObject.ParamSpec, diff --git a/installed-tests/js/testGObjectClass.js b/installed-tests/js/testGObjectClass.js index c88c8c10..efd9bcfb 100644 --- a/installed-tests/js/testGObjectClass.js +++ b/installed-tests/js/testGObjectClass.js @@ -1,5 +1,6 @@ // -*- mode: js; indent-tabs-mode: nil -*- // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2011 Giovanni Campagna <gcampagna@src.gnome.org> imports.gi.versions.Gtk = '3.0'; diff --git a/installed-tests/js/testGObjectDestructionAccess.js b/installed-tests/js/testGObjectDestructionAccess.js index bf72d3e2..ed1d6bb6 100644 --- a/installed-tests/js/testGObjectDestructionAccess.js +++ b/installed-tests/js/testGObjectDestructionAccess.js @@ -1,5 +1,6 @@ // -*- mode: js; indent-tabs-mode: nil -*- // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2017 Canonical, Ltd. imports.gi.versions.Gtk = '3.0'; diff --git a/installed-tests/js/testGObjectInterface.js b/installed-tests/js/testGObjectInterface.js index 0c98550d..6ae08e65 100644 --- a/installed-tests/js/testGObjectInterface.js +++ b/installed-tests/js/testGObjectInterface.js @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2015 Endless Mobile, Inc. const Gio = imports.gi.Gio; const GLib = imports.gi.GLib; diff --git a/installed-tests/js/testGTypeClass.js b/installed-tests/js/testGTypeClass.js index fe73c4bb..804f05d9 100644 --- a/installed-tests/js/testGTypeClass.js +++ b/installed-tests/js/testGTypeClass.js @@ -1,4 +1,6 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2012 Red Hat, Inc. +// SPDX-FileCopyrightText: 2013 Giovanni Campagna <gcampagna@src.gnome.org> // We use Gio to have some objects that we know exist const Gio = imports.gi.Gio; diff --git a/installed-tests/js/testGettext.js b/installed-tests/js/testGettext.js index ae129ff3..364652ff 100644 --- a/installed-tests/js/testGettext.js +++ b/installed-tests/js/testGettext.js @@ -1,5 +1,6 @@ // -*- mode: js; indent-tabs-mode: nil -*- // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2015 Endless Mobile, Inc. const Gettext = imports.gettext; diff --git a/installed-tests/js/testGio.js b/installed-tests/js/testGio.js index 721d47f8..865b0b78 100644 --- a/installed-tests/js/testGio.js +++ b/installed-tests/js/testGio.js @@ -1,4 +1,6 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2017 Patrick Griffis <tingping@tingping.se> +// SPDX-FileCopyrightText: 2019 Philip Chimento <philip.chimento@gmail.com> const {GLib, Gio, GObject} = imports.gi; diff --git a/installed-tests/js/testGtk3.js b/installed-tests/js/testGtk3.js index 009ee199..f3f6e724 100644 --- a/installed-tests/js/testGtk3.js +++ b/installed-tests/js/testGtk3.js @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2013 Giovanni Campagna <gcampagna@src.gnome.org> imports.gi.versions.Gtk = '3.0'; diff --git a/installed-tests/js/testGtk4.js b/installed-tests/js/testGtk4.js index 364cc6cc..af3fb75d 100644 --- a/installed-tests/js/testGtk4.js +++ b/installed-tests/js/testGtk4.js @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2013 Giovanni Campagna <gcampagna@src.gnome.org> imports.gi.versions.Gtk = '4.0'; diff --git a/installed-tests/js/testImporter.js b/installed-tests/js/testImporter.js index 1c13c7d3..b4bad76b 100644 --- a/installed-tests/js/testImporter.js +++ b/installed-tests/js/testImporter.js @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2008 litl, LLC describe('GI importer', function () { it('can import GI modules', function () { diff --git a/installed-tests/js/testIntrospection.js b/installed-tests/js/testIntrospection.js index 83961d8a..d9f4843f 100644 --- a/installed-tests/js/testIntrospection.js +++ b/installed-tests/js/testIntrospection.js @@ -1,4 +1,7 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2008, 2018 Red Hat, Inc. +// SPDX-FileCopyrightText: 2017 Philip Chimento <philip.chimento@gmail.com> +// SPDX-FileCopyrightText: 2020 Ole Jørgen Brønner <olejorgenb@yahoo.no> // Various tests having to do with how introspection is implemented in GJS diff --git a/installed-tests/js/testLang.js b/installed-tests/js/testLang.js index 71ec1a85..9f007702 100644 --- a/installed-tests/js/testLang.js +++ b/installed-tests/js/testLang.js @@ -1,5 +1,6 @@ /* eslint-disable no-restricted-properties */ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2008 litl, LLC // tests for imports.lang module // except for Lang.Class and Lang.Interface, which are tested in testLegacyClass diff --git a/installed-tests/js/testLegacyByteArray.js b/installed-tests/js/testLegacyByteArray.js index 25c1784e..e13ff368 100644 --- a/installed-tests/js/testLegacyByteArray.js +++ b/installed-tests/js/testLegacyByteArray.js @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2010 litl, LLC const ByteArray = imports.byteArray; const GIMarshallingTests = imports.gi.GIMarshallingTests; diff --git a/installed-tests/js/testLegacyClass.js b/installed-tests/js/testLegacyClass.js index 54a40d63..4ca1c242 100644 --- a/installed-tests/js/testLegacyClass.js +++ b/installed-tests/js/testLegacyClass.js @@ -1,6 +1,9 @@ // -*- mode: js; indent-tabs-mode: nil -*- /* eslint-disable no-restricted-properties */ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2011 Jasper St. Pierre <jstpierre@mecheye.net> +// SPDX-FileCopyrightText: 2011 Giovanni Campagna <gcampagna@src.gnome.org> +// SPDX-FileCopyrightText: 2015 Endless Mobile, Inc. const Lang = imports.lang; diff --git a/installed-tests/js/testLegacyGObject.js b/installed-tests/js/testLegacyGObject.js index cfae0b94..2f113cad 100644 --- a/installed-tests/js/testLegacyGObject.js +++ b/installed-tests/js/testLegacyGObject.js @@ -1,6 +1,8 @@ // -*- mode: js; indent-tabs-mode: nil -*- /* eslint-disable no-restricted-properties */ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2011 Giovanni Campagna <gcampagna@src.gnome.org> +// SPDX-FileCopyrightText: 2015 Endless Mobile, Inc. imports.gi.versions.Gtk = '3.0'; diff --git a/installed-tests/js/testLegacyGtk.js b/installed-tests/js/testLegacyGtk.js index 7766bedf..9e3827fb 100644 --- a/installed-tests/js/testLegacyGtk.js +++ b/installed-tests/js/testLegacyGtk.js @@ -1,6 +1,7 @@ // -*- mode: js; indent-tabs-mode: nil -*- /* eslint-disable no-restricted-properties */ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2013 Giovanni Campagna <gcampagna@src.gnome.org> imports.gi.versions.Gtk = '3.0'; diff --git a/installed-tests/js/testMainloop.js b/installed-tests/js/testMainloop.js index 21b1da3d..3ee10a71 100644 --- a/installed-tests/js/testMainloop.js +++ b/installed-tests/js/testMainloop.js @@ -1,5 +1,6 @@ /* eslint-disable no-restricted-properties */ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2008 litl, LLC const Mainloop = imports.mainloop; diff --git a/installed-tests/js/testNamespace.js b/installed-tests/js/testNamespace.js index 058aaba9..556623df 100644 --- a/installed-tests/js/testNamespace.js +++ b/installed-tests/js/testNamespace.js @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2012 Red Hat, Inc. const Regress = imports.gi.Regress; diff --git a/installed-tests/js/testPackage.js b/installed-tests/js/testPackage.js index 9f2a7a99..624e8521 100644 --- a/installed-tests/js/testPackage.js +++ b/installed-tests/js/testPackage.js @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2017 Red Hat, Inc. const Pkg = imports.package; diff --git a/installed-tests/js/testParamSpec.js b/installed-tests/js/testParamSpec.js index 4c25cf84..a3c45518 100644 --- a/installed-tests/js/testParamSpec.js +++ b/installed-tests/js/testParamSpec.js @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2011 Red Hat, Inc. const Regress = imports.gi.Regress; const GObject = imports.gi.GObject; diff --git a/installed-tests/js/testPrint.js b/installed-tests/js/testPrint.js index b96ab7aa..e6554d55 100644 --- a/installed-tests/js/testPrint.js +++ b/installed-tests/js/testPrint.js @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2020 Philip Chimento <philip.chimento@gmail.com> describe('print', function () { it('can be spied upon', function () { diff --git a/installed-tests/js/testRegress.js b/installed-tests/js/testRegress.js index 7985fb29..56296d94 100644 --- a/installed-tests/js/testRegress.js +++ b/installed-tests/js/testRegress.js @@ -1,4 +1,6 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2008 litl, LLC +// SPDX-FileCopyrightText: 2008 Red Hat, Inc. const Regress = imports.gi.Regress; diff --git a/installed-tests/js/testSignals.js b/installed-tests/js/testSignals.js index dda016c3..f10dcd6b 100644 --- a/installed-tests/js/testSignals.js +++ b/installed-tests/js/testSignals.js @@ -1,5 +1,6 @@ /* eslint-disable no-restricted-properties */ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2008 litl, LLC const GLib = imports.gi.GLib; const Lang = imports.lang; diff --git a/installed-tests/js/testSystem.js b/installed-tests/js/testSystem.js index 4bfc0269..9cd5b8ef 100644 --- a/installed-tests/js/testSystem.js +++ b/installed-tests/js/testSystem.js @@ -1,4 +1,9 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2013 Pavel Vasin <rat4vier@gmail.com> +// SPDX-FileCopyrightText: 2013 Giovanni Campagna <gcampagna@src.gnome.org> +// SPDX-FileCopyrightText: 2017 Claudio André <claudioandre.br@gmail.com> +// SPDX-FileCopyrightText: 2019 Philip Chimento <philip.chimento@gmail.com> +// SPDX-FileCopyrightText: 2019 Canonical, Ltd. const System = imports.system; const GObject = imports.gi.GObject; diff --git a/installed-tests/js/testTweener.js b/installed-tests/js/testTweener.js index 76803dee..12f807da 100644 --- a/installed-tests/js/testTweener.js +++ b/installed-tests/js/testTweener.js @@ -1,4 +1,6 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2008 litl, LLC +// SPDX-FileCopyrightText: 2009 Red Hat, Inc. const Tweener = imports.tweener.tweener; diff --git a/installed-tests/js/testWarnLib.js b/installed-tests/js/testWarnLib.js index de130fb8..21d0c618 100644 --- a/installed-tests/js/testWarnLib.js +++ b/installed-tests/js/testWarnLib.js @@ -1,4 +1,6 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2012 Red Hat, Inc. +// SPDX-FileCopyrightText: 2019 Philip Chimento <philip.chimento@gmail.com> // File with tests from the WarnLib-1.0.gir test suite from GI diff --git a/installed-tests/js/testself.js b/installed-tests/js/testself.js index d01b0b58..39d9c567 100644 --- a/installed-tests/js/testself.js +++ b/installed-tests/js/testself.js @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2008 litl, LLC describe('Test harness internal consistency', function () { it('', function () { diff --git a/installed-tests/meson.build b/installed-tests/meson.build index 3d328b53..d256f93a 100644 --- a/installed-tests/meson.build +++ b/installed-tests/meson.build @@ -1,4 +1,6 @@ # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2019 Philip Chimento <philip.chimento@gmail.com> +# SPDX-FileCopyrightText: 2019 Chun-wei Fan <fanchunwei@src.gnome.org> ### Installed tests ############################################################ diff --git a/installed-tests/minijasmine.test.in b/installed-tests/minijasmine.test.in index fe3531c9..317a7572 100644 --- a/installed-tests/minijasmine.test.in +++ b/installed-tests/minijasmine.test.in @@ -1,4 +1,5 @@ # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2016 Philip Chimento <philip.chimento@gmail.com> [Test] Type=session diff --git a/installed-tests/script.test.in b/installed-tests/script.test.in index 3604ca0c..96a91b88 100644 --- a/installed-tests/script.test.in +++ b/installed-tests/script.test.in @@ -1,4 +1,5 @@ # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2013 Red Hat, Inc. [Test] Type=session diff --git a/installed-tests/scripts/common.sh b/installed-tests/scripts/common.sh index d8b50017..b76140bd 100755 --- a/installed-tests/scripts/common.sh +++ b/installed-tests/scripts/common.sh @@ -1,5 +1,6 @@ #!/bin/sh # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2016 Philip Chimento <philip.chimento@gmail.com> if test "$GJS_USE_UNINSTALLED_FILES" = "1"; then gjs="$TOP_BUILDDIR/gjs-console" diff --git a/installed-tests/scripts/testCommandLine.sh b/installed-tests/scripts/testCommandLine.sh index 89a88595..2d679e72 100755 --- a/installed-tests/scripts/testCommandLine.sh +++ b/installed-tests/scripts/testCommandLine.sh @@ -1,5 +1,7 @@ #!/bin/sh # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2016 Endless Mobile, Inc. +# SPDX-FileCopyrightText: 2016 Philip Chimento <philip.chimento@gmail.com> if test "$GJS_USE_UNINSTALLED_FILES" = "1"; then gjs="$TOP_BUILDDIR/gjs-console" diff --git a/installed-tests/scripts/testExamples.sh b/installed-tests/scripts/testExamples.sh index ef22a98a..fb7ec9a7 100755 --- a/installed-tests/scripts/testExamples.sh +++ b/installed-tests/scripts/testExamples.sh @@ -1,5 +1,6 @@ #!/bin/bash # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2018 Claudio André <claudioandre.br@gmail.com> DIR="$( cd "$( dirname "${0}" )" && pwd )" source "${DIR}"/common.sh diff --git a/installed-tests/scripts/testWarnings.sh b/installed-tests/scripts/testWarnings.sh index ea820d97..621b19c2 100755 --- a/installed-tests/scripts/testWarnings.sh +++ b/installed-tests/scripts/testWarnings.sh @@ -1,5 +1,6 @@ #!/bin/sh # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2017 Philip Chimento <philip.chimento@gmail.com> if test "$GJS_USE_UNINSTALLED_FILES" = "1"; then gjs="$TOP_BUILDDIR/gjs-console" diff --git a/js.gresource.xml b/js.gresource.xml index c6b9210c..bdb6b665 100644 --- a/js.gresource.xml +++ b/js.gresource.xml @@ -1,5 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- SPDX-License-Identifier: MIT OR LGPL-2.0-or-later --> +<!-- SPDX-FileCopyrightText: 2014 Red Hat, Inc. --> <gresources> <gresource prefix="/org/gnome/gjs"> <!-- Script-based Modules --> @@ -1,4 +1,5 @@ /* SPDX-License-Identifier: MIT OR LGPL-2.0-or-later */ +/* SPDX-FileCopyrightText: 2019 Philip Chimento <philip.chimento@gmail.com> */ { global: gjs_*; diff --git a/libgjs.symbols b/libgjs.symbols index b713bdc0..7c43cfbb 100644 --- a/libgjs.symbols +++ b/libgjs.symbols @@ -1,4 +1,5 @@ # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2019 Philip Chimento <philip.chimento@gmail.com> # Workaround for https://github.com/mesonbuild/meson/issues/3047 # Linker scripts are not understood by the macOS linker, we need to use a diff --git a/meson.build b/meson.build index 2f0d0f00..64415c09 100644 --- a/meson.build +++ b/meson.build @@ -1,4 +1,6 @@ # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2019 Philip Chimento <philip.chimento@gmail.com> +# SPDX-FileCopyrightText: 2019 Chun-wei Fan <fanchunwei@src.gnome.org> project('gjs', 'cpp', 'c', version: '1.67.1', license: ['MIT', 'LGPL2+'], meson_version: '>= 0.52.0', diff --git a/meson_options.txt b/meson_options.txt index 6ac86a99..70890583 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -1,4 +1,5 @@ # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2019 Philip Chimento <philip.chimento@gmail.com> # Features diff --git a/modules/core/_format.js b/modules/core/_format.js index 47e52716..eb6f0319 100644 --- a/modules/core/_format.js +++ b/modules/core/_format.js @@ -1,5 +1,7 @@ // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2012 Red Hat, Inc. +// SPDX-FileCopyrightText: 2012 Giovanni Campagna <scampa.giovanni@gmail.com> /* exported vprintf */ diff --git a/modules/core/overrides/.eslintrc.yml b/modules/core/overrides/.eslintrc.yml index c9faaeb6..8a5f8fd9 100644 --- a/modules/core/overrides/.eslintrc.yml +++ b/modules/core/overrides/.eslintrc.yml @@ -1,5 +1,6 @@ --- # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2018 Philip Chimento <philip.chimento@gmail.com> rules: no-unused-vars: - error diff --git a/modules/core/overrides/cairo.js b/modules/core/overrides/cairo.js index b34130b2..1d3ba0f9 100644 --- a/modules/core/overrides/cairo.js +++ b/modules/core/overrides/cairo.js @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2018 Philip Chimento <philip.chimento@gmail.com> // This override adds the builtin Cairo bindings to imports.gi.cairo. // (It's confusing to have two incompatible ways to import Cairo.) diff --git a/modules/script/_bootstrap/.eslintrc.yml b/modules/script/_bootstrap/.eslintrc.yml index 4c8d6831..fda87577 100644 --- a/modules/script/_bootstrap/.eslintrc.yml +++ b/modules/script/_bootstrap/.eslintrc.yml @@ -1,5 +1,6 @@ --- # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2020 Evan Welsh <contact@evanwelsh.com> rules: require-jsdoc: "off" globals: diff --git a/modules/script/_bootstrap/coverage.js b/modules/script/_bootstrap/coverage.js index bf5d4468..1af74c42 100644 --- a/modules/script/_bootstrap/coverage.js +++ b/modules/script/_bootstrap/coverage.js @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2017 Philip Chimento <philip.chimento@gmail.com> (function (exports) { 'use strict'; diff --git a/modules/script/_bootstrap/debugger.js b/modules/script/_bootstrap/debugger.js index b5e0d340..ddf13ddc 100644 --- a/modules/script/_bootstrap/debugger.js +++ b/modules/script/_bootstrap/debugger.js @@ -1,6 +1,7 @@ /* -*- indent-tabs-mode: nil; js-indent-level: 4 -*- */ /* global debuggee, quit, loadNative, readline, uneval */ // SPDX-License-Identifier: MPL-2.0 +// SPDX-FileCopyrightText: 2011 Mozilla Foundation and contributors /* * This is a simple command-line debugger for GJS programs. It is based on diff --git a/modules/script/_bootstrap/default.js b/modules/script/_bootstrap/default.js index eb042d49..e31d80cb 100644 --- a/modules/script/_bootstrap/default.js +++ b/modules/script/_bootstrap/default.js @@ -1,4 +1,6 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2013 Red Hat, Inc. +// SPDX-FileCopyrightText: 2020 Evan Welsh <contact@evanwelsh.com> (function (exports) { 'use strict'; diff --git a/modules/script/byteArray.js b/modules/script/byteArray.js index c8475856..fad022d2 100644 --- a/modules/script/byteArray.js +++ b/modules/script/byteArray.js @@ -1,5 +1,6 @@ /* exported ByteArray, fromArray, fromGBytes, fromString, toGBytes, toString */ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2017 Philip Chimento <philip.chimento@gmail.com> /* eslint no-redeclare: ["error", { "builtinGlobals": false }] */ // for toString var {fromGBytes, fromString, toGBytes, toString} = imports._byteArrayNative; diff --git a/modules/script/format.js b/modules/script/format.js index 196b5169..72b587c0 100644 --- a/modules/script/format.js +++ b/modules/script/format.js @@ -1,5 +1,7 @@ // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2012 Red Hat, Inc. +// SPDX-FileCopyrightText: 2012 Giovanni Campagna <scampa.giovanni@gmail.com> /* exported format, printf, vprintf */ diff --git a/subprojects/.gitignore b/subprojects/.gitignore index 24e358b7..2d032cbf 100644 --- a/subprojects/.gitignore +++ b/subprojects/.gitignore @@ -1,4 +1,5 @@ # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2019 Philip Chimento <philip.chimento@gmail.com> glib gobject-introspection libffi diff --git a/subprojects/glib.wrap b/subprojects/glib.wrap index 735501b6..c5146f5e 100644 --- a/subprojects/glib.wrap +++ b/subprojects/glib.wrap @@ -1,4 +1,5 @@ # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2019 Philip Chimento <philip.chimento@gmail.com> [wrap-git] directory=glib diff --git a/subprojects/gobject-introspection.wrap b/subprojects/gobject-introspection.wrap index 88aa915a..75bddbc6 100644 --- a/subprojects/gobject-introspection.wrap +++ b/subprojects/gobject-introspection.wrap @@ -1,4 +1,5 @@ # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2019 Philip Chimento <philip.chimento@gmail.com> [wrap-git] directory=gobject-introspection diff --git a/subprojects/libffi.wrap b/subprojects/libffi.wrap index da8b8371..a7f0d818 100644 --- a/subprojects/libffi.wrap +++ b/subprojects/libffi.wrap @@ -1,4 +1,5 @@ # SPDX-License-Identifier: LGPL-2.1-or-later +# SPDX-FileCopyrightText: 2017 Nirbheek Chauhan <nirbheek@centricular.com> [wrap-git] directory=libffi diff --git a/subprojects/proxy-libintl.wrap b/subprojects/proxy-libintl.wrap index 09a04501..3b32f634 100644 --- a/subprojects/proxy-libintl.wrap +++ b/subprojects/proxy-libintl.wrap @@ -1,4 +1,5 @@ # SPDX-License-Identifier: LGPL-2.1-or-later +# SPDX-FileCopyrightText: 2017 Nirbheek Chauhan <nirbheek@centricular.com> [wrap-git] directory=proxy-libintl diff --git a/subprojects/sysprof.wrap b/subprojects/sysprof.wrap index 895c57eb..6018fa10 100644 --- a/subprojects/sysprof.wrap +++ b/subprojects/sysprof.wrap @@ -1,4 +1,6 @@ # SPDX-License-Identifier: LGPL-2.1-or-later +# SPDX-FileCopyrightText: 2020 Endless Mobile, Inc. +# SPDX-FileContributor: Philip Withnall <withnall@endlessm.com> [wrap-git] directory=sysprof diff --git a/test/extra/Dockerfile b/test/extra/Dockerfile index 18479b25..91fdda2b 100644 --- a/test/extra/Dockerfile +++ b/test/extra/Dockerfile @@ -1,4 +1,5 @@ # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2020 Philip Chimento <philip.chimento@gmail.com> # === Build Spidermonkey stage === diff --git a/test/extra/Dockerfile.debug b/test/extra/Dockerfile.debug index 5b0c8dc6..13d90eb2 100644 --- a/test/extra/Dockerfile.debug +++ b/test/extra/Dockerfile.debug @@ -1,4 +1,5 @@ # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2020 Philip Chimento <philip.chimento@gmail.com> # === Build stage === diff --git a/test/extra/do_environment.sh b/test/extra/do_environment.sh index 3c842530..ea557a6c 100755 --- a/test/extra/do_environment.sh +++ b/test/extra/do_environment.sh @@ -1,5 +1,6 @@ #!/bin/sh -e # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2017 Claudio André <claudioandre.br@gmail.com> do_Print_Labels () { if test -n "$1"; then diff --git a/test/gjs-test-call-args.cpp b/test/gjs-test-call-args.cpp index 35271d9c..5e0d4ea5 100644 --- a/test/gjs-test-call-args.cpp +++ b/test/gjs-test-call-args.cpp @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2016 Endless Mobile, Inc. #include <config.h> diff --git a/test/gjs-test-coverage/loadedJSFromResource.js b/test/gjs-test-coverage/loadedJSFromResource.js index 64f89912..36e35d4e 100644 --- a/test/gjs-test-coverage/loadedJSFromResource.js +++ b/test/gjs-test-coverage/loadedJSFromResource.js @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2014 Endless Mobile, Inc. /* eslint-disable jsdoc/require-jsdoc */ diff --git a/test/gjs-test-rooting.cpp b/test/gjs-test-rooting.cpp index 06191e66..cfdd6af3 100644 --- a/test/gjs-test-rooting.cpp +++ b/test/gjs-test-rooting.cpp @@ -1,4 +1,5 @@ // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +// SPDX-FileCopyrightText: 2017 Endless Mobile, Inc. #include <config.h> diff --git a/test/meson.build b/test/meson.build index b322bc7c..83c63067 100644 --- a/test/meson.build +++ b/test/meson.build @@ -1,4 +1,5 @@ # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2019 Philip Chimento <philip.chimento@gmail.com> ### Unit tests ################################################################# diff --git a/test/mock-js-resources.gresource.xml b/test/mock-js-resources.gresource.xml index 1bcf5736..23172772 100644 --- a/test/mock-js-resources.gresource.xml +++ b/test/mock-js-resources.gresource.xml @@ -1,5 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- SPDX-License-Identifier: MIT OR LGPL-2.0-or-later --> +<!-- SPDX-FileCopyrightText: 2014 Endless Mobile, Inc. --> <gresources> <gresource prefix="/org/gnome/gjs/mock"> <file>test/gjs-test-coverage/loadedJSFromResource.js</file> diff --git a/test/test-bus.conf b/test/test-bus.conf index b41110eb..c1d6973b 100644 --- a/test/test-bus.conf +++ b/test/test-bus.conf @@ -1,4 +1,5 @@ <!-- SPDX-License-Identifier: MIT OR LGPL-2.0-or-later --> +<!-- SPDX-FileCopyrightText: 2009 Litl, LLC --> <!-- Configuration file for a dbus daemon we run for test purposes --> <!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN" diff --git a/test/test-ci.sh b/test/test-ci.sh index 430868a5..bb687a28 100755 --- a/test/test-ci.sh +++ b/test/test-ci.sh @@ -1,5 +1,6 @@ #!/bin/sh -e # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2017 Claudio André <claudioandre.br@gmail.com> do_Set_Env () { #Save cache on $pwd (required by artifacts) diff --git a/tools/cppcheck.cfg b/tools/cppcheck.cfg index 184edee1..beb1ca39 100644 --- a/tools/cppcheck.cfg +++ b/tools/cppcheck.cfg @@ -1,4 +1,6 @@ <?xml version="1.0"?> +<!-- SPDX-License-Identifier: MIT OR LGPL-2.0-or-later --> +<!-- SPDX-FileCopyrightText: 2020 Philip Chimento <philip.chimento@gmail.com> --> <def> <define name="GJS_DEFINE_PRIV_FROM_JS" value=""/> <define name="GJS_DEFINE_PROTO_ABSTRACT_WITH_PARENT" value=""/> diff --git a/tools/gjs-private-iwyu.imp b/tools/gjs-private-iwyu.imp index decafc46..c6a8eeae 100644 --- a/tools/gjs-private-iwyu.imp +++ b/tools/gjs-private-iwyu.imp @@ -1,4 +1,6 @@ # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2019 Philip Chimento <philip.chimento@gmail.com> + # IWYU mapping file for files that are part of libgjs [ {"include": ["<bits/std_abs.h>", "private", "<stdlib.h>", "public"]}, diff --git a/tools/gjs-public-iwyu.imp b/tools/gjs-public-iwyu.imp index 2ca8fcf7..5887a49b 100644 --- a/tools/gjs-public-iwyu.imp +++ b/tools/gjs-public-iwyu.imp @@ -1,4 +1,6 @@ # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2019 Philip Chimento <philip.chimento@gmail.com> + # IWYU mapping file for files that use the API of libgjs [ {"ref": "gjs-private-iwyu.imp"}, diff --git a/tools/heapdot.py b/tools/heapdot.py index 09bc20b5..c580669a 100644 --- a/tools/heapdot.py +++ b/tools/heapdot.py @@ -1,6 +1,8 @@ #!/usr/bin/env python3 # SPDX-License-Identifier: MPL-2.0 +# SPDX-FileCopyrightText: 2013-2018 Andrew McCreight <continuation@gmail.com> +# SPDX-FileCopyrightText: 2018 Andy Holmes <andrew.g.r.holmes@gmail.com> # # heapdot.py - DOT Graph output diff --git a/tools/heapgraph.py b/tools/heapgraph.py index b78500ec..d62e449f 100755 --- a/tools/heapgraph.py +++ b/tools/heapgraph.py @@ -1,6 +1,8 @@ #!/usr/bin/env python3 # SPDX-License-Identifier: MPL-2.0 +# SPDX-FileCopyrightText: 2013-2018 Andrew McCreight <continuation@gmail.com> +# SPDX-FileCopyrightText: 2018 Andy Holmes <andrew.g.r.holmes@gmail.com> # # heapgraph.py - Top-level script for interpreting Garbage Collector heaps diff --git a/tools/lcovrc b/tools/lcovrc index b92281a4..9e57d09a 100644 --- a/tools/lcovrc +++ b/tools/lcovrc @@ -1,4 +1,5 @@ # SPDX-License-Identifier: LGPL-2.1-or-later +# SPDX-FileCopyrightText: 2018 Endless Mobile, Inc. # lcov and genhtml configuration # See http://ltp.sourceforge.net/coverage/lcov/lcovrc.5.php diff --git a/tools/process_iwyu.py b/tools/process_iwyu.py index 9c991f7a..1bd764bb 100755 --- a/tools/process_iwyu.py +++ b/tools/process_iwyu.py @@ -1,5 +1,6 @@ # coding: utf8 # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2020 Philip Chimento <philip.chimento@gmail.com> # IWYU is missing the feature to designate a certain header as a "forward-decls # header". In the case of SpiderMonkey, there are certain commonly used forward diff --git a/tools/run_coverage.sh b/tools/run_coverage.sh index 5691444c..c193e786 100755 --- a/tools/run_coverage.sh +++ b/tools/run_coverage.sh @@ -1,5 +1,6 @@ #!/bin/bash # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2019 Philip Chimento <philip.chimento@gmail.com> SOURCEDIR=$(pwd) GIDATADIR=$(pkg-config --variable=gidatadir gobject-introspection-1.0) diff --git a/tools/run_cppcheck.sh b/tools/run_cppcheck.sh index 8d4860db..72053718 100755 --- a/tools/run_cppcheck.sh +++ b/tools/run_cppcheck.sh @@ -1,5 +1,6 @@ #!/bin/sh # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2017 Claudio André <claudioandre.br@gmail.com> ninja -C _build cppcheck --project=_build/compile_commands.json --inline-suppr \ diff --git a/tools/run_iwyu.sh b/tools/run_iwyu.sh index 1f6a10bb..b0eda0db 100755 --- a/tools/run_iwyu.sh +++ b/tools/run_iwyu.sh @@ -1,5 +1,6 @@ #!/bin/sh # SPDX-License-Identifier: MIT OR LGPL-2.0-or-later +# SPDX-FileCopyrightText: 2019 Philip Chimento <philip.chimento@gmail.com> SRCDIR=$(pwd) |