OLD | NEW |
1 #!/usr/bin/env bash | 1 #!/bin/sh |
2 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 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. |
11 exit | 11 exit |
12 fi | 12 fi |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 then | 72 then |
73 # Update the bootstrap directory to stay up-to-date with the latest | 73 # Update the bootstrap directory to stay up-to-date with the latest |
74 # depot_tools. | 74 # depot_tools. |
75 BEFORE_REVISION=$(get_svn_revision) | 75 BEFORE_REVISION=$(get_svn_revision) |
76 svn -q up "$base_dir" | 76 svn -q up "$base_dir" |
77 AFTER_REVISION=$(get_svn_revision) | 77 AFTER_REVISION=$(get_svn_revision) |
78 if [[ "$BEFORE_REVISION" != "$AFTER_REVISION" ]]; then | 78 if [[ "$BEFORE_REVISION" != "$AFTER_REVISION" ]]; then |
79 echo "Depot Tools has been updated to revision $AFTER_REVISION." 1>&2 | 79 echo "Depot Tools has been updated to revision $AFTER_REVISION." 1>&2 |
80 fi | 80 fi |
81 fi | 81 fi |
OLD | NEW |