#!/bin/bash | |
# Copyright 2014 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/libwebserv-${v}-deps.txt) | |
sed \ | |
-e "s/@BSLOT@/${v}/g" \ | |
-e "s/@PRIVATE_PC@/${deps}/g" \ | |
"libwebserv/libwebserv.pc.in" > "${OUT}/lib/libwebserv-${v}.pc" |