Only fsync leveldb's directory when the manifest is being updated.
[chromium-blink-merge.git] / android_webview / build / install_binary
blobad63e0dcf182de52463c57d1ed408fb4262da1f5
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.
6 # Copies a possibly stripped binary and a symbol file to installation dirs.
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
14 SOURCE=$1
15 TARGET=$2
16 TARGET2=$3
17 SYMBOLS=$4
18 SYMBOLS2=$5
20 mkdir -p $(dirname $SYMBOLS)
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