Home | History | Annotate | Download | only in postbuild-defaults
      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 
      6 set -e
      7 
      8 # This is the built Info.plist in the output directory.
      9 PLIST="${BUILT_PRODUCTS_DIR}"/Test.app/Contents/Info  # No trailing .plist
     10 echo $(defaults read "${PLIST}" "CFBundleName") > "${BUILT_PRODUCTS_DIR}/result"
     11 
     12 # This is the source Info.plist next to this script file.
     13 PLIST="${SRCROOT}"/Info  # No trailing .plist
     14 echo $(defaults read "${PLIST}" "CFBundleName") \
     15     >> "${BUILT_PRODUCTS_DIR}/result"
     16