From d00350c61bd1ea29ef34da243ac08364a2b9527a Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Fri, 17 Nov 2017 10:55:38 -0800 Subject: [PATCH] Add license headers to all go and shell files Test: none Change-Id: I75c443e05f2b1e17fcb6823182717d2e6f5df7c4 --- androidmk/cmd/androidmk/android.go | 14 ++++++++++++++ androidmk/cmd/androidmk/androidmk.go | 14 ++++++++++++++ androidmk/cmd/androidmk/values.go | 14 ++++++++++++++ androidmk/parser/ast.go | 14 ++++++++++++++ androidmk/parser/make_strings.go | 14 ++++++++++++++ androidmk/parser/make_strings_test.go | 14 ++++++++++++++ androidmk/parser/parser.go | 14 ++++++++++++++ androidmk/parser/scope.go | 14 ++++++++++++++ bootstrap.bash | 14 ++++++++++++++ cc/cc_test.go | 14 ++++++++++++++ cc/cmakelists.go | 14 ++++++++++++++ cc/config/clang.go | 14 ++++++++++++++ scripts/build-ndk-prebuilts.sh | 14 ++++++++++++++ scripts/copygcclib.sh | 14 ++++++++++++++ scripts/extract-srcjars.sh | 14 ++++++++++++++ scripts/jar-args.sh | 14 ++++++++++++++ scripts/jars-to-module-info-java.sh | 14 ++++++++++++++ scripts/setup_go_workspace_for_soong.sh | 14 ++++++++++++++ scripts/strip.sh | 14 ++++++++++++++ scripts/toc.sh | 14 ++++++++++++++ soong.bash | 14 ++++++++++++++ 21 files changed, 294 insertions(+) diff --git a/androidmk/cmd/androidmk/android.go b/androidmk/cmd/androidmk/android.go index 0de500998..df01cf4a8 100644 --- a/androidmk/cmd/androidmk/android.go +++ b/androidmk/cmd/androidmk/android.go @@ -1,3 +1,17 @@ +// Copyright 2017 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. + package main import ( diff --git a/androidmk/cmd/androidmk/androidmk.go b/androidmk/cmd/androidmk/androidmk.go index 5cb3f7ac8..660d9a01e 100644 --- a/androidmk/cmd/androidmk/androidmk.go +++ b/androidmk/cmd/androidmk/androidmk.go @@ -1,3 +1,17 @@ +// Copyright 2017 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. + package main import ( diff --git a/androidmk/cmd/androidmk/values.go b/androidmk/cmd/androidmk/values.go index 0074bb989..d240a01f3 100644 --- a/androidmk/cmd/androidmk/values.go +++ b/androidmk/cmd/androidmk/values.go @@ -1,3 +1,17 @@ +// Copyright 2017 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. + package main import ( diff --git a/androidmk/parser/ast.go b/androidmk/parser/ast.go index 07e18423d..d5d135443 100644 --- a/androidmk/parser/ast.go +++ b/androidmk/parser/ast.go @@ -1,3 +1,17 @@ +// Copyright 2017 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. + package parser type Pos int diff --git a/androidmk/parser/make_strings.go b/androidmk/parser/make_strings.go index 142dc71c4..e6885a8cc 100644 --- a/androidmk/parser/make_strings.go +++ b/androidmk/parser/make_strings.go @@ -1,3 +1,17 @@ +// Copyright 2017 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. + package parser import ( diff --git a/androidmk/parser/make_strings_test.go b/androidmk/parser/make_strings_test.go index 5636b7943..8ad3d74c4 100644 --- a/androidmk/parser/make_strings_test.go +++ b/androidmk/parser/make_strings_test.go @@ -1,3 +1,17 @@ +// Copyright 2017 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. + package parser import ( diff --git a/androidmk/parser/parser.go b/androidmk/parser/parser.go index ef5b49224..89ee308f7 100644 --- a/androidmk/parser/parser.go +++ b/androidmk/parser/parser.go @@ -1,3 +1,17 @@ +// Copyright 2017 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. + package parser import ( diff --git a/androidmk/parser/scope.go b/androidmk/parser/scope.go index 60efac275..7a514fae5 100644 --- a/androidmk/parser/scope.go +++ b/androidmk/parser/scope.go @@ -1,3 +1,17 @@ +// Copyright 2017 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. + package parser import ( diff --git a/bootstrap.bash b/bootstrap.bash index 769736ff6..4db853912 100755 --- a/bootstrap.bash +++ b/bootstrap.bash @@ -1,5 +1,19 @@ #!/bin/bash +# Copyright 2017 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. + echo '==== ERROR: bootstrap.bash & ./soong are obsolete ====' >&2 echo 'Use `m --skip-make` with a standalone OUT_DIR instead.' >&2 echo 'Without envsetup.sh, use:' >&2 diff --git a/cc/cc_test.go b/cc/cc_test.go index 60c33c2f7..bdc8c178a 100644 --- a/cc/cc_test.go +++ b/cc/cc_test.go @@ -1,3 +1,17 @@ +// Copyright 2017 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. + package cc import ( diff --git a/cc/cmakelists.go b/cc/cmakelists.go index c353f440a..13a2e8e19 100644 --- a/cc/cmakelists.go +++ b/cc/cmakelists.go @@ -1,3 +1,17 @@ +// Copyright 2017 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. + package cc import ( diff --git a/cc/config/clang.go b/cc/config/clang.go index 2345ebc25..2ef153be1 100644 --- a/cc/config/clang.go +++ b/cc/config/clang.go @@ -1,3 +1,17 @@ +// Copyright 2017 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. + package config import ( diff --git a/scripts/build-ndk-prebuilts.sh b/scripts/build-ndk-prebuilts.sh index 197a38d2a..55214b2f6 100755 --- a/scripts/build-ndk-prebuilts.sh +++ b/scripts/build-ndk-prebuilts.sh @@ -1,5 +1,19 @@ #!/bin/bash -ex +# Copyright 2017 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. + if [ -z "${OUT_DIR}" ]; then echo Must set OUT_DIR exit 1 diff --git a/scripts/copygcclib.sh b/scripts/copygcclib.sh index 4bd6f9b47..28359fc92 100755 --- a/scripts/copygcclib.sh +++ b/scripts/copygcclib.sh @@ -1,5 +1,19 @@ #!/bin/bash -e +# Copyright 2017 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. + OUT=$1 shift LIBPATH=$($@ | sed -e "s|^$PWD/||") diff --git a/scripts/extract-srcjars.sh b/scripts/extract-srcjars.sh index 918cf8a53..f81032b67 100755 --- a/scripts/extract-srcjars.sh +++ b/scripts/extract-srcjars.sh @@ -1,5 +1,19 @@ #!/bin/bash -e +# Copyright 2017 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. + # Extracts .java files from source jars in a specified directory and writes out a list of the files if [ -z "$1" -o -z "$2" ]; then diff --git a/scripts/jar-args.sh b/scripts/jar-args.sh index 9f05394d3..340e9a351 100755 --- a/scripts/jar-args.sh +++ b/scripts/jar-args.sh @@ -1,5 +1,19 @@ #!/bin/bash -e +# Copyright 2017 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. + # Script that takes a list of files on stdin and converts it to arguments to jar on stdout # Usage: # find $dir -type f | sort | jar-args.sh $dir > jar_args.txt diff --git a/scripts/jars-to-module-info-java.sh b/scripts/jars-to-module-info-java.sh index 44be54949..dd151983a 100755 --- a/scripts/jars-to-module-info-java.sh +++ b/scripts/jars-to-module-info-java.sh @@ -1,5 +1,19 @@ #!/bin/bash -e +# Copyright 2017 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. + # Extracts the Java package names of all classes in the .jar files and writes a module-info.java # file to stdout that exports all of those packages. diff --git a/scripts/setup_go_workspace_for_soong.sh b/scripts/setup_go_workspace_for_soong.sh index 4b118efb8..1c9a0b7ee 100755 --- a/scripts/setup_go_workspace_for_soong.sh +++ b/scripts/setup_go_workspace_for_soong.sh @@ -1,6 +1,20 @@ #!/bin/bash set -e +# Copyright 2017 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. + #mounts the components of soong into a directory structure that Go tools and editors expect #move to the script's directory diff --git a/scripts/strip.sh b/scripts/strip.sh index b9ff74132..848fe8d42 100755 --- a/scripts/strip.sh +++ b/scripts/strip.sh @@ -1,5 +1,19 @@ #!/bin/bash -e +# Copyright 2017 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. + # Script to handle the various ways soong may need to strip binaries # Inputs: # Environment: diff --git a/scripts/toc.sh b/scripts/toc.sh index 59bf8a3bb..7b2224c0a 100755 --- a/scripts/toc.sh +++ b/scripts/toc.sh @@ -1,5 +1,19 @@ #!/bin/bash -eu +# Copyright 2017 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. + # Script to handle generating a .toc file from a .so file # Inputs: # Environment: diff --git a/soong.bash b/soong.bash index 41608d5f5..8cf2ec68c 100755 --- a/soong.bash +++ b/soong.bash @@ -1,5 +1,19 @@ #!/bin/bash +# Copyright 2017 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. + echo '==== ERROR: bootstrap.bash & ./soong are obsolete ====' >&2 echo 'Use `m --skip-make` with a standalone OUT_DIR instead.' >&2 echo 'Without envsetup.sh, use:' >&2