OLD | NEW |
| (Empty) |
1 #!/usr/bin/env bash | |
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 | |
6 TOPLEVEL=$(git rev-parse --show-toplevel) | |
7 TOPPERLEVEL=$(dirname $TOPLEVEL) | |
8 | |
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. | |
13 | |
14 Please consult https://code.google.com/p/chromium/wiki/UsingGitSubmodules#Conver
t_from_submodules_to_gclient | |
15 for instructions on how to convert your submodule checkout to gclient. | |
16 | |
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 | |
21 EOF | |
22 ls "$TOPPERLEVEL" | |
23 if [[ "$(ls "$TOPPERLEVEL")" != 'src' ]] | |
24 then | |
25 echo Please move this repo to its own directory before continuing!!! | |
26 fi | |
27 echo | |
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 | |
38 # 'custom_vars': {'webkit_revision': ''}, | |
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 | |
OLD | NEW |