Skip to content

Commit

Permalink
Change license to MIT
Browse files Browse the repository at this point in the history
Summary:
Change the license of the source code from BSD + PATENTS to MIT.

Change `checkCopyright` to reflect the new license and learn some new file
types.

Generated with:

```
git grep BSD | xargs -n 1 ./scripts/checkCopyright -i
```

Reviewed By: jeremydubreil, mbouaziz, jberdine

Differential Revision: D8071249

fbshipit-source-id: 97ca23a
  • Loading branch information
jvillard authored and facebook-github-bot committed May 31, 2018
1 parent 057efb2 commit 8b882ac
Show file tree
Hide file tree
Showing 2,081 changed files with 11,653 additions and 15,093 deletions.
8 changes: 3 additions & 5 deletions .travis/docker_tests.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
#!/bin/bash

# Copyright (c) 2016 - present Facebook, Inc.
# All rights reserved.
# Copyright (c) 2016-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.

set -e

Expand Down
9 changes: 3 additions & 6 deletions .travis/local_install_tests.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
#!/bin/bash

# Copyright (c) 2016 - present Facebook, Inc.
# All rights reserved.
# Copyright (c) 2016-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.

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

Expand Down
43 changes: 17 additions & 26 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,30 +1,21 @@
BSD License
MIT License

For Infer software
Copyright (c) 2013-present, Facebook, Inc.

Copyright (c) 2013-present, Facebook, Inc. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name Facebook nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
8 changes: 3 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Copyright (c) 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.

.PHONY: default
default: infer
Expand Down
8 changes: 3 additions & 5 deletions Makefile.autoconf.in
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Copyright (c) 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.

@SET_MAKE@

Expand Down
8 changes: 3 additions & 5 deletions Makefile.config
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Copyright (c) 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.

ORIG_SHELL = $(shell echo "$$SHELL")
SHELL = bash -e -o pipefail -u
Expand Down
33 changes: 0 additions & 33 deletions PATENTS

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ See [CONTRIBUTING.md](./CONTRIBUTING.md).

## License

Infer is BSD-licensed. We also provide an additional patent grant.
Infer is MIT-licensed.

Note: Enabling Java support may require you to download and install
components licensed under the GPL.
8 changes: 3 additions & 5 deletions autogen.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
#!/bin/bash

# Copyright (c) 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.

set -e

Expand Down
8 changes: 3 additions & 5 deletions build-infer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

# Convenience script to build Infer when using opam

# Copyright (c) 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.

set -e
set -o pipefail
Expand Down
12 changes: 5 additions & 7 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
dnl Copyright (c) 2015-present, Facebook, Inc.
dnl
dnl This source code is licensed under the MIT license found in the
dnl LICENSE file in the root directory of this source tree.

dnl autoconf script for Infer
dnl run ./autogen.sh to generate a configure script
dnl
dnl Copyright (c) 2015 - present Facebook, Inc.
dnl All rights reserved.
dnl
dnl This source code is licensed under the BSD style license found in the
dnl LICENSE file in the root directory of this source tree. An additional grant
dnl of patent rights can be found in the PATENTS file in the same directory.

AC_PREREQ([2.63])

Expand Down
8 changes: 3 additions & 5 deletions dependencies/infer-deps/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Copyright (c) 2017 - present Facebook, Inc.
# All rights reserved.
# Copyright (c) 2017-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.

# This file exists to make opam happy, it should not do anything useful besides that.

Expand Down
8 changes: 3 additions & 5 deletions dependencies/infer-deps/autogen.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#!/bin/bash

# Copyright (c) 2017 - present Facebook, Inc.
# All rights reserved.
# Copyright (c) 2017-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.

# This file exists just to make opam happy, it should not do anything useful besides that.
8 changes: 3 additions & 5 deletions dependencies/infer-deps/configure
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
#!/bin/bash

# Copyright (c) 2017 - present Facebook, Inc.
# All rights reserved.
# Copyright (c) 2017-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.

# This file exists just to make opam happy, it should not do anything useful besides that.
8 changes: 3 additions & 5 deletions dependencies/ocamldot/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Copyright (c) 2017 - present Facebook, Inc.
# All rights reserved.
# Copyright (c) 2017-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.

# Try to automatically guess whether we are running under Windows.
# Set WIN32=true manually if this doesn't work.
Expand Down
8 changes: 3 additions & 5 deletions docker/run.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
#!/bin/sh

# Copyright (c) 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.

EXEC_NAME="$0"

Expand Down
8 changes: 3 additions & 5 deletions examples/Hello.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/*
* Copyright (c) 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.
*/

class Hello {
Expand Down
8 changes: 3 additions & 5 deletions examples/Hello.m
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/*
* Copyright (c) 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.
*/

#import <Foundation/Foundation.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/*
* Copyright (c) 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.
*/

package infer.inferandroidexample;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/*
* Copyright (c) 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.
*/

// _SHOULD_BE_SKIPPED_
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/*
* Copyright (c) 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.
*/

package infer.inferandroidexample;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/*
* Copyright (c) 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.
*/

package infer.other;
Expand Down
8 changes: 3 additions & 5 deletions examples/c_hello/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Copyright (c) 2017 - present Facebook, Inc.
# All rights reserved.
# Copyright (c) 2017-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.

SOURCES = $(shell ls *.c)
OBJECTS = $(SOURCES:.c=.o)
Expand Down
8 changes: 3 additions & 5 deletions examples/c_hello/example.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/*
* Copyright (c) 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.
*/

#include <errno.h>
Expand Down
Loading

0 comments on commit 8b882ac

Please sign in to comment.