summaryrefslogtreecommitdiffstats
path: root/third_party/python/gyp/test/mac/postbuild-defaults/postbuild-defaults.sh
blob: 56af2a8329bd67df5b990452feb44f9670691a8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
# Copyright (c) 2012 Google Inc. 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

# This is the built Info.plist in the output directory.
PLIST="${BUILT_PRODUCTS_DIR}"/Test.app/Contents/Info  # No trailing .plist
echo $(defaults read "${PLIST}" "CFBundleName") > "${BUILT_PRODUCTS_DIR}/result"

# This is the source Info.plist next to this script file.
PLIST="${SRCROOT}"/Info  # No trailing .plist
echo $(defaults read "${PLIST}" "CFBundleName") \
    >> "${BUILT_PRODUCTS_DIR}/result"