Remove references to PATENTS that crept in (#11091)
Sophie Alpert committed
Oct 4, 2017 at 12:40 UTC
dffb206a04227b4b85b67b1d1e0597a43ad1b1aa
5 files changed
+27
-17
scripts/circleci/check_license.sh
new
+15
@@ -0,0 +1,15 @@
1
+#!/bin/bash
2
+
3
+set -e
4
+
5
+# Make sure we don't introduce accidental references to PATENTS.
6
+EXPECTED='docs/_posts/2014-10-28-react-v0.12.md
7
+docs/_posts/2015-04-17-react-native-v0.4.md
8
+scripts/circleci/check_license.sh'
9
+ACTUAL=$(git grep -l PATENTS)
10
+
11
+if [ "$EXPECTED" != "$ACTUAL" ]; then
12
+ echo "PATENTS crept into some new files?"
13
+ diff -u <(echo "$EXPECTED") <(echo "$ACTUAL") || true
14
+ exit 1
15
+fi
scripts/circleci/test_entry_point.sh
+1
@@ -18,6 +18,7 @@ if [ $((0 % CIRCLE_NODE_TOTAL)) -eq "$CIRCLE_NODE_INDEX" ]; then
18
COMMANDS_TO_RUN+=('node ./scripts/tasks/flow')
19
COMMANDS_TO_RUN+=('node ./scripts/tasks/jest')
20
COMMANDS_TO_RUN+=('./scripts/circleci/build.sh')
21
+ COMMANDS_TO_RUN+=('./scripts/circleci/check_license.sh')
22
COMMANDS_TO_RUN+=('./scripts/circleci/test_print_warnings.sh')
23
COMMANDS_TO_RUN+=('./scripts/circleci/track_stats.sh')
24
# COMMANDS_TO_RUN+=('./scripts/circleci/bench.sh')
src/renderers/dom/shared/__tests__/ReactDOMSelection-test.js
+3
-5
@@ -1,10 +1,8 @@
1
/**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
3
*
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
*
7
* @emails react-core
8
*/
www/src/utils/createLink.js
+4
-6
@@ -1,13 +1,11 @@
1
/**
2
- * Copyright 2015-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2015-present, Facebook, Inc.
3
*
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
*
7
* @emails react-core
10
-*/
8
+ */
9
10
'use strict';
11
www/src/utils/sectionList.js
+4
-6
@@ -1,13 +1,11 @@
1
/**
2
- * Copyright 2015-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2015-present, Facebook, Inc.
3
*
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
*
7
* @emails react-core
10
-*/
8
+ */
9
10
'use strict';
11