blob: f6668378f9fc311c8b70f39560c5b152df5617e6 [file] [log] [blame]
# Copyright (c) 2011 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.
for board_root in /build/*; do
if [ -h "${board_root}" ]; then
board=$(basename "${board_root}")
info "Removing hard-coded paths to ${board_root} in *.pc files"
sudo find "${board_root}/usr" -type f -name '*.pc' | xargs sudo \
sed -i -e "s|${board_root}/|/|g"
info "Chroot upgraded to version 5: fix symlinked *.pc files"
exit 0