1#!/bin/bash
2# Copyright (c) 2012 Google Inc. All rights reserved.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6set -e
7
8# This is the built Info.plist in the output directory.
9PLIST="${BUILT_PRODUCTS_DIR}"/Test.app/Contents/Info  # No trailing .plist
10echo $(defaults read "${PLIST}" "CFBundleName") > "${BUILT_PRODUCTS_DIR}/result"
11
12# This is the source Info.plist next to this script file.
13PLIST="${SRCROOT}"/Info  # No trailing .plist
14echo $(defaults read "${PLIST}" "CFBundleName") \
15    >> "${BUILT_PRODUCTS_DIR}/result"
16