- add sources.
[platform/framework/web/crosswalk.git] / src / android_webview / build / install_binary
1 #!/bin/bash -x
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
4 # found in the LICENSE file.
5
6 # Copies a possibly stripped binary and a symbol file to installation dirs.
7
8 if [ "$3" = "" ]
9 then
10   echo "Usage: install_binary path/to/binary path/to/target1 path/to/target2 path/to/symbols path/to/symbols2"
11   exit 1
12 fi
13
14 SOURCE=$1
15 TARGET=$2
16 TARGET2=$3
17 SYMBOLS=$4
18 SYMBOLS2=$5
19
20 mkdir -p $(dirname $SYMBOLS)
21
22 cp $SOURCE $SYMBOLS
23 # Create a hard link to avoid the additional copy to the secondary location.
24 ln $SYMBOLS $SYMBOLS2
25 $STRIP --strip-unneeded $SOURCE -o $TARGET
26 cp $TARGET $TARGET2