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.
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.
13 if [[ ${#} -lt 2 ]]; then
14 echo "usage: ${0} <target_dir> file [...]" >& 2
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}"
25 mkdir
-p "${TARGET_DIR}"
26 cp "${@}" "${TARGET_DIR}"