[email protected] | ec238db | 2014-06-02 20:39:42 | [diff] [blame] | 1 | #!/usr/bin/env bash |
[email protected] | d1a15a0 | 2012-07-30 17:53:18 | [diff] [blame] | 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 | |||||
[email protected] | 5912063 | 2014-05-08 21:59:48 | [diff] [blame] | 6 | TOPLEVEL=$(git rev-parse --show-toplevel) |
7 | TOPPERLEVEL=$(dirname $TOPLEVEL) | ||||
[email protected] | d1a15a0 | 2012-07-30 17:53:18 | [diff] [blame] | 8 | |
[email protected] | 5912063 | 2014-05-08 21:59:48 | [diff] [blame] | 9 | cat <<EOF |
10 | Sorry `whoami`, but the git-submodule flow has been deprecated in order to | ||||
11 | simplify the plethora of SCM choices, and to pave the way towards a git-only | ||||
12 | chromium development flow. | ||||
[email protected] | c1200a8 | 2012-10-25 19:26:31 | [diff] [blame] | 13 | |
[email protected] | 5912063 | 2014-05-08 21:59:48 | [diff] [blame] | 14 | Please consult https://code.google.com/p/chromium/wiki/UsingGitSubmodules#Convert_from_submodules_to_gclient |
15 | for instructions on how to convert your submodule checkout to gclient. | ||||
[email protected] | fdcecad | 2013-03-22 22:26:04 | [diff] [blame] | 16 | |
[email protected] | 5912063 | 2014-05-08 21:59:48 | [diff] [blame] | 17 | The simplest chromium and/or blink instructions follow for convenience. |
18 | |||||
19 | 1. Make sure the parent directory of this checkout is empty, besides this repo: | ||||
20 | $ ls $TOPPERLEVEL | ||||
[email protected] | d1a15a0 | 2012-07-30 17:53:18 | [diff] [blame] | 21 | EOF |
[email protected] | 5912063 | 2014-05-08 21:59:48 | [diff] [blame] | 22 | ls "$TOPPERLEVEL" |
23 | if [[ "$(ls "$TOPPERLEVEL")" != 'src' ]] | ||||
24 | then | ||||
25 | echo Please move this repo to its own directory before continuing!!! | ||||
[email protected] | fdcecad | 2013-03-22 22:26:04 | [diff] [blame] | 26 | fi |
[email protected] | c1200a8 | 2012-10-25 19:26:31 | [diff] [blame] | 27 | echo |
[email protected] | 5912063 | 2014-05-08 21:59:48 | [diff] [blame] | 28 | |
29 | cat <<EOF | ||||
30 | 2. Please add a .gclient file to $TOPPERLEVEL/.gclient of the form: | ||||
31 | # ======== .gclient begins ========= | ||||
32 | solutions = [{ | ||||
33 | 'name': '$(basename "$TOPLEVEL")', | ||||
34 | 'url': 'https://chromium.googlesource.com/chromium/src.git', | ||||
35 | 'managed': False, | ||||
36 | 'deps_file': '.DEPS.git', | ||||
37 | # Uncomment the following if you're doing blink development | ||||
[email protected] | acca42e | 2014-08-28 21:54:23 | [diff] [blame] | 38 | # 'custom_vars': {'webkit_revision': ''}, |
[email protected] | 5912063 | 2014-05-08 21:59:48 | [diff] [blame] | 39 | }] |
40 | # ======== .gclient ends ========= | ||||
41 | |||||
42 | 3. Run \`gclient sync\` to synchronize dependencies in your checkout instead of $(basename "$0")! | ||||
43 | EOF | ||||
44 | |||||
45 | exit 1 |