| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 # Creates a stripped copy of a library for inclusion in an apk. | 6 # Creates a stripped copy of a library for inclusion in an apk. |
| 7 | 7 |
| 8 if [[ $# -ne 3 ]] | 8 if [[ $# -ne 3 ]] |
| 9 then | 9 then |
| 10 echo "Usage: prepare_library_for_apk android_strip path/to/library stripped/li
brary/output/path" | 10 echo "Usage: prepare_library_for_apk android_strip path/to/library stripped/li
brary/output/path" |
| 11 exit 1 | 11 exit 1 |
| 12 fi | 12 fi |
| 13 | 13 |
| 14 ANDROID_STRIP=$1 | 14 ANDROID_STRIP=$1 |
| 15 LIBRARY=$2 | 15 LIBRARY=$2 |
| 16 STRIPPED=$3 | 16 STRIPPED=$3 |
| 17 | 17 |
| 18 set -ex | 18 set -e |
| 19 $ANDROID_STRIP --strip-unneeded $LIBRARY -o $STRIPPED | 19 $ANDROID_STRIP --strip-unneeded $LIBRARY -o $STRIPPED |
| OLD | NEW |