Build bots don't have a three-part default version string,
breaking pattern matching. Handle this case.
* win/tools/scripts/auto-version.pl:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@170954
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2014-07-09 Brent Fulgham <bfulgham@apple.com>
+
+ [Win] Unreviewed build fix.
+
+ Build bots don't have a three-part default version string,
+ breaking pattern matching. Handle this case.
+
+ * win/tools/scripts/auto-version.pl:
+
2014-07-09 Brent Fulgham <bfulgham@apple.com>
[Win] Unreviewed gardening.
my $BUILD_MINOR_VERSION = $2;
my $BUILD_TINY_VERSION = $3;
+# The default version (with no decimals) will be matched by the regexp
+# to $BUILD_TINY_VERSION. If that happens, we need to move it to
+# $BUILD_MAJOR_VERSION.
+if (!defined $BUILD_MAJOR_VERSION && !defined $BUILD_MINOR_VERSION) {
+ $BUILD_MAJOR_VERSION = $BUILD_TINY_VERSION;
+ $BUILD_TINY_VERSION = 0;
+}
+
# Cut the major component down to three characters by dropping any
# extra leading digits, then adjust the major version portion of the
# version string to match.