| 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 |
| 17 export PATH=/usr/libexec:$PATH |
| 18 |
| 16 SCRIPT_DIR=$(cd $(dirname $0) && pwd) | 19 SCRIPT_DIR=$(cd $(dirname $0) && pwd) |
| 17 WEBRTC_BASE_DIR=${SCRIPT_DIR}/../../.. | 20 WEBRTC_BASE_DIR=${SCRIPT_DIR}/../../.. |
| 18 | 21 |
| 19 function clean_artifacts { | 22 function clean_artifacts { |
| 20 local output_dir=$1 | 23 local output_dir=$1 |
| 21 if [[ -d ${output_dir} ]]; then | 24 if [[ -d ${output_dir} ]]; then |
| 22 echo "Deleting ${output_dir}" | 25 echo "Deleting ${output_dir}" |
| 23 rm -r ${output_dir} | 26 rm -r ${output_dir} |
| 24 fi | 27 fi |
| 25 } | 28 } |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 VERSION_NUMBER="${MAJOR_MINOR}.${WEBRTC_REVISION}" | 197 VERSION_NUMBER="${MAJOR_MINOR}.${WEBRTC_REVISION}" |
| 195 echo "Substituting revision number: ${VERSION_NUMBER}" | 198 echo "Substituting revision number: ${VERSION_NUMBER}" |
| 196 PlistBuddy -c "Set :CFBundleVersion ${VERSION_NUMBER}" ${INFOPLIST_PATH} | 199 PlistBuddy -c "Set :CFBundleVersion ${VERSION_NUMBER}" ${INFOPLIST_PATH} |
| 197 plutil -convert binary1 ${INFOPLIST_PATH} | 200 plutil -convert binary1 ${INFOPLIST_PATH} |
| 198 else | 201 else |
| 199 echo "BUILD_TYPE ${BUILD_TYPE} not supported." | 202 echo "BUILD_TYPE ${BUILD_TYPE} not supported." |
| 200 exit 1 | 203 exit 1 |
| 201 fi | 204 fi |
| 202 | 205 |
| 203 echo "Done." | 206 echo "Done." |
| OLD | NEW |