diff options
author | ztplz <mysticzt@gmail.com> | 2018-10-20 03:25:29 +0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-10-19 15:25:29 -0400 |
commit | b809a82fd9afc733004b56fab78fcc45a2fee064 (patch) | |
tree | 548ef2cb4fde4e75ba6727b8286b84ec8ceaa960 | |
parent | 7210e7b33b84382d4f418ab1be37fea85c2e1422 (diff) |
Add missing copyrights (#1024)
46 files changed, 39 insertions, 12 deletions
diff --git a/.appveyor.yml b/.appveyor.yml index f946aa5c0..97f374c8d 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -1,3 +1,4 @@ +# Copyright 2018 the Deno authors. All rights reserved. MIT license. version: '{build}.{branch}' skip_branch_with_pr: true diff --git a/.travis.yml b/.travis.yml index a30bb170d..314ece40d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,4 @@ +# Copyright 2018 the Deno authors. All rights reserved. MIT license. language: c++ matrix: include: diff --git a/Cargo.toml b/Cargo.toml index b5d4bbb7b..060db2e85 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,3 +1,4 @@ +# Copyright 2018 the Deno authors. All rights reserved. MIT license. # Dummy package info required by `cargo fetch`. # Use tools/sync_third_party.py to install deps after editing this file. # Deno does not build with cargo. Deno uses a build system called gn. diff --git a/gclient_config.py b/gclient_config.py index 11fb9a93a..f5c1cda52 100644 --- a/gclient_config.py +++ b/gclient_config.py @@ -1,3 +1,4 @@ +# Copyright 2018 the Deno authors. All rights reserved. MIT license. solutions = [{ 'url': 'https://chromium.googlesource.com/v8/v8.git@7.0.276.15', 'name': 'v8', diff --git a/js/console.ts b/js/console.ts index d43605152..6e0b2e7a6 100644 --- a/js/console.ts +++ b/js/console.ts @@ -1,3 +1,5 @@ +// Copyright 2018 the Deno authors. All rights reserved. MIT license. + // tslint:disable-next-line:no-any type ConsoleContext = Set<any>; type ConsoleOptions = Partial<{ diff --git a/js/console_test.ts b/js/console_test.ts index 045d79e47..3a50b08d4 100644 --- a/js/console_test.ts +++ b/js/console_test.ts @@ -1,5 +1,4 @@ // Copyright 2018 the Deno authors. All rights reserved. MIT license. - import { test, assert, assertEqual } from "./test_util.ts"; import { stringifyArgs } from "./console.ts"; diff --git a/js/copy_file_test.ts b/js/copy_file_test.ts index 05f0a6f71..807fbb9d0 100644 --- a/js/copy_file_test.ts +++ b/js/copy_file_test.ts @@ -1,3 +1,4 @@ +// Copyright 2018 the Deno authors. All rights reserved. MIT license. import { testPerm, assert, assertEqual } from "./test_util.ts"; import * as deno from "deno"; diff --git a/js/deno.ts b/js/deno.ts index 565d4a7e6..7409a67f2 100644 --- a/js/deno.ts +++ b/js/deno.ts @@ -1,4 +1,5 @@ // Copyright 2018 the Deno authors. All rights reserved. MIT license. + // Public deno module. /// <amd-module name="deno"/> export { env, exit } from "./os"; diff --git a/js/dir_test.ts b/js/dir_test.ts index ff55a0e69..ca9548827 100644 --- a/js/dir_test.ts +++ b/js/dir_test.ts @@ -1,3 +1,4 @@ +// Copyright 2018 the Deno authors. All rights reserved. MIT license. import { test, testPerm, assert, assertEqual } from "./test_util.ts"; import * as deno from "deno"; diff --git a/js/errors.ts b/js/errors.ts index 2614c90c5..e4494520d 100644 --- a/js/errors.ts +++ b/js/errors.ts @@ -1,3 +1,4 @@ +// Copyright 2018 the Deno authors. All rights reserved. MIT license. import { Base, ErrorKind } from "gen/msg_generated"; export { ErrorKind } from "gen/msg_generated"; diff --git a/js/files.ts b/js/files.ts index 33918302c..23fa8cc2d 100644 --- a/js/files.ts +++ b/js/files.ts @@ -1,5 +1,4 @@ // Copyright 2018 the Deno authors. All rights reserved. MIT license. - import { Reader, Writer, Closer, ReadResult } from "./io"; import * as dispatch from "./dispatch"; import * as msg from "gen/msg_generated"; diff --git a/js/files_test.ts b/js/files_test.ts index 835e06c84..9759e0b26 100644 --- a/js/files_test.ts +++ b/js/files_test.ts @@ -1,5 +1,4 @@ // Copyright 2018 the Deno authors. All rights reserved. MIT license. - import * as deno from "deno"; import { test, assert, assertEqual } from "./test_util.ts"; diff --git a/js/flatbuffers.ts b/js/flatbuffers.ts index 1ceb87951..bfb71f9d1 100644 --- a/js/flatbuffers.ts +++ b/js/flatbuffers.ts @@ -1,5 +1,4 @@ // Copyright 2018 the Deno authors. All rights reserved. MIT license. - import { flatbuffers } from "flatbuffers"; import * as util from "./util"; diff --git a/js/global_eval.ts b/js/global_eval.ts index 719b6791d..b7c928190 100644 --- a/js/global_eval.ts +++ b/js/global_eval.ts @@ -1,3 +1,5 @@ +// Copyright 2018 the Deno authors. All rights reserved. MIT license. + /** If you use the eval function indirectly, by invoking it via a reference * other than eval, as of ECMAScript 5 it works in the global scope rather than * the local scope. This means, for instance, that function declarations create diff --git a/js/globals.ts b/js/globals.ts index 11a172633..a67524f96 100644 --- a/js/globals.ts +++ b/js/globals.ts @@ -1,5 +1,4 @@ // Copyright 2018 the Deno authors. All rights reserved. MIT license. - import * as blob from "./blob"; import * as console from "./console"; import * as fetch_ from "./fetch"; diff --git a/js/libdeno.ts b/js/libdeno.ts index 842b0c8ad..623bfeea2 100644 --- a/js/libdeno.ts +++ b/js/libdeno.ts @@ -1,3 +1,4 @@ +// Copyright 2018 the Deno authors. All rights reserved. MIT license. import { RawSourceMap } from "./types"; import { globalEval } from "./global_eval"; diff --git a/js/mock_builtin.js b/js/mock_builtin.js index f237ddf58..3171ec18d 100644 --- a/js/mock_builtin.js +++ b/js/mock_builtin.js @@ -1 +1,2 @@ +// Copyright 2018 the Deno authors. All rights reserved. MIT license. export default undefined; @@ -1,5 +1,4 @@ // Copyright 2018 the Deno authors. All rights reserved. MIT license. - import { ReadResult, Reader, Writer, Closer } from "./io"; import * as msg from "gen/msg_generated"; import { assert, notImplemented } from "./util"; diff --git a/js/net_test.ts b/js/net_test.ts index 6a1bdcd48..999cea9b6 100644 --- a/js/net_test.ts +++ b/js/net_test.ts @@ -1,5 +1,4 @@ // Copyright 2018 the Deno authors. All rights reserved. MIT license. - import * as deno from "deno"; import { testPerm, assert, assertEqual } from "./test_util.ts"; import { deferred } from "./util.ts"; diff --git a/js/platform.ts b/js/platform.ts index 5d1b77695..a27241e08 100644 --- a/js/platform.ts +++ b/js/platform.ts @@ -1,3 +1,5 @@ +// Copyright 2018 the Deno authors. All rights reserved. MIT license. + // Do not add unsupported platforms. export interface Platform { /** The operating system CPU architecture. */ diff --git a/js/plugins.d.ts b/js/plugins.d.ts index d1dae3885..e421bb5de 100644 --- a/js/plugins.d.ts +++ b/js/plugins.d.ts @@ -1,3 +1,5 @@ +// Copyright 2018 the Deno authors. All rights reserved. MIT license. + // This allows TypeScript to resolve any modules that end with `!string` // as there is a rollup plugin that will take any mids ending with `!string` // and return them as a string to rollup for inlining diff --git a/js/promise_util.ts b/js/promise_util.ts index a550bc388..1b9c2ab24 100644 --- a/js/promise_util.ts +++ b/js/promise_util.ts @@ -1,3 +1,4 @@ +// Copyright 2018 the Deno authors. All rights reserved. MIT license. import { PromiseRejectEvent } from "./libdeno"; /* tslint:disable-next-line:no-any */ diff --git a/js/trace_test.ts b/js/trace_test.ts index f0c0afc13..bbfc9f23c 100644 --- a/js/trace_test.ts +++ b/js/trace_test.ts @@ -1,3 +1,4 @@ +// Copyright 2018 the Deno authors. All rights reserved. MIT license. import { testPerm, assertEqual } from "./test_util.ts"; import * as deno from "deno"; diff --git a/js/unit_tests.ts b/js/unit_tests.ts index 9af603dfc..2f1a41f62 100644 --- a/js/unit_tests.ts +++ b/js/unit_tests.ts @@ -1,4 +1,5 @@ // Copyright 2018 the Deno authors. All rights reserved. MIT license. + // This test is executed as part of tools/test.py // But it can also be run manually: ./out/debug/deno js/unit_tests.ts import "./compiler_test.ts"; diff --git a/rollup.config.js b/rollup.config.js index 55f832585..2119430d8 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -1,3 +1,4 @@ +// Copyright 2018 the Deno authors. All rights reserved. MIT license. import path from "path"; import alias from "rollup-plugin-alias"; import { plugin as analyze } from "rollup-plugin-analyzer"; @@ -1,3 +1,4 @@ +// Copyright 2018 the Deno authors. All rights reserved. MIT license. use std; use std::fs::{create_dir, DirBuilder, File, OpenOptions}; use std::io::ErrorKind; diff --git a/src/http_util.rs b/src/http_util.rs index 0d3189d27..1c6079c08 100644 --- a/src/http_util.rs +++ b/src/http_util.rs @@ -1,5 +1,4 @@ // Copyright 2018 the Deno authors. All rights reserved. MIT license. - use errors; use errors::{DenoError, DenoResult}; use tokio_util; diff --git a/src/ops.rs b/src/ops.rs index 7e6071d65..b4a008100 100644 --- a/src/ops.rs +++ b/src/ops.rs @@ -1,5 +1,4 @@ // Copyright 2018 the Deno authors. All rights reserved. MIT license. - use errors; use errors::permission_denied; use errors::{DenoError, DenoResult, ErrorKind}; diff --git a/src/tokio_util.rs b/src/tokio_util.rs index 0a2a34917..31a67574e 100644 --- a/src/tokio_util.rs +++ b/src/tokio_util.rs @@ -1,5 +1,4 @@ // Copyright 2018 the Deno authors. All rights reserved. MIT license. - use resources::Resource; use futures; diff --git a/tools/benchmark_test.py b/tools/benchmark_test.py index 42a3465b2..647e72478 100644 --- a/tools/benchmark_test.py +++ b/tools/benchmark_test.py @@ -1,3 +1,4 @@ +# Copyright 2018 the Deno authors. All rights reserved. MIT license. import sys import os import benchmark diff --git a/tools/build_test.py b/tools/build_test.py index a75024add..370bd518d 100755 --- a/tools/build_test.py +++ b/tools/build_test.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# Copyright 2018 the Deno authors. All rights reserved. MIT license. import sys from build import main as build from test import main as test diff --git a/tools/check_output_test.py b/tools/check_output_test.py index baeff23bf..b2169c12b 100755 --- a/tools/check_output_test.py +++ b/tools/check_output_test.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# Copyright 2018 the Deno authors. All rights reserved. MIT license. # Given a deno executable, this script execute several integration tests # with it. The tests are stored in //tests/ and each script has a corresponding # .out file which specifies what the stdout should be. diff --git a/tools/deno_dir_test.py b/tools/deno_dir_test.py index 7ca22f9dd..769af6dca 100755 --- a/tools/deno_dir_test.py +++ b/tools/deno_dir_test.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# Copyright 2018 the Deno authors. All rights reserved. MIT license. # Check deno dir is created properly # Usage: deno_dir_test.py [path to deno dir] import os diff --git a/tools/format.py b/tools/format.py index 5b6afd1c3..cf03ccca3 100755 --- a/tools/format.py +++ b/tools/format.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# Copyright 2018 the Deno authors. All rights reserved. MIT license. from glob import glob import os from third_party import third_party_path, fix_symlinks, google_env, clang_format_path diff --git a/tools/http_benchmark.py b/tools/http_benchmark.py index 62647f629..58e9c279e 100755 --- a/tools/http_benchmark.py +++ b/tools/http_benchmark.py @@ -1,5 +1,5 @@ #!/usr/bin/env python - +# Copyright 2018 the Deno authors. All rights reserved. MIT license. import os import sys import util diff --git a/tools/http_server.py b/tools/http_server.py index eae5a15b8..222410c15 100755 --- a/tools/http_server.py +++ b/tools/http_server.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# Copyright 2018 the Deno authors. All rights reserved. MIT license. # Many tests expect there to be an http server on port 4545 servering the deno # root directory. import os diff --git a/tools/lint.py b/tools/lint.py index 4471dafae..f163a3264 100755 --- a/tools/lint.py +++ b/tools/lint.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# Copyright 2018 the Deno authors. All rights reserved. MIT license. # Does google-lint on c++ files and ts-lint on typescript files import os diff --git a/tools/node_http.js b/tools/node_http.js index dbe9de81a..2cdb54647 100644 --- a/tools/node_http.js +++ b/tools/node_http.js @@ -1,3 +1,4 @@ +// Copyright 2018 the Deno authors. All rights reserved. MIT license. const http = require("http"); const port = process.argv[2] || "4544"; console.log("port", port); diff --git a/tools/rustfmt.toml b/tools/rustfmt.toml index 4c1eefaed..f0cc02616 100644 --- a/tools/rustfmt.toml +++ b/tools/rustfmt.toml @@ -1,2 +1,3 @@ +# Copyright 2018 the Deno authors. All rights reserved. MIT license. max_width = 80 tab_spaces = 2 diff --git a/tools/setup.py b/tools/setup.py index 3b0246f51..7b14c6370 100755 --- a/tools/setup.py +++ b/tools/setup.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# Copyright 2018 the Deno authors. All rights reserved. MIT license. import third_party from util import build_mode, build_path, enable_ansi_colors, root_path, run from util import shell_quote diff --git a/tools/setup_test.py b/tools/setup_test.py index 05f094c60..15dff00fa 100644 --- a/tools/setup_test.py +++ b/tools/setup_test.py @@ -1,5 +1,4 @@ # Copyright 2018 the Deno authors. All rights reserved. MIT license. - import os from setup import gn_string, read_gn_args, write_gn_args from shutil import rmtree diff --git a/tools/sync_third_party.py b/tools/sync_third_party.py index 697470a49..39afdccd4 100755 --- a/tools/sync_third_party.py +++ b/tools/sync_third_party.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# Copyright 2018 the Deno authors. All rights reserved. MIT license. # Run this script if you are changing Deno's dependencies. # To update the deno_third_party git repo after running this, try the following: # cd third_party diff --git a/tools/test.py b/tools/test.py index d2a7944e6..2212cd191 100755 --- a/tools/test.py +++ b/tools/test.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# Copyright 2018 the Deno authors. All rights reserved. MIT license. # Runs the full test suite. # Usage: ./tools/test.py out/Debug import os diff --git a/tools/third_party.py b/tools/third_party.py index c669a81e3..892ce40e6 100644 --- a/tools/third_party.py +++ b/tools/third_party.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# Copyright 2018 the Deno authors. All rights reserved. MIT license. # This script contains helper functions to work with the third_party subrepo. import os diff --git a/tools/unit_tests.py b/tools/unit_tests.py index 78b4d77c1..f357aaccd 100755 --- a/tools/unit_tests.py +++ b/tools/unit_tests.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# Copyright 2018 the Deno authors. All rights reserved. MIT license. import util import sys import subprocess diff --git a/website/index.html b/website/index.html index dbdef58b9..94b3b3073 100644 --- a/website/index.html +++ b/website/index.html @@ -1,3 +1,4 @@ +<!-- Copyright 2018 the Deno authors. All rights reserved. MIT license. --> <!DOCTYPE html> <html> <head> |