diff options
Diffstat (limited to 'media/webrtc/trunk/tools/gyp/test/mac/postbuild-defaults/postbuild-defaults.sh')
-rwxr-xr-x | media/webrtc/trunk/tools/gyp/test/mac/postbuild-defaults/postbuild-defaults.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/media/webrtc/trunk/tools/gyp/test/mac/postbuild-defaults/postbuild-defaults.sh b/media/webrtc/trunk/tools/gyp/test/mac/postbuild-defaults/postbuild-defaults.sh new file mode 100755 index 000000000..56af2a832 --- /dev/null +++ b/media/webrtc/trunk/tools/gyp/test/mac/postbuild-defaults/postbuild-defaults.sh @@ -0,0 +1,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" |