| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 | 2 |
| 3 # Copyright 2015 The WebRTC project authors. All Rights Reserved. | 3 # Copyright 2015 The WebRTC project authors. All Rights Reserved. |
| 4 # | 4 # |
| 5 # Use of this source code is governed by a BSD-style license | 5 # Use of this source code is governed by a BSD-style license |
| 6 # that can be found in the LICENSE file in the root of the source | 6 # that can be found in the LICENSE file in the root of the source |
| 7 # tree. An additional intellectual property rights grant can be found | 7 # tree. An additional intellectual property rights grant can be found |
| 8 # in the file PATENTS. All contributing project authors may | 8 # in the file PATENTS. All contributing project authors may |
| 9 # be found in the AUTHORS file in the root of the source tree. | 9 # be found in the AUTHORS file in the root of the source tree. |
| 10 | 10 |
| 11 # Generates static FAT libraries for ios in out_ios_libs. | 11 # Generates static FAT libraries for ios in out_ios_libs. |
| 12 | 12 |
| 13 # Exit on errors. | 13 # Exit on errors. |
| 14 set -e | 14 set -e |
| 15 | 15 |
| 16 # Environment | 16 # Environment |
| 17 export PATH=/usr/libexec:$PATH | 17 export PATH=/usr/libexec:$PATH |
| 18 | 18 |
| 19 SCRIPT_DIR=$(cd $(dirname $0) && pwd) | 19 SCRIPT_DIR=$(cd $(dirname $0) && pwd) |
| 20 WEBRTC_BASE_DIR=${SCRIPT_DIR}/../../.. | 20 WEBRTC_BASE_DIR=${SCRIPT_DIR}/../.. |
| 21 | 21 |
| 22 function clean_artifacts { | 22 function clean_artifacts { |
| 23 local output_dir=$1 | 23 local output_dir=$1 |
| 24 if [[ -d ${output_dir} ]]; then | 24 if [[ -d ${output_dir} ]]; then |
| 25 echo "Deleting ${output_dir}" | 25 echo "Deleting ${output_dir}" |
| 26 rm -r ${output_dir} | 26 rm -r ${output_dir} |
| 27 fi | 27 fi |
| 28 } | 28 } |
| 29 | 29 |
| 30 function build_webrtc { | 30 function build_webrtc { |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 VERSION_NUMBER="${MAJOR_MINOR}.${WEBRTC_REVISION}" | 207 VERSION_NUMBER="${MAJOR_MINOR}.${WEBRTC_REVISION}" |
| 208 echo "Substituting revision number: ${VERSION_NUMBER}" | 208 echo "Substituting revision number: ${VERSION_NUMBER}" |
| 209 PlistBuddy -c "Set :CFBundleVersion ${VERSION_NUMBER}" ${INFOPLIST_PATH} | 209 PlistBuddy -c "Set :CFBundleVersion ${VERSION_NUMBER}" ${INFOPLIST_PATH} |
| 210 plutil -convert binary1 ${INFOPLIST_PATH} | 210 plutil -convert binary1 ${INFOPLIST_PATH} |
| 211 else | 211 else |
| 212 echo "BUILD_TYPE ${BUILD_TYPE} not supported." | 212 echo "BUILD_TYPE ${BUILD_TYPE} not supported." |
| 213 exit 1 | 213 exit 1 |
| 214 fi | 214 fi |
| 215 | 215 |
| 216 echo "Done." | 216 echo "Done." |
| OLD | NEW |