1*e07d83d3SAndroid Build Coastguard Worker#!/bin/bash 2*e07d83d3SAndroid Build Coastguard Worker# Copyright 2017 The gRPC Authors 3*e07d83d3SAndroid Build Coastguard Worker# 4*e07d83d3SAndroid Build Coastguard Worker# Licensed under the Apache License, Version 2.0 (the "License"); 5*e07d83d3SAndroid Build Coastguard Worker# you may not use this file except in compliance with the License. 6*e07d83d3SAndroid Build Coastguard Worker# You may obtain a copy of the License at 7*e07d83d3SAndroid Build Coastguard Worker# 8*e07d83d3SAndroid Build Coastguard Worker# http://www.apache.org/licenses/LICENSE-2.0 9*e07d83d3SAndroid Build Coastguard Worker# 10*e07d83d3SAndroid Build Coastguard Worker# Unless required by applicable law or agreed to in writing, software 11*e07d83d3SAndroid Build Coastguard Worker# distributed under the License is distributed on an "AS IS" BASIS, 12*e07d83d3SAndroid Build Coastguard Worker# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*e07d83d3SAndroid Build Coastguard Worker# See the License for the specific language governing permissions and 14*e07d83d3SAndroid Build Coastguard Worker# limitations under the License. 15*e07d83d3SAndroid Build Coastguard Worker 16*e07d83d3SAndroid Build Coastguard Workerset -e 17*e07d83d3SAndroid Build Coastguard Worker 18*e07d83d3SAndroid Build Coastguard Workerif [ $# -ne 1 ]; then 19*e07d83d3SAndroid Build Coastguard Worker cat <<EOF 20*e07d83d3SAndroid Build Coastguard WorkerUsage: $0 DIR 21*e07d83d3SAndroid Build Coastguard Worker DIR Local repository with files needing to be signed 22*e07d83d3SAndroid Build Coastguard WorkerEOF 23*e07d83d3SAndroid Build Coastguard Worker exit 1 24*e07d83d3SAndroid Build Coastguard Workerfi 25*e07d83d3SAndroid Build Coastguard Worker 26*e07d83d3SAndroid Build Coastguard Workerfind "$1" -type f | egrep -v '\.(md5|sha1)$' | grep -v maven-metadata.xml | xargs gpg -ab 27