| #!/usr/bin/env bash |
| # Copyright 2014 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| # This is a helper to "merge" the required chromium file to Bauxite's |
| # "upstream_chromium" branch. |
| # Before using, make sure that the SRC directory is clean (for instance, run |
| # 'git clean -f -d') in order to not sync any binary files or other artefacts. |
| # |
| # Once this is done, dependencies in Bauxite's "DEPS" file may need to be |
| # manually updated. |
| |
| set -e |
| |
| # Chromium src directory. Can be retrieved with |
| # "fetch --nohooks --no-history chromium" |
| SRC="chromium/src" |
| |
| DEST="bauxite/src" |
| |
| # Note: directories must end with '/' |
| for i in "AUTHORS" "LICENSE" ".gn" "base/" \ |
| "build/" "buildtools/linux64/" "sandbox/" \ |
| "testing/multiprocess_func_list.cc" "testing/multiprocess_func_list.h" \ |
| "testing/test.gni" "third_party/libevent/" \ |
| "third_party/modp_b64/" "tools/clang/scripts/" |
| do |
| rsync -a --delete "$SRC/$i" "$DEST/$i" |
| done |