1#!/bin/bash 2# Copyright 2023 Google Inc. All rights reserved. 3 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7 8# http://www.apache.org/licenses/LICENSE-2.0 9 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15 16#apply template 1 to these file extensions 17scanning_dir=$1 18bot_dir=$(dirname "$0") 19sh $bot_dir/copyright_fixer.sh $scanning_dir "cpp" $bot_dir/copyright_template_1.txt 20sh $bot_dir/copyright_fixer.sh $scanning_dir "cc" $bot_dir/copyright_template_1.txt 21sh $bot_dir/copyright_fixer.sh $scanning_dir "h" $bot_dir/copyright_template_1.txt 22sh $bot_dir/copyright_fixer.sh $scanning_dir "java" $bot_dir/copyright_template_1.txt 23sh $bot_dir/copyright_fixer.sh $scanning_dir "proto" $bot_dir/copyright_template_1.txt 24sh $bot_dir/copyright_fixer.sh $scanning_dir "js" $bot_dir/copyright_template_1.txt 25sh $bot_dir/copyright_fixer.sh $scanning_dir "css" $bot_dir/copyright_template_1.txt 26 27#apply template 2 to these file extensions 28sh $bot_dir/copyright_fixer.sh $scanning_dir "rs" $bot_dir/copyright_template_2.txt 29sh $bot_dir/copyright_fixer.sh $scanning_dir "go" $bot_dir/copyright_template_2.txt 30 31#apply template 3 to these file extensions 32sh $bot_dir/copyright_fixer.sh $scanning_dir "html" $bot_dir/copyright_template_3.txt 33 34#apply template 4 to these file extensions 35sh $bot_dir/copyright_fixer.sh $scanning_dir "xml" $bot_dir/copyright_template_4.txt 36 37#apply template 5 to these file extensions 38sh $bot_dir/copyright_fixer.sh $scanning_dir "sh" $bot_dir/copyright_template_5.txt 39sh $bot_dir/copyright_fixer.sh $scanning_dir "bp" $bot_dir/copyright_template_5.txt 40sh $bot_dir/copyright_fixer.sh $scanning_dir "mk" $bot_dir/copyright_template_5.txt