1*5a923131SAndroid Build Coastguard Worker#!/bin/bash 2*5a923131SAndroid Build Coastguard Worker 3*5a923131SAndroid Build Coastguard Worker# 4*5a923131SAndroid Build Coastguard Worker# Copyright (C) 2015 The Android Open Source Project 5*5a923131SAndroid Build Coastguard Worker# 6*5a923131SAndroid Build Coastguard Worker# Licensed under the Apache License, Version 2.0 (the "License"); 7*5a923131SAndroid Build Coastguard Worker# you may not use this file except in compliance with the License. 8*5a923131SAndroid Build Coastguard Worker# You may obtain a copy of the License at 9*5a923131SAndroid Build Coastguard Worker# 10*5a923131SAndroid Build Coastguard Worker# http://www.apache.org/licenses/LICENSE-2.0 11*5a923131SAndroid Build Coastguard Worker# 12*5a923131SAndroid Build Coastguard Worker# Unless required by applicable law or agreed to in writing, software 13*5a923131SAndroid Build Coastguard Worker# distributed under the License is distributed on an "AS IS" BASIS, 14*5a923131SAndroid Build Coastguard Worker# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15*5a923131SAndroid Build Coastguard Worker# See the License for the specific language governing permissions and 16*5a923131SAndroid Build Coastguard Worker# limitations under the License. 17*5a923131SAndroid Build Coastguard Worker# 18*5a923131SAndroid Build Coastguard Worker 19*5a923131SAndroid Build Coastguard Workerset -e 20*5a923131SAndroid Build Coastguard Worker 21*5a923131SAndroid Build Coastguard WorkerOUT=$1 22*5a923131SAndroid Build Coastguard Workershift 23*5a923131SAndroid Build Coastguard WorkerPC_IN=$1 24*5a923131SAndroid Build Coastguard Workershift 25*5a923131SAndroid Build Coastguard WorkerINCLUDE_DIR=$1 26*5a923131SAndroid Build Coastguard Workershift 27*5a923131SAndroid Build Coastguard Worker 28*5a923131SAndroid Build Coastguard Workersed \ 29*5a923131SAndroid Build Coastguard Worker -e "s|@INCLUDE_DIR@|${INCLUDE_DIR}|g" \ 30*5a923131SAndroid Build Coastguard Worker "${PC_IN}.pc.in" > "${OUT}/${PC_IN}.pc" 31