Skip to content

Commit

Permalink
Remove references to PATENTS that crept in (#11091)
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiebits committed Oct 4, 2017
1 parent 2b0ef3c commit dffb206
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 17 deletions.
15 changes: 15 additions & 0 deletions scripts/circleci/check_license.sh
@@ -0,0 +1,15 @@
#!/bin/bash

set -e

# Make sure we don't introduce accidental references to PATENTS.
EXPECTED='docs/_posts/2014-10-28-react-v0.12.md
docs/_posts/2015-04-17-react-native-v0.4.md
scripts/circleci/check_license.sh'
ACTUAL=$(git grep -l PATENTS)

if [ "$EXPECTED" != "$ACTUAL" ]; then
echo "PATENTS crept into some new files?"
diff -u <(echo "$EXPECTED") <(echo "$ACTUAL") || true
exit 1
fi
1 change: 1 addition & 0 deletions scripts/circleci/test_entry_point.sh
Expand Up @@ -18,6 +18,7 @@ if [ $((0 % CIRCLE_NODE_TOTAL)) -eq "$CIRCLE_NODE_INDEX" ]; then
COMMANDS_TO_RUN+=('node ./scripts/tasks/flow')
COMMANDS_TO_RUN+=('node ./scripts/tasks/jest')
COMMANDS_TO_RUN+=('./scripts/circleci/build.sh')
COMMANDS_TO_RUN+=('./scripts/circleci/check_license.sh')
COMMANDS_TO_RUN+=('./scripts/circleci/test_print_warnings.sh')
COMMANDS_TO_RUN+=('./scripts/circleci/track_stats.sh')
# COMMANDS_TO_RUN+=('./scripts/circleci/bench.sh')
Expand Down
8 changes: 3 additions & 5 deletions src/renderers/dom/shared/__tests__/ReactDOMSelection-test.js
@@ -1,10 +1,8 @@
/**
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @emails react-core
*/
Expand Down
10 changes: 4 additions & 6 deletions www/src/utils/createLink.js
@@ -1,13 +1,11 @@
/**
* Copyright 2015-present, Facebook, Inc.
* All rights reserved.
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @emails react-core
*/
*/

'use strict';

Expand Down
10 changes: 4 additions & 6 deletions www/src/utils/sectionList.js
@@ -1,13 +1,11 @@
/**
* Copyright 2015-present, Facebook, Inc.
* All rights reserved.
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @emails react-core
*/
*/

'use strict';

Expand Down

0 comments on commit dffb206

Please sign in to comment.