Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Side by Side Diff: update_depot_tools

Issue 12047061: Point to newer git-1.8.0_bin directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env bash 1 #!/usr/bin/env bash
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # This script will try to sync the bootstrap directories and then defer control. 6 # This script will try to sync the bootstrap directories and then defer control.
7 7
8 if [ "$USER" == "root" ]; 8 if [ "$USER" == "root" ];
9 then 9 then
10 echo Running depot tools as root is sad. 10 echo Running depot tools as root is sad.
(...skipping 12 matching lines...) Expand all
23 MINGW=$? 23 MINGW=$?
24 24
25 CANONICAL_GIT_URL="https://chromium.googlesource.com/chromium/tools/depot_tools. git" 25 CANONICAL_GIT_URL="https://chromium.googlesource.com/chromium/tools/depot_tools. git"
26 26
27 SVN="svn" 27 SVN="svn"
28 if [ -d "$base_dir/svn_bin" -a $MINGW = 0 ]; then 28 if [ -d "$base_dir/svn_bin" -a $MINGW = 0 ]; then
29 SVN="$base_dir/svn_bin/svn.exe" 29 SVN="$base_dir/svn_bin/svn.exe"
30 fi 30 fi
31 31
32 GIT="git" 32 GIT="git"
33 if [ -d "$base_dir/git_bin" -a $MINGW = 0 ]; then 33 if [ -d "$base_dir/git-1.8.0_bin" -a $MINGW = 0 ]; then
34 GIT="$base_dir/git_bin/bin/git.exe" 34 GIT="$base_dir/git-1.8.0_bin/bin/git.exe"
35 fi 35 fi
36 36
37 # Test git and git --version. 37 # Test git and git --version.
38 function test_git { 38 function test_git {
39 local GITV 39 local GITV
40 GITV="$("$GIT" --version)" || { 40 GITV="$("$GIT" --version)" || {
41 echo "git isn't installed, please install it" 41 echo "git isn't installed, please install it"
42 exit 1 42 exit 1
43 } 43 }
44 44
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 # Update the root directory to stay up-to-date with the latest depot_tools. 130 # Update the root directory to stay up-to-date with the latest depot_tools.
131 BEFORE_REVISION=$(get_svn_revision) 131 BEFORE_REVISION=$(get_svn_revision)
132 "$SVN" -q up "$base_dir" 132 "$SVN" -q up "$base_dir"
133 AFTER_REVISION=$(get_svn_revision) 133 AFTER_REVISION=$(get_svn_revision)
134 if [[ "$BEFORE_REVISION" != "$AFTER_REVISION" ]]; then 134 if [[ "$BEFORE_REVISION" != "$AFTER_REVISION" ]]; then
135 echo "Depot Tools has been updated to revision $AFTER_REVISION." 1>&2 135 echo "Depot Tools has been updated to revision $AFTER_REVISION." 1>&2
136 fi 136 fi
137 fi 137 fi
138 138
139 find "$base_dir" -iname "*.pyc" -exec rm {} \; 139 find "$base_dir" -iname "*.pyc" -exec rm {} \;
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698