Index: update_depot_tools |
=================================================================== |
--- update_depot_tools (revision 77978) |
+++ update_depot_tools (working copy) |
@@ -38,6 +38,10 @@ |
fi |
} |
+# Get the current SVN revision. |
+get_svn_revision() { |
+ echo `svn info | awk '{ if ($1 == "Revision:") { print $2 }}'` |
+} |
# Update git checkouts prior the cygwin check, we don't want to use msysgit. |
if [ "X$DEPOT_TOOLS_UPDATE" != "X0" -a -e "$base_dir/.git" ] |
@@ -57,5 +61,10 @@ |
then |
# Update the bootstrap directory to stay up-to-date with the latest |
# depot_tools. |
+ BEFORE_REVISION=$(get_svn_revision) |
svn -q up "$base_dir" |
+ AFTER_REVISION=$(get_svn_revision) |
+ if [[ "$BEFORE_REVISION" != "$AFTER_REVISION" ]]; then |
M-A Ruel
2011/03/14 00:42:48
you could use?
if [ ! "$BEFORE_REVISION"=="$AFTER
|
+ echo "Depot Tools has been updated to revision $AFTER_REVISION." |
+ fi |
fi |