1*d6050574SRomain Jobredeaux#!/bin/bash 2*d6050574SRomain Jobredeaux# Copyright 2023 The Bazel Authors. All rights reserved. 3*d6050574SRomain Jobredeaux# 4*d6050574SRomain Jobredeaux# Licensed under the Apache License, Version 2.0 (the "License"); 5*d6050574SRomain Jobredeaux# you may not use this file except in compliance with the License. 6*d6050574SRomain Jobredeaux# You may obtain a copy of the License at 7*d6050574SRomain Jobredeaux# 8*d6050574SRomain Jobredeaux# http://www.apache.org/licenses/LICENSE-2.0 9*d6050574SRomain Jobredeaux# 10*d6050574SRomain Jobredeaux# Unless required by applicable law or agreed to in writing, software 11*d6050574SRomain Jobredeaux# distributed under the License is distributed on an "AS IS" BASIS, 12*d6050574SRomain Jobredeaux# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*d6050574SRomain Jobredeaux# See the License for the specific language governing permissions and 14*d6050574SRomain Jobredeaux# limitations under the License. 15*d6050574SRomain Jobredeaux 16*d6050574SRomain Jobredeaux 17*d6050574SRomain Jobredeauxif ! command -v addlicense @>&1 >/dev/null; then 18*d6050574SRomain Jobredeaux echo "ERROR: addlicense not installed." 19*d6050574SRomain Jobredeaux echo "Install using https://github.com/google/addlicense#install" 20*d6050574SRomain Jobredeaux exit 1 21*d6050574SRomain Jobredeauxfi 22*d6050574SRomain Jobredeaux 23*d6050574SRomain Jobredeauxaddlicense -v -l apache -c 'The Bazel Authors. All rights reserved.' "$@" 24