| OLD | NEW |
| 1 #!/usr/bin/env bash | 1 #!/usr/bin/env bash |
| 2 # Copyright (c) 2011 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. |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 then | 87 then |
| 88 # Update the bootstrap directory to stay up-to-date with the latest | 88 # Update the bootstrap directory to stay up-to-date with the latest |
| 89 # depot_tools. | 89 # depot_tools. |
| 90 BEFORE_REVISION=$(get_svn_revision) | 90 BEFORE_REVISION=$(get_svn_revision) |
| 91 "$SVN" -q up "$base_dir" | 91 "$SVN" -q up "$base_dir" |
| 92 AFTER_REVISION=$(get_svn_revision) | 92 AFTER_REVISION=$(get_svn_revision) |
| 93 if [[ "$BEFORE_REVISION" != "$AFTER_REVISION" ]]; then | 93 if [[ "$BEFORE_REVISION" != "$AFTER_REVISION" ]]; then |
| 94 echo "Depot Tools has been updated to revision $AFTER_REVISION." 1>&2 | 94 echo "Depot Tools has been updated to revision $AFTER_REVISION." 1>&2 |
| 95 fi | 95 fi |
| 96 fi | 96 fi |
| 97 |
| 98 find "$base_dir" -iname "*.pyc" -delete |
| OLD | NEW |