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 TOPLEVEL=$(git rev-parse --show-toplevel)
7 TOPPERLEVEL=$(dirname $TOPLEVEL)
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.
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.
17 The simplest chromium and/or blink instructions follow for convenience.
19 1. Make sure the parent directory of this checkout is empty, besides this repo:
23 if [[ "$(ls "$TOPPERLEVEL")" != 'src' ]]
25 echo Please move this repo to its own directory before continuing!!!
30 2. Please add a .gclient file to $TOPPERLEVEL/.gclient of the form:
31 # ======== .gclient begins =========
33 'name': '$(basename "$TOPLEVEL")',
34 'url': 'https://chromium.googlesource.com/chromium/src.git',
36 'deps_file': '.DEPS.git',
37 # Uncomment the following if you're doing blink development
38 # 'custom_vars': {'webkit_revision': ''},
40 # ======== .gclient ends =========
42 3. Run \`gclient sync\` to synchronize dependencies in your checkout instead of $(basename "$0")!