blob: b932434f38b5cbf194cf48e86a349638040582fd [file] [log] [blame]
#!/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/libshill-net-${v}-deps.txt)
sed \
-e "s/@BSLOT@/${v}/g" \
-e "s/@PRIVATE_PC@/${deps}/g" \
"net/libshill-net.pc.in" > "${OUT}/lib/libshill-net-${v}.pc"
deps_test=$(<"${OUT}"/gen/libshill-net-test-${v}-deps.txt)
sed \
-e "s/@BSLOT@/${v}/g" \
-e "s/@PRIVATE_PC@/${deps_test}/g" \
"net/libshill-net-test.pc.in" > "${OUT}/lib/libshill-net-test-${v}.pc"