Skip to content

Commit

Permalink
Changing license header, again!
Browse files Browse the repository at this point in the history
http://anonscm.debian.org/cgit/collab-maint/devscripts.git/tree/scripts/licensecheck.pl
has a very strict way to guess the Apache license and commit
8e59407 broke the parsing, resulting that
licensecheck.pl didn't detect the files as Apache anymore. This inhibits rolling
the client in chromium's src.git so it has to be fixed.

Ran:

  git sed 's/by the Apache v2.0 license that can be/under the Apache License, Version 2.0/'
  git sed 's/found in the LICENSE file/that can be found in the LICENSE file/'
  git checkout HEAD -- $(git status -sb | grep '^ T' | cut -c 4-)
  git checkout origin/master -- $(git diff origin/master --name-only | grep third_party)
  git checkout origin/master -- appengine/isolate/doc/client/Design.md

then manually edited PRESUBMIT.py.

[email protected]
BUG=

Review-Url: https://codereview.chromium.org/2013943002
  • Loading branch information
maruel authored and Commit bot committed May 26, 2016
1 parent 2e2cd9a commit 33b0f6e
Show file tree
Hide file tree
Showing 442 changed files with 887 additions and 887 deletions.
10 changes: 5 additions & 5 deletions PRESUBMIT.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2013 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

"""Top-level presubmit script for LUCI.
Expand All @@ -17,9 +17,9 @@ def header(input_api):
license_header = (
r'.*? Copyright %(year)s The LUCI Authors\. '
r'All rights reserved\.\n'
r'.*? Use of this source code is governed by the Apache v2\.0 license '
r'that can be\n'
r'.*? found in the LICENSE file\.(?: \*/)?\n'
r'.*? Use of this source code is governed under the Apache License, '
r'Version 2\.0\n'
r'.*? that can be found in the LICENSE file\.(?: \*/)?\n'
) % {
'year': years_re,
}
Expand Down
4 changes: 2 additions & 2 deletions WATCHLISTS
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) 2013 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

# Watchlist Rules
# Refer: http://dev.chromium.org/developers/contributing-code/watchlists
Expand Down
4 changes: 2 additions & 2 deletions appengine/auth_service/PRESUBMIT.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2014 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

"""Top-level presubmit script for auth server.
Expand Down
4 changes: 2 additions & 2 deletions appengine/auth_service/acl.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2014 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

"""ACL checks for endpoints exposed by auth_service."""

Expand Down
4 changes: 2 additions & 2 deletions appengine/auth_service/appengine_config.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2013 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

"""Configures includes (components.auth).
Expand Down
4 changes: 2 additions & 2 deletions appengine/auth_service/config.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2015 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

"""Adapter between config service client and the rest of auth_service.
Expand Down
4 changes: 2 additions & 2 deletions appengine/auth_service/config_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# Copyright 2015 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

import datetime
import logging
Expand Down
4 changes: 2 additions & 2 deletions appengine/auth_service/delegation.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2015 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

"""API handler to mint delegation tokens."""

Expand Down
4 changes: 2 additions & 2 deletions appengine/auth_service/delegation_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# Copyright 2015 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

import json
import logging
Expand Down
4 changes: 2 additions & 2 deletions appengine/auth_service/handlers_backend.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2014 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

"""This module defines Auth Server backend url handlers."""

Expand Down
4 changes: 2 additions & 2 deletions appengine/auth_service/handlers_frontend.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2014 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

"""This module defines Auth Server frontend url handlers."""

Expand Down
4 changes: 2 additions & 2 deletions appengine/auth_service/handlers_frontend_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# Copyright 2014 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

import logging
import sys
Expand Down
4 changes: 2 additions & 2 deletions appengine/auth_service/importer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2014 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

"""Imports groups from some external tar.gz bundle or plain text list.
Expand Down
4 changes: 2 additions & 2 deletions appengine/auth_service/importer_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# Copyright 2014 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

import collections
import datetime
Expand Down
4 changes: 2 additions & 2 deletions appengine/auth_service/main_backend.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2014 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

"""This modules is imported by AppEngine and defines the 'app' object.
Expand Down
4 changes: 2 additions & 2 deletions appengine/auth_service/main_frontend.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2014 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

"""This modules is imported by AppEngine and defines the 'app' object.
Expand Down
4 changes: 2 additions & 2 deletions appengine/auth_service/proto/config.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2015 The LUCI Authors. All rights reserved.
// Use of this source code is governed by the Apache v2.0 license that can be
// found in the LICENSE file.
// Use of this source code is governed under the Apache License, Version 2.0
// that can be found in the LICENSE file.

// Configuration schema for configs fetched via a config service.

Expand Down
4 changes: 2 additions & 2 deletions appengine/auth_service/pubsub.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2015 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

"""Manages PubSub topic that receives notifications about AuthDB changes.
Expand Down
4 changes: 2 additions & 2 deletions appengine/auth_service/replication.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2014 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

"""Primary side of Primary <-> Replica protocol."""

Expand Down
4 changes: 2 additions & 2 deletions appengine/auth_service/replication_smoke_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# Copyright 2014 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

"""High level test for Primary <-> Replica replication logic.
Expand Down
4 changes: 2 additions & 2 deletions appengine/auth_service/static/js/config_page.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2014 The LUCI Authors. All rights reserved.
// Use of this source code is governed by the Apache v2.0 license that can be
// found in the LICENSE file.
// Use of this source code is governed under the Apache License, Version 2.0
// that can be found in the LICENSE file.

var config_page = (function() {
'use strict';
Expand Down
4 changes: 2 additions & 2 deletions appengine/auth_service/static/js/services.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2014 The LUCI Authors. All rights reserved.
// Use of this source code is governed by the Apache v2.0 license that can be
// found in the LICENSE file.
// Use of this source code is governed under the Apache License, Version 2.0
// that can be found in the LICENSE file.

var services = (function() {
'use strict';
Expand Down
4 changes: 2 additions & 2 deletions appengine/auth_service/test_env.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2015 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

import os
import sys
Expand Down
4 changes: 2 additions & 2 deletions appengine/auth_service/test_replica_app/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2014 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

import webapp2

Expand Down
4 changes: 2 additions & 2 deletions appengine/auth_service/tools/compile_proto.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# Copyright 2014 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

"""Compiles all *.proto files it finds into *_pb2.py."""

Expand Down
4 changes: 2 additions & 2 deletions appengine/auth_service/tools/run_coverage.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# Copyright 2014 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

import os
import sys
Expand Down
4 changes: 2 additions & 2 deletions appengine/components/PRESUBMIT.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2013 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

"""Top-level presubmit script for appengine/components/.
Expand Down
4 changes: 2 additions & 2 deletions appengine/components/components/auth/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2014 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

"""Authentication and authorization component.
Expand Down
4 changes: 2 additions & 2 deletions appengine/components/components/auth/api.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2014 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

"""Defines main bulk of public API of auth component.
Expand Down
4 changes: 2 additions & 2 deletions appengine/components/components/auth/api_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# Copyright 2014 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

# Disable 'Access to a protected member', Unused argument', 'Unused variable'.
# pylint: disable=W0212,W0612,W0613
Expand Down
4 changes: 2 additions & 2 deletions appengine/components/components/auth/change_log.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2015 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

"""Models and functions to build and query Auth DB change log."""

Expand Down
4 changes: 2 additions & 2 deletions appengine/components/components/auth/change_log_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# Copyright 2014 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

import datetime
import sys
Expand Down
4 changes: 2 additions & 2 deletions appengine/components/components/auth/config.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2014 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

"""Auth component configuration hooks.
Expand Down
4 changes: 2 additions & 2 deletions appengine/components/components/auth/delegation.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2015 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

"""Delegation token implementation.
Expand Down
4 changes: 2 additions & 2 deletions appengine/components/components/auth/delegation_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# Copyright 2015 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

import collections
import datetime
Expand Down
4 changes: 2 additions & 2 deletions appengine/components/components/auth/endpoints_support.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2014 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

"""Integration with Cloud Endpoints.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# Copyright 2014 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

import logging
import sys
Expand Down
4 changes: 2 additions & 2 deletions appengine/components/components/auth/handler.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2014 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

"""Integration with webapp2."""

Expand Down
4 changes: 2 additions & 2 deletions appengine/components/components/auth/handler_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# Copyright 2014 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

# Disable 'Unused variable', 'Unused argument' and 'Method could be a function'.
# pylint: disable=W0612,W0613,R0201
Expand Down
4 changes: 2 additions & 2 deletions appengine/components/components/auth/ipaddr.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2014 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

"""Utilities for working with IPv4 and IPv6 addresses."""

Expand Down
4 changes: 2 additions & 2 deletions appengine/components/components/auth/ipaddr_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# Copyright 2014 The LUCI Authors. All rights reserved.
# Use of this source code is governed by the Apache v2.0 license that can be
# found in the LICENSE file.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.

import sys
import unittest
Expand Down
Loading

0 comments on commit 33b0f6e

Please sign in to comment.