#!/bin/bash | |
# Copyright 2015 The Chromium OS Authors. All rights reserved. | |
# Use of this source code is governed by a BSD-style license that can be | |
# found in the LICENSE file. | |
set -e | |
OUT=$1 | |
v=$2 | |
deps=$(<"${OUT}"/gen/libweave-${v}-deps.txt) | |
sed \ | |
-e "s/@BSLOT@/${v}/g" \ | |
-e "s/@PRIVATE_PC@/${deps}/g" \ | |
"libweave.pc.in" > "${OUT}/lib/libweave-${v}.pc" | |
deps_test=$(<"${OUT}"/gen/libweave-test-${v}-deps.txt) | |
sed \ | |
-e "s/@BSLOT@/${v}/g" \ | |
-e "s/@PRIVATE_PC@/${deps_test}/g" \ | |
"libweave-test.pc.in" > "${OUT}/lib/libweave-test-${v}.pc" |