OLD | NEW |
| (Empty) |
1 #!/bin/bash | |
2 | |
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
4 # Use of this source code is governed by a BSD-style license that can be | |
5 # found in the LICENSE file. | |
6 | |
7 # A normal 'copies' section slightly alters the binaries copied by changing | |
8 # the vmsize of their __LINKEDIT segments, invalidating their signatures. This | |
9 # script performs the copies without alteration. | |
10 | |
11 set -eu | |
12 | |
13 if [[ ${#} -lt 2 ]]; then | |
14 echo "usage: ${0} <target_dir> file [...]" >& 2 | |
15 exit 1 | |
16 fi | |
17 | |
18 TARGET_DIR="${1}" | |
19 shift | |
20 | |
21 # Because ninja (and maybe make) had been making symbolic links in | |
22 # ${TARGET_DIR}, blow the whole thing away and start fresh. | |
23 rm -rf "${TARGET_DIR}" | |
24 | |
25 mkdir -p "${TARGET_DIR}" | |
26 cp "${@}" "${TARGET_DIR}" | |
OLD | NEW |