From 1a161a8333ec1fa382a06485b7ffad955c001151 Mon Sep 17 00:00:00 2001 From: Wouter van Oortmerssen Date: Mon, 23 May 2016 09:51:41 -0700 Subject: [PATCH] Added missing licenses to some sh/cs/py files. Bug: https://github.com/google/flatbuffers/issues/3872 Change-Id: I5d551168e9bc925e867e5e4ddf5d809418fd44eb Tested: on Linux. --- biicode/support/bii-travis.sh | 14 ++++++++++++++ python/flatbuffers/compat.py | 14 ++++++++++++++ python/flatbuffers/packer.py | 14 ++++++++++++++ python/setup.py | 14 ++++++++++++++ reflection/generate_code.sh | 16 ++++++++++++++++ .../FlatBuffersTestClassAttribute.cs | 18 +++++++++++++++++- .../FlatBuffersTestMethodAttribute.cs | 18 +++++++++++++++++- tests/FlatBuffers.Test/FuzzTestData.cs | 18 +++++++++++++++++- tests/FlatBuffers.Test/Lcg.cs | 16 ++++++++++++++++ tests/FlatBuffers.Test/TestTable.cs | 16 ++++++++++++++++ tests/JavaScriptTest.sh | 14 ++++++++++++++ 11 files changed, 169 insertions(+), 3 deletions(-) diff --git a/biicode/support/bii-travis.sh b/biicode/support/bii-travis.sh index 0f5d2f960..d327a47c6 100755 --- a/biicode/support/bii-travis.sh +++ b/biicode/support/bii-travis.sh @@ -1,5 +1,19 @@ #!/bin/bash +# Copyright 2016 Google Inc. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + sudo apt-get update -qq sudo apt-get install libglu1-mesa-dev xorg-dev wget http://www.biicode.com/downloads/latest/ubuntu64 diff --git a/python/flatbuffers/compat.py b/python/flatbuffers/compat.py index c592901c0..e0315351d 100644 --- a/python/flatbuffers/compat.py +++ b/python/flatbuffers/compat.py @@ -1,3 +1,17 @@ +# Copyright 2016 Google Inc. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ A tiny version of `six` to help with backwards compability. """ import sys diff --git a/python/flatbuffers/packer.py b/python/flatbuffers/packer.py index c525f180b..20ee9f116 100644 --- a/python/flatbuffers/packer.py +++ b/python/flatbuffers/packer.py @@ -1,3 +1,17 @@ +# Copyright 2016 Google Inc. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """ Provide pre-compiled struct packers for encoding and decoding. diff --git a/python/setup.py b/python/setup.py index 822c92626..39afef34b 100644 --- a/python/setup.py +++ b/python/setup.py @@ -1,3 +1,17 @@ +# Copyright 2016 Google Inc. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from setuptools import setup setup( diff --git a/reflection/generate_code.sh b/reflection/generate_code.sh index 90f655d22..c679caf08 100644 --- a/reflection/generate_code.sh +++ b/reflection/generate_code.sh @@ -1 +1,17 @@ +#!/bin/bash + +# Copyright 2016 Google Inc. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + ../flatc -c --no-prefix -o ../include/flatbuffers reflection.fbs diff --git a/tests/FlatBuffers.Test/FlatBuffersTestClassAttribute.cs b/tests/FlatBuffers.Test/FlatBuffersTestClassAttribute.cs index f43b8ce79..ce629518e 100644 --- a/tests/FlatBuffers.Test/FlatBuffersTestClassAttribute.cs +++ b/tests/FlatBuffers.Test/FlatBuffersTestClassAttribute.cs @@ -1,4 +1,20 @@ -using System; +/* + * Copyright 2016 Google Inc. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +using System; using System.Collections.Generic; using System.Linq; using System.Text; diff --git a/tests/FlatBuffers.Test/FlatBuffersTestMethodAttribute.cs b/tests/FlatBuffers.Test/FlatBuffersTestMethodAttribute.cs index 38d448868..1da867abd 100644 --- a/tests/FlatBuffers.Test/FlatBuffersTestMethodAttribute.cs +++ b/tests/FlatBuffers.Test/FlatBuffersTestMethodAttribute.cs @@ -1,4 +1,20 @@ -using System; +/* + * Copyright 2016 Google Inc. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + using System; namespace FlatBuffers.Test { diff --git a/tests/FlatBuffers.Test/FuzzTestData.cs b/tests/FlatBuffers.Test/FuzzTestData.cs index b0447adbf..a7c120a8b 100644 --- a/tests/FlatBuffers.Test/FuzzTestData.cs +++ b/tests/FlatBuffers.Test/FuzzTestData.cs @@ -1,4 +1,20 @@ -using System; +/* + * Copyright 2016 Google Inc. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +using System; namespace FlatBuffers.Test { diff --git a/tests/FlatBuffers.Test/Lcg.cs b/tests/FlatBuffers.Test/Lcg.cs index 1182640dc..c329ed84a 100644 --- a/tests/FlatBuffers.Test/Lcg.cs +++ b/tests/FlatBuffers.Test/Lcg.cs @@ -1,3 +1,19 @@ +/* + * Copyright 2016 Google Inc. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + namespace FlatBuffers.Test { /// diff --git a/tests/FlatBuffers.Test/TestTable.cs b/tests/FlatBuffers.Test/TestTable.cs index 89a507ec7..c51237b21 100644 --- a/tests/FlatBuffers.Test/TestTable.cs +++ b/tests/FlatBuffers.Test/TestTable.cs @@ -1,3 +1,19 @@ +/* + * Copyright 2016 Google Inc. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + namespace FlatBuffers.Test { /// diff --git a/tests/JavaScriptTest.sh b/tests/JavaScriptTest.sh index 3d3100756..799c55e20 100755 --- a/tests/JavaScriptTest.sh +++ b/tests/JavaScriptTest.sh @@ -1,5 +1,19 @@ #!/bin/sh +# Copyright 2016 Google Inc. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + pushd "$(dirname $0)" >/dev/null ../flatc -b monster_test.fbs unicode_test.json node JavaScriptTest