Merge revision 13659 to trunk.
Review URL: https://codereview.chromium.org//11138016

git-svn-id: http://dart.googlecode.com/svn/trunk@13660 260f80e4-7a28-3924-810f-c04153c831b5
diff --git a/tools/VERSION b/tools/VERSION
index 1615c70..d7e61b7 100644
--- a/tools/VERSION
+++ b/tools/VERSION
@@ -1,4 +1,4 @@
 MAJOR 0
 MINOR 1
 BUILD 6
-PATCH 1 
+PATCH 2
diff --git a/tools/release/version.dart b/tools/release/version.dart
index efb014a..92ca624 100644
--- a/tools/release/version.dart
+++ b/tools/release/version.dart
@@ -54,7 +54,7 @@
       }
       StringInputStream input = new StringInputStream(f.openInputStream());
       input.onLine = () {
-        var line = input.readLine();
+        var line = input.readLine().trim();
         if (line == null) {
           c.completeException(
               "VERSION input file seems to be in the wrong format");