blob: b2d1a92bf227afc5aa8afa0016d7a57ea7c89158 [file] [log] [blame]
[email protected]ec238db2014-06-02 20:39:421#!/usr/bin/env bash
[email protected]d1a15a02012-07-30 17:53:182# 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]59120632014-05-08 21:59:486TOPLEVEL=$(git rev-parse --show-toplevel)
7TOPPERLEVEL=$(dirname $TOPLEVEL)
[email protected]d1a15a02012-07-30 17:53:188
[email protected]59120632014-05-08 21:59:489cat <<EOF
10Sorry `whoami`, but the git-submodule flow has been deprecated in order to
11simplify the plethora of SCM choices, and to pave the way towards a git-only
12chromium development flow.
[email protected]c1200a82012-10-25 19:26:3113
[email protected]59120632014-05-08 21:59:4814Please consult https://code.google.com/p/chromium/wiki/UsingGitSubmodules#Convert_from_submodules_to_gclient
15for instructions on how to convert your submodule checkout to gclient.
[email protected]fdcecad2013-03-22 22:26:0416
[email protected]59120632014-05-08 21:59:4817The simplest chromium and/or blink instructions follow for convenience.
18
191. Make sure the parent directory of this checkout is empty, besides this repo:
20$ ls $TOPPERLEVEL
[email protected]d1a15a02012-07-30 17:53:1821EOF
[email protected]59120632014-05-08 21:59:4822ls "$TOPPERLEVEL"
23if [[ "$(ls "$TOPPERLEVEL")" != 'src' ]]
24then
25 echo Please move this repo to its own directory before continuing!!!
[email protected]fdcecad2013-03-22 22:26:0426fi
[email protected]c1200a82012-10-25 19:26:3127echo
[email protected]59120632014-05-08 21:59:4828
29cat <<EOF
302. Please add a .gclient file to $TOPPERLEVEL/.gclient of the form:
31# ======== .gclient begins =========
32solutions = [{
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]acca42e2014-08-28 21:54:2338 # 'custom_vars': {'webkit_revision': ''},
[email protected]59120632014-05-08 21:59:4839}]
40# ======== .gclient ends =========
41
423. Run \`gclient sync\` to synchronize dependencies in your checkout instead of $(basename "$0")!
43EOF
44
45exit 1