<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[171798] trunk</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/171798">171798</a></dd>
<dt>Author</dt> <dd>bfulgham@apple.com</dd>
<dt>Date</dt> <dd>2014-07-30 09:35:17 -0700 (Wed, 30 Jul 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>[Win] Modify version numbering scheme to support 5-tuple versions
https://bugs.webkit.org/show_bug.cgi?id=135400
&lt;rdar://problem/17849033&gt;

Reviewed by David Kilzer.


Source/JavaScriptCore: 
* JavaScriptCore.vcxproj/JavaScriptCorePostBuild.cmd: Use the
new version-stamp.pl script to version JavaScriptCore.dll.

Source/WebKit: 
* WebKit.vcxproj/WebKit/WebKitPostBuild.cmd: Use the new
version-stamp.pl script to version JavaScriptCore.dll.

Source/WTF: 
* WTF.vcxproj/WTFPostBuild.cmd: Use new version-stamp.pl script
to version WTF.dll.
* WTF.vcxproj/WTFPreBuild.cmd: Make sure we have created the
appropriate version resource during builds.

Tools: 
Update test cases to recognize that we can only support Major
values from 0-65535, Minor values from 0-64, Tiny values from 0-999,
Micro values from 0-64, and Nano values from 0-999.

* Scripts/webkitperl/auto-version_unittest/autoVersionTests.pl: Update
test expectations for physical limits.

WebKitLibraries: 
Revise the auto-version.pl script so that it generates a set of packed
version tuples that allow us to map 5-tuple versions into something
that will work with Windows' 3-tuple version structure.

* win/tools/scripts/auto-version.pl:
(packTwoValues): Added,
(splitVersion): Revised to return packed combination of minor-tiny and
micro-nano to be used as &quot;MINOR&quot; and &quot;TINY&quot; portion of version.
(splitBuildMajorVersion): Deleted.
* win/tools/scripts/version-stamp.pl: Added.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceJavaScriptCoreChangeLog">trunk/Source/JavaScriptCore/ChangeLog</a></li>
<li><a href="#trunkSourceJavaScriptCoreJavaScriptCorevcxprojJavaScriptCorePostBuildcmd">trunk/Source/JavaScriptCore/JavaScriptCore.vcxproj/JavaScriptCorePostBuild.cmd</a></li>
<li><a href="#trunkSourceWTFChangeLog">trunk/Source/WTF/ChangeLog</a></li>
<li><a href="#trunkSourceWTFWTFvcxprojWTFPostBuildcmd">trunk/Source/WTF/WTF.vcxproj/WTFPostBuild.cmd</a></li>
<li><a href="#trunkSourceWTFWTFvcxprojWTFPreBuildcmd">trunk/Source/WTF/WTF.vcxproj/WTFPreBuild.cmd</a></li>
<li><a href="#trunkSourceWebKitChangeLog">trunk/Source/WebKit/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitWebKitvcxprojWebKitWebKitPostBuildcmd">trunk/Source/WebKit/WebKit.vcxproj/WebKit/WebKitPostBuild.cmd</a></li>
<li><a href="#trunkToolsChangeLog">trunk/Tools/ChangeLog</a></li>
<li><a href="#trunkToolsScriptswebkitperlautoversion_unittestautoVersionTestspl">trunk/Tools/Scripts/webkitperl/auto-version_unittest/autoVersionTests.pl</a></li>
<li><a href="#trunkWebKitLibrariesChangeLog">trunk/WebKitLibraries/ChangeLog</a></li>
<li><a href="#trunkWebKitLibrarieswintoolsscriptsautoversionpl">trunk/WebKitLibraries/win/tools/scripts/auto-version.pl</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkWebKitLibrarieswintoolsscriptsversionstamppl">trunk/WebKitLibraries/win/tools/scripts/version-stamp.pl</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceJavaScriptCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/ChangeLog (171797 => 171798)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/ChangeLog        2014-07-30 16:23:04 UTC (rev 171797)
+++ trunk/Source/JavaScriptCore/ChangeLog        2014-07-30 16:35:17 UTC (rev 171798)
</span><span class="lines">@@ -1,3 +1,14 @@
</span><ins>+2014-07-29  Brent Fulgham  &lt;bfulgham@apple.com&gt;
+
+        [Win] Modify version numbering scheme to support 5-tuple versions
+        https://bugs.webkit.org/show_bug.cgi?id=135400
+        &lt;rdar://problem/17849033&gt;
+
+        Reviewed by David Kilzer.
+
+        * JavaScriptCore.vcxproj/JavaScriptCorePostBuild.cmd: Use the
+        new version-stamp.pl script to version JavaScriptCore.dll.
+
</ins><span class="cx"> 2014-07-29  Daniel Bates  &lt;dabates@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Use WTF::move() instead of std::move() to help ensure move semantics
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreJavaScriptCorevcxprojJavaScriptCorePostBuildcmd"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/JavaScriptCore.vcxproj/JavaScriptCorePostBuild.cmd (171797 => 171798)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/JavaScriptCore.vcxproj/JavaScriptCorePostBuild.cmd        2014-07-30 16:23:04 UTC (rev 171797)
+++ trunk/Source/JavaScriptCore/JavaScriptCore.vcxproj/JavaScriptCorePostBuild.cmd        2014-07-30 16:35:17 UTC (rev 171798)
</span><span class="lines">@@ -1,2 +1,2 @@
</span><del>-if exist &quot;%WEBKIT_LIBRARIES%\tools\VersionStamper\VersionStamper.exe&quot; &quot;%WEBKIT_LIBRARIES%\tools\VersionStamper\VersionStamper.exe&quot; --verbose &quot;%TARGETPATH%&quot;
</del><ins>+perl &quot;%WEBKIT_LIBRARIES%\tools\scripts\version-stamp.pl&quot; &quot;%INTDIR%&quot; &quot;%TARGETPATH%&quot;
</ins><span class="cx"> if exist &quot;%CONFIGURATIONBUILDDIR%\buildfailed&quot; del &quot;%CONFIGURATIONBUILDDIR%\buildfailed&quot;
</span></span></pre></div>
<a id="trunkSourceWTFChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/ChangeLog (171797 => 171798)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/ChangeLog        2014-07-30 16:23:04 UTC (rev 171797)
+++ trunk/Source/WTF/ChangeLog        2014-07-30 16:35:17 UTC (rev 171798)
</span><span class="lines">@@ -1,3 +1,16 @@
</span><ins>+2014-07-29  Brent Fulgham  &lt;bfulgham@apple.com&gt;
+
+        [Win] Modify version numbering scheme to support 5-tuple versions
+        https://bugs.webkit.org/show_bug.cgi?id=135400
+        &lt;rdar://problem/17849033&gt;
+
+        Reviewed by David Kilzer.
+
+        * WTF.vcxproj/WTFPostBuild.cmd: Use new version-stamp.pl script
+        to version WTF.dll.
+        * WTF.vcxproj/WTFPreBuild.cmd: Make sure we have created the
+        appropriate version resource during builds.
+
</ins><span class="cx"> 2014-07-29  Daniel Bates  &lt;dabates@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Use WTF::move() instead of std::move() to help ensure move semantics
</span></span></pre></div>
<a id="trunkSourceWTFWTFvcxprojWTFPostBuildcmd"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/WTF.vcxproj/WTFPostBuild.cmd (171797 => 171798)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/WTF.vcxproj/WTFPostBuild.cmd        2014-07-30 16:23:04 UTC (rev 171797)
+++ trunk/Source/WTF/WTF.vcxproj/WTFPostBuild.cmd        2014-07-30 16:35:17 UTC (rev 171798)
</span><span class="lines">@@ -1,2 +1,2 @@
</span><span class="cx"> if exist &quot;%CONFIGURATIONBUILDDIR%\buildfailed&quot; del &quot;%CONFIGURATIONBUILDDIR%\buildfailed&quot;
</span><del>-if exist &quot;%WEBKIT_LIBRARIES%\tools\VersionStamper\VersionStamper.exe&quot; &quot;%WEBKIT_LIBRARIES%\tools\VersionStamper\VersionStamper.exe&quot; --verbose &quot;%TARGETPATH%&quot;
</del><span class="cx">\ No newline at end of file
</span><ins>+perl &quot;%WEBKIT_LIBRARIES%\tools\scripts\version-stamp.pl&quot; &quot;%INTDIR%&quot; &quot;%TARGETPATH%&quot;
</ins></span></pre></div>
<a id="trunkSourceWTFWTFvcxprojWTFPreBuildcmd"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/WTF.vcxproj/WTFPreBuild.cmd (171797 => 171798)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/WTF.vcxproj/WTFPreBuild.cmd        2014-07-30 16:23:04 UTC (rev 171797)
+++ trunk/Source/WTF/WTF.vcxproj/WTFPreBuild.cmd        2014-07-30 16:35:17 UTC (rev 171798)
</span><span class="lines">@@ -4,3 +4,5 @@
</span><span class="cx"> if exist &quot;%CONFIGURATIONBUILDDIR%\buildfailed&quot; perl -wnle &quot;if (/XX%PROJECTNAME%XX/) { print } else { exit 1 }&quot; &quot;%CONFIGURATIONBUILDDIR%\buildfailed&quot;
</span><span class="cx"> if errorlevel 1 exit 1
</span><span class="cx"> echo XX%PROJECTNAME%XX &gt; &quot;%CONFIGURATIONBUILDDIR%\buildfailed&quot;
</span><ins>+
+perl &quot;%WEBKIT_LIBRARIES%\tools\scripts\auto-version.pl&quot; &quot;%INTDIR%&quot;
</ins></span></pre></div>
<a id="trunkSourceWebKitChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/ChangeLog (171797 => 171798)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/ChangeLog        2014-07-30 16:23:04 UTC (rev 171797)
+++ trunk/Source/WebKit/ChangeLog        2014-07-30 16:35:17 UTC (rev 171798)
</span><span class="lines">@@ -1,3 +1,14 @@
</span><ins>+2014-07-29  Brent Fulgham  &lt;bfulgham@apple.com&gt;
+
+        [Win] Modify version numbering scheme to support 5-tuple versions
+        https://bugs.webkit.org/show_bug.cgi?id=135400
+        &lt;rdar://problem/17849033&gt;
+
+        Reviewed by David Kilzer.
+
+        * WebKit.vcxproj/WebKit/WebKitPostBuild.cmd: Use the new
+        version-stamp.pl script to version JavaScriptCore.dll.
+
</ins><span class="cx"> 2014-07-17  David Kilzer  &lt;ddkilzer@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         SECTORDER_FLAGS should be defined in target's xcconfig file, not Base.xcconfig
</span></span></pre></div>
<a id="trunkSourceWebKitWebKitvcxprojWebKitWebKitPostBuildcmd"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/WebKit.vcxproj/WebKit/WebKitPostBuild.cmd (171797 => 171798)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/WebKit.vcxproj/WebKit/WebKitPostBuild.cmd        2014-07-30 16:23:04 UTC (rev 171797)
+++ trunk/Source/WebKit/WebKit.vcxproj/WebKit/WebKitPostBuild.cmd        2014-07-30 16:35:17 UTC (rev 171798)
</span><span class="lines">@@ -18,6 +18,6 @@
</span><span class="cx"> mkdir &quot;%ResourcesDirectory%&quot; 2&gt;NUL
</span><span class="cx"> xcopy /y /d &quot;%PROJECTDIR%\..\..\win\WebKit.resources\Info.plist&quot; &quot;%ResourcesDirectory%&quot; &gt;NUL
</span><span class="cx"> 
</span><del>-if exist &quot;%WEBKIT_LIBRARIES%\tools\VersionStamper\VersionStamper.exe&quot; &quot;%WEBKIT_LIBRARIES%\tools\VersionStamper\VersionStamper.exe&quot; --verbose &quot;%TARGETPATH%&quot;
</del><ins>+perl &quot;%WEBKIT_LIBRARIES%\tools\scripts\version-stamp.pl&quot; &quot;%INTDIR%&quot; &quot;%TARGETPATH%&quot;
</ins><span class="cx"> 
</span><span class="cx"> if exist &quot;%CONFIGURATIONBUILDDIR%\buildfailed&quot; del &quot;%CONFIGURATIONBUILDDIR%\buildfailed&quot;
</span></span></pre></div>
<a id="trunkToolsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Tools/ChangeLog (171797 => 171798)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/ChangeLog        2014-07-30 16:23:04 UTC (rev 171797)
+++ trunk/Tools/ChangeLog        2014-07-30 16:35:17 UTC (rev 171798)
</span><span class="lines">@@ -1,3 +1,18 @@
</span><ins>+2014-07-29  Brent Fulgham  &lt;bfulgham@apple.com&gt;
+
+        [Win] Modify version numbering scheme to support 5-tuple versions
+        https://bugs.webkit.org/show_bug.cgi?id=135400
+        &lt;rdar://problem/17849033&gt;
+
+        Reviewed by David Kilzer.
+
+        Update test cases to recognize that we can only support Major
+        values from 0-65535, Minor values from 0-64, Tiny values from 0-999,
+        Micro values from 0-64, and Nano values from 0-999.
+
+        * Scripts/webkitperl/auto-version_unittest/autoVersionTests.pl: Update
+        test expectations for physical limits.
+
</ins><span class="cx"> 2014-07-30  Carlos Garcia Campos  &lt;cgarcia@igalia.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [GTK] GLib tests fail with recent GTK+ due to runtime warning about deprecated properties
</span></span></pre></div>
<a id="trunkToolsScriptswebkitperlautoversion_unittestautoVersionTestspl"></a>
<div class="modfile"><h4>Modified: trunk/Tools/Scripts/webkitperl/auto-version_unittest/autoVersionTests.pl (171797 => 171798)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/Scripts/webkitperl/auto-version_unittest/autoVersionTests.pl        2014-07-30 16:23:04 UTC (rev 171797)
+++ trunk/Tools/Scripts/webkitperl/auto-version_unittest/autoVersionTests.pl        2014-07-30 16:35:17 UTC (rev 171798)
</span><span class="lines">@@ -38,13 +38,13 @@
</span><span class="cx">             '__VERSION_TEXT__' =&gt; '300.4.3.2.1',
</span><span class="cx">             '__BUILD_NUMBER__' =&gt; '300.4.3.2.1',
</span><span class="cx">             '__BUILD_NUMBER_SHORT__' =&gt; '300.4.3.2.1',
</span><del>-            '__VERSION_MAJOR__' =&gt; '3',
-            '__VERSION_MINOR__' =&gt; '00',
-            '__VERSION_TINY__' =&gt; '4',
-            '__VERSION_BUILD__' =&gt; '3',
</del><ins>+            '__VERSION_MAJOR__' =&gt; '300',
+            '__VERSION_MINOR__' =&gt; '4003',
+            '__VERSION_TINY__' =&gt; '2001',
+            '__VERSION_BUILD__' =&gt; '1',
</ins><span class="cx">             '__BUILD_NUMBER_MAJOR__' =&gt; '300',
</span><del>-            '__BUILD_NUMBER_MINOR__' =&gt; '4',
-            '__BUILD_NUMBER_VARIANT__' =&gt; '3',
</del><ins>+            '__BUILD_NUMBER_MINOR__' =&gt; '4003',
+            '__BUILD_NUMBER_VARIANT__' =&gt; '2001',
</ins><span class="cx">         },
</span><span class="cx">     },
</span><span class="cx"> 
</span><span class="lines">@@ -54,13 +54,13 @@
</span><span class="cx">             '__VERSION_TEXT__' =&gt; '530.4.3.2.1',
</span><span class="cx">             '__BUILD_NUMBER__' =&gt; '530.4.3.2.1',
</span><span class="cx">             '__BUILD_NUMBER_SHORT__' =&gt; '530.4.3.2.1',
</span><del>-            '__VERSION_MAJOR__' =&gt; '5',
-            '__VERSION_MINOR__' =&gt; '30',
-            '__VERSION_TINY__' =&gt; '4',
-            '__VERSION_BUILD__' =&gt; '3',
</del><ins>+            '__VERSION_MAJOR__' =&gt; '530',
+            '__VERSION_MINOR__' =&gt; '4003',
+            '__VERSION_TINY__' =&gt; '2001',
+            '__VERSION_BUILD__' =&gt; '1',
</ins><span class="cx">             '__BUILD_NUMBER_MAJOR__' =&gt; '530',
</span><del>-            '__BUILD_NUMBER_MINOR__' =&gt; '4',
-            '__BUILD_NUMBER_VARIANT__' =&gt; '3',
</del><ins>+            '__BUILD_NUMBER_MINOR__' =&gt; '4003',
+            '__BUILD_NUMBER_VARIANT__' =&gt; '2001',
</ins><span class="cx">         },
</span><span class="cx">     },
</span><span class="cx"> 
</span><span class="lines">@@ -70,13 +70,13 @@
</span><span class="cx">             '__VERSION_TEXT__' =&gt; '53.4.3.2.1',
</span><span class="cx">             '__BUILD_NUMBER__' =&gt; '53.4.3.2.1',
</span><span class="cx">             '__BUILD_NUMBER_SHORT__' =&gt; '53.4.3.2.1',
</span><del>-            '__VERSION_MAJOR__' =&gt; '5',
-            '__VERSION_MINOR__' =&gt; '3',
-            '__VERSION_TINY__' =&gt; '4',
-            '__VERSION_BUILD__' =&gt; '3',
</del><ins>+            '__VERSION_MAJOR__' =&gt; '53',
+            '__VERSION_MINOR__' =&gt; '4003',
+            '__VERSION_TINY__' =&gt; '2001',
+            '__VERSION_BUILD__' =&gt; '1',
</ins><span class="cx">             '__BUILD_NUMBER_MAJOR__' =&gt; '53',
</span><del>-            '__BUILD_NUMBER_MINOR__' =&gt; '4',
-            '__BUILD_NUMBER_VARIANT__' =&gt; '3',
</del><ins>+            '__BUILD_NUMBER_MINOR__' =&gt; '4003',
+            '__BUILD_NUMBER_VARIANT__' =&gt; '2001',
</ins><span class="cx">         },
</span><span class="cx">     },
</span><span class="cx"> 
</span><span class="lines">@@ -87,12 +87,12 @@
</span><span class="cx">             '__BUILD_NUMBER__' =&gt; '5.4.3.2.1',
</span><span class="cx">             '__BUILD_NUMBER_SHORT__' =&gt; '5.4.3.2.1',
</span><span class="cx">             '__VERSION_MAJOR__' =&gt; '5',
</span><del>-            '__VERSION_MINOR__' =&gt; '',
-            '__VERSION_TINY__' =&gt; '4',
-            '__VERSION_BUILD__' =&gt; '3',
</del><ins>+            '__VERSION_MINOR__' =&gt; '4003',
+            '__VERSION_TINY__' =&gt; '2001',
+            '__VERSION_BUILD__' =&gt; '1',
</ins><span class="cx">             '__BUILD_NUMBER_MAJOR__' =&gt; '5',
</span><del>-            '__BUILD_NUMBER_MINOR__' =&gt; '4',
-            '__BUILD_NUMBER_VARIANT__' =&gt; '3',
</del><ins>+            '__BUILD_NUMBER_MINOR__' =&gt; '4003',
+            '__BUILD_NUMBER_VARIANT__' =&gt; '2001',
</ins><span class="cx">         },
</span><span class="cx">     },
</span><span class="cx"> 
</span><span class="lines">@@ -102,13 +102,13 @@
</span><span class="cx">             '__VERSION_TEXT__' =&gt; '300.4.3.2',
</span><span class="cx">             '__BUILD_NUMBER__' =&gt; '300.4.3.2',
</span><span class="cx">             '__BUILD_NUMBER_SHORT__' =&gt; '300.4.3.2',
</span><del>-            '__VERSION_MAJOR__' =&gt; '3',
-            '__VERSION_MINOR__' =&gt; '00',
-            '__VERSION_TINY__' =&gt; '4',
-            '__VERSION_BUILD__' =&gt; '3',
</del><ins>+            '__VERSION_MAJOR__' =&gt; '300',
+            '__VERSION_MINOR__' =&gt; '4003',
+            '__VERSION_TINY__' =&gt; '2000',
+            '__VERSION_BUILD__' =&gt; '2',
</ins><span class="cx">             '__BUILD_NUMBER_MAJOR__' =&gt; '300',
</span><del>-            '__BUILD_NUMBER_MINOR__' =&gt; '4',
-            '__BUILD_NUMBER_VARIANT__' =&gt; '3',
</del><ins>+            '__BUILD_NUMBER_MINOR__' =&gt; '4003',
+            '__BUILD_NUMBER_VARIANT__' =&gt; '2000',
</ins><span class="cx">         },
</span><span class="cx">     },
</span><span class="cx"> 
</span><span class="lines">@@ -118,13 +118,13 @@
</span><span class="cx">             '__VERSION_TEXT__' =&gt; '530.4.3.2',
</span><span class="cx">             '__BUILD_NUMBER__' =&gt; '530.4.3.2',
</span><span class="cx">             '__BUILD_NUMBER_SHORT__' =&gt; '530.4.3.2',
</span><del>-            '__VERSION_MAJOR__' =&gt; '5',
-            '__VERSION_MINOR__' =&gt; '30',
-            '__VERSION_TINY__' =&gt; '4',
-            '__VERSION_BUILD__' =&gt; '3',
</del><ins>+            '__VERSION_MAJOR__' =&gt; '530',
+            '__VERSION_MINOR__' =&gt; '4003',
+            '__VERSION_TINY__' =&gt; '2000',
+            '__VERSION_BUILD__' =&gt; '2',
</ins><span class="cx">             '__BUILD_NUMBER_MAJOR__' =&gt; '530',
</span><del>-            '__BUILD_NUMBER_MINOR__' =&gt; '4',
-            '__BUILD_NUMBER_VARIANT__' =&gt; '3',
</del><ins>+            '__BUILD_NUMBER_MINOR__' =&gt; '4003',
+            '__BUILD_NUMBER_VARIANT__' =&gt; '2000',
</ins><span class="cx">         },
</span><span class="cx">     },
</span><span class="cx"> 
</span><span class="lines">@@ -134,13 +134,13 @@
</span><span class="cx">             '__VERSION_TEXT__' =&gt; '53.4.3.2',
</span><span class="cx">             '__BUILD_NUMBER__' =&gt; '53.4.3.2',
</span><span class="cx">             '__BUILD_NUMBER_SHORT__' =&gt; '53.4.3.2',
</span><del>-            '__VERSION_MAJOR__' =&gt; '5',
-            '__VERSION_MINOR__' =&gt; '3',
-            '__VERSION_TINY__' =&gt; '4',
-            '__VERSION_BUILD__' =&gt; '3',
</del><ins>+            '__VERSION_MAJOR__' =&gt; '53',
+            '__VERSION_MINOR__' =&gt; '4003',
+            '__VERSION_TINY__' =&gt; '2000',
+            '__VERSION_BUILD__' =&gt; '2',
</ins><span class="cx">             '__BUILD_NUMBER_MAJOR__' =&gt; '53',
</span><del>-            '__BUILD_NUMBER_MINOR__' =&gt; '4',
-            '__BUILD_NUMBER_VARIANT__' =&gt; '3',
</del><ins>+            '__BUILD_NUMBER_MINOR__' =&gt; '4003',
+            '__BUILD_NUMBER_VARIANT__' =&gt; '2000',
</ins><span class="cx">         },
</span><span class="cx">     },
</span><span class="cx"> 
</span><span class="lines">@@ -151,12 +151,12 @@
</span><span class="cx">             '__BUILD_NUMBER__' =&gt; '5.4.3.2',
</span><span class="cx">             '__BUILD_NUMBER_SHORT__' =&gt; '5.4.3.2',
</span><span class="cx">             '__VERSION_MAJOR__' =&gt; '5',
</span><del>-            '__VERSION_MINOR__' =&gt; '',
-            '__VERSION_TINY__' =&gt; '4',
-            '__VERSION_BUILD__' =&gt; '3',
</del><ins>+            '__VERSION_MINOR__' =&gt; '4003',
+            '__VERSION_TINY__' =&gt; '2000',
+            '__VERSION_BUILD__' =&gt; '2',
</ins><span class="cx">             '__BUILD_NUMBER_MAJOR__' =&gt; '5',
</span><del>-            '__BUILD_NUMBER_MINOR__' =&gt; '4',
-            '__BUILD_NUMBER_VARIANT__' =&gt; '3',
</del><ins>+            '__BUILD_NUMBER_MINOR__' =&gt; '4003',
+            '__BUILD_NUMBER_VARIANT__' =&gt; '2000',
</ins><span class="cx">         },
</span><span class="cx">     },
</span><span class="cx"> 
</span><span class="lines">@@ -166,13 +166,13 @@
</span><span class="cx">             '__VERSION_TEXT__' =&gt; '300.4.3',
</span><span class="cx">             '__BUILD_NUMBER__' =&gt; '300.4.3',
</span><span class="cx">             '__BUILD_NUMBER_SHORT__' =&gt; '300.4.3',
</span><del>-            '__VERSION_MAJOR__' =&gt; '3',
-            '__VERSION_MINOR__' =&gt; '00',
-            '__VERSION_TINY__' =&gt; '4',
-            '__VERSION_BUILD__' =&gt; '3',
</del><ins>+            '__VERSION_MAJOR__' =&gt; '300',
+            '__VERSION_MINOR__' =&gt; '4003',
+            '__VERSION_TINY__' =&gt; '0',
+            '__VERSION_BUILD__' =&gt; '0',
</ins><span class="cx">             '__BUILD_NUMBER_MAJOR__' =&gt; '300',
</span><del>-            '__BUILD_NUMBER_MINOR__' =&gt; '4',
-            '__BUILD_NUMBER_VARIANT__' =&gt; '3',
</del><ins>+            '__BUILD_NUMBER_MINOR__' =&gt; '4003',
+            '__BUILD_NUMBER_VARIANT__' =&gt; '0',
</ins><span class="cx">         },
</span><span class="cx">     },
</span><span class="cx"> 
</span><span class="lines">@@ -182,13 +182,13 @@
</span><span class="cx">             '__VERSION_TEXT__' =&gt; '530.4.3',
</span><span class="cx">             '__BUILD_NUMBER__' =&gt; '530.4.3',
</span><span class="cx">             '__BUILD_NUMBER_SHORT__' =&gt; '530.4.3',
</span><del>-            '__VERSION_MAJOR__' =&gt; '5',
-            '__VERSION_MINOR__' =&gt; '30',
-            '__VERSION_TINY__' =&gt; '4',
-            '__VERSION_BUILD__' =&gt; '3',
</del><ins>+            '__VERSION_MAJOR__' =&gt; '530',
+            '__VERSION_MINOR__' =&gt; '4003',
+            '__VERSION_TINY__' =&gt; '0',
+            '__VERSION_BUILD__' =&gt; '0',
</ins><span class="cx">             '__BUILD_NUMBER_MAJOR__' =&gt; '530',
</span><del>-            '__BUILD_NUMBER_MINOR__' =&gt; '4',
-            '__BUILD_NUMBER_VARIANT__' =&gt; '3',
</del><ins>+            '__BUILD_NUMBER_MINOR__' =&gt; '4003',
+            '__BUILD_NUMBER_VARIANT__' =&gt; '0',
</ins><span class="cx">         },
</span><span class="cx">     },
</span><span class="cx"> 
</span><span class="lines">@@ -198,13 +198,13 @@
</span><span class="cx">             '__VERSION_TEXT__' =&gt; '53.4.3',
</span><span class="cx">             '__BUILD_NUMBER__' =&gt; '53.4.3',
</span><span class="cx">             '__BUILD_NUMBER_SHORT__' =&gt; '53.4.3',
</span><del>-            '__VERSION_MAJOR__' =&gt; '5',
-            '__VERSION_MINOR__' =&gt; '3',
-            '__VERSION_TINY__' =&gt; '4',
-            '__VERSION_BUILD__' =&gt; '3',
</del><ins>+            '__VERSION_MAJOR__' =&gt; '53',
+            '__VERSION_MINOR__' =&gt; '4003',
+            '__VERSION_TINY__' =&gt; '0',
+            '__VERSION_BUILD__' =&gt; '0',
</ins><span class="cx">             '__BUILD_NUMBER_MAJOR__' =&gt; '53',
</span><del>-            '__BUILD_NUMBER_MINOR__' =&gt; '4',
-            '__BUILD_NUMBER_VARIANT__' =&gt; '3',
</del><ins>+            '__BUILD_NUMBER_MINOR__' =&gt; '4003',
+            '__BUILD_NUMBER_VARIANT__' =&gt; '0',
</ins><span class="cx">         },
</span><span class="cx">     },
</span><span class="cx"> 
</span><span class="lines">@@ -215,12 +215,12 @@
</span><span class="cx">             '__BUILD_NUMBER__' =&gt; '5.4.3',
</span><span class="cx">             '__BUILD_NUMBER_SHORT__' =&gt; '5.4.3',
</span><span class="cx">             '__VERSION_MAJOR__' =&gt; '5',
</span><del>-            '__VERSION_MINOR__' =&gt; '',
-            '__VERSION_TINY__' =&gt; '4',
-            '__VERSION_BUILD__' =&gt; '3',
</del><ins>+            '__VERSION_MINOR__' =&gt; '4003',
+            '__VERSION_TINY__' =&gt; '0',
+            '__VERSION_BUILD__' =&gt; '0',
</ins><span class="cx">             '__BUILD_NUMBER_MAJOR__' =&gt; '5',
</span><del>-            '__BUILD_NUMBER_MINOR__' =&gt; '4',
-            '__BUILD_NUMBER_VARIANT__' =&gt; '3',
</del><ins>+            '__BUILD_NUMBER_MINOR__' =&gt; '4003',
+            '__BUILD_NUMBER_VARIANT__' =&gt; '0',
</ins><span class="cx">         },
</span><span class="cx">     },
</span><span class="cx"> 
</span><span class="lines">@@ -230,12 +230,12 @@
</span><span class="cx">             '__VERSION_TEXT__' =&gt; '300.4',
</span><span class="cx">             '__BUILD_NUMBER__' =&gt; '300.4',
</span><span class="cx">             '__BUILD_NUMBER_SHORT__' =&gt; '300.4',
</span><del>-            '__VERSION_MAJOR__' =&gt; '3',
-            '__VERSION_MINOR__' =&gt; '00',
-            '__VERSION_TINY__' =&gt; '4',
</del><ins>+            '__VERSION_MAJOR__' =&gt; '300',
+            '__VERSION_MINOR__' =&gt; '4000',
+            '__VERSION_TINY__' =&gt; '0',
</ins><span class="cx">             '__VERSION_BUILD__' =&gt; '0',
</span><span class="cx">             '__BUILD_NUMBER_MAJOR__' =&gt; '300',
</span><del>-            '__BUILD_NUMBER_MINOR__' =&gt; '4',
</del><ins>+            '__BUILD_NUMBER_MINOR__' =&gt; '4000',
</ins><span class="cx">             '__BUILD_NUMBER_VARIANT__' =&gt; '0',
</span><span class="cx">         },
</span><span class="cx">     },
</span><span class="lines">@@ -246,12 +246,12 @@
</span><span class="cx">             '__VERSION_TEXT__' =&gt; '530.4',
</span><span class="cx">             '__BUILD_NUMBER__' =&gt; '530.4',
</span><span class="cx">             '__BUILD_NUMBER_SHORT__' =&gt; '530.4',
</span><del>-            '__VERSION_MAJOR__' =&gt; '5',
-            '__VERSION_MINOR__' =&gt; '30',
-            '__VERSION_TINY__' =&gt; '4',
</del><ins>+            '__VERSION_MAJOR__' =&gt; '530',
+            '__VERSION_MINOR__' =&gt; '4000',
+            '__VERSION_TINY__' =&gt; '0',
</ins><span class="cx">             '__VERSION_BUILD__' =&gt; '0',
</span><span class="cx">             '__BUILD_NUMBER_MAJOR__' =&gt; '530',
</span><del>-            '__BUILD_NUMBER_MINOR__' =&gt; '4',
</del><ins>+            '__BUILD_NUMBER_MINOR__' =&gt; '4000',
</ins><span class="cx">             '__BUILD_NUMBER_VARIANT__' =&gt; '0',
</span><span class="cx">         },
</span><span class="cx">     },
</span><span class="lines">@@ -262,12 +262,12 @@
</span><span class="cx">             '__VERSION_TEXT__' =&gt; '53.4',
</span><span class="cx">             '__BUILD_NUMBER__' =&gt; '53.4',
</span><span class="cx">             '__BUILD_NUMBER_SHORT__' =&gt; '53.4',
</span><del>-            '__VERSION_MAJOR__' =&gt; '5',
-            '__VERSION_MINOR__' =&gt; '3',
-            '__VERSION_TINY__' =&gt; '4',
</del><ins>+            '__VERSION_MAJOR__' =&gt; '53',
+            '__VERSION_MINOR__' =&gt; '4000',
+            '__VERSION_TINY__' =&gt; '0',
</ins><span class="cx">             '__VERSION_BUILD__' =&gt; '0',
</span><span class="cx">             '__BUILD_NUMBER_MAJOR__' =&gt; '53',
</span><del>-            '__BUILD_NUMBER_MINOR__' =&gt; '4',
</del><ins>+            '__BUILD_NUMBER_MINOR__' =&gt; '4000',
</ins><span class="cx">             '__BUILD_NUMBER_VARIANT__' =&gt; '0',
</span><span class="cx">         },
</span><span class="cx">     },
</span><span class="lines">@@ -279,11 +279,11 @@
</span><span class="cx">             '__BUILD_NUMBER__' =&gt; '5.4',
</span><span class="cx">             '__BUILD_NUMBER_SHORT__' =&gt; '5.4',
</span><span class="cx">             '__VERSION_MAJOR__' =&gt; '5',
</span><del>-            '__VERSION_MINOR__' =&gt; '',
-            '__VERSION_TINY__' =&gt; '4',
</del><ins>+            '__VERSION_MINOR__' =&gt; '4000',
+            '__VERSION_TINY__' =&gt; '0',
</ins><span class="cx">             '__VERSION_BUILD__' =&gt; '0',
</span><span class="cx">             '__BUILD_NUMBER_MAJOR__' =&gt; '5',
</span><del>-            '__BUILD_NUMBER_MINOR__' =&gt; '4',
</del><ins>+            '__BUILD_NUMBER_MINOR__' =&gt; '4000',
</ins><span class="cx">             '__BUILD_NUMBER_VARIANT__' =&gt; '0',
</span><span class="cx">         },
</span><span class="cx">     },
</span><span class="lines">@@ -294,8 +294,8 @@
</span><span class="cx">             '__VERSION_TEXT__' =&gt; '300',
</span><span class="cx">             '__BUILD_NUMBER__' =&gt; '300',
</span><span class="cx">             '__BUILD_NUMBER_SHORT__' =&gt; '300',
</span><del>-            '__VERSION_MAJOR__' =&gt; '3',
-            '__VERSION_MINOR__' =&gt; '00',
</del><ins>+            '__VERSION_MAJOR__' =&gt; '300',
+            '__VERSION_MINOR__' =&gt; '0',
</ins><span class="cx">             '__VERSION_TINY__' =&gt; '0',
</span><span class="cx">             '__VERSION_BUILD__' =&gt; '0',
</span><span class="cx">             '__BUILD_NUMBER_MAJOR__' =&gt; '300',
</span><span class="lines">@@ -310,8 +310,8 @@
</span><span class="cx">             '__VERSION_TEXT__' =&gt; '530',
</span><span class="cx">             '__BUILD_NUMBER__' =&gt; '530',
</span><span class="cx">             '__BUILD_NUMBER_SHORT__' =&gt; '530',
</span><del>-            '__VERSION_MAJOR__' =&gt; '5',
-            '__VERSION_MINOR__' =&gt; '30',
</del><ins>+            '__VERSION_MAJOR__' =&gt; '530',
+            '__VERSION_MINOR__' =&gt; '0',
</ins><span class="cx">             '__VERSION_TINY__' =&gt; '0',
</span><span class="cx">             '__VERSION_BUILD__' =&gt; '0',
</span><span class="cx">             '__BUILD_NUMBER_MAJOR__' =&gt; '530',
</span><span class="lines">@@ -326,13 +326,13 @@
</span><span class="cx">             '__VERSION_TEXT__' =&gt; '530.1.1.1',
</span><span class="cx">             '__BUILD_NUMBER__' =&gt; '530.1.1.1',
</span><span class="cx">             '__BUILD_NUMBER_SHORT__' =&gt; '530.1.1.1',
</span><del>-            '__VERSION_MAJOR__' =&gt; '5',
-            '__VERSION_MINOR__' =&gt; '30',
-            '__VERSION_TINY__' =&gt; '1',
</del><ins>+            '__VERSION_MAJOR__' =&gt; '530',
+            '__VERSION_MINOR__' =&gt; '1001',
+            '__VERSION_TINY__' =&gt; '1000',
</ins><span class="cx">             '__VERSION_BUILD__' =&gt; '1',
</span><span class="cx">             '__BUILD_NUMBER_MAJOR__' =&gt; '530',
</span><del>-            '__BUILD_NUMBER_MINOR__' =&gt; '1',
-            '__BUILD_NUMBER_VARIANT__' =&gt; '1',
</del><ins>+            '__BUILD_NUMBER_MINOR__' =&gt; '1001',
+            '__BUILD_NUMBER_VARIANT__' =&gt; '1000',
</ins><span class="cx">         },
</span><span class="cx">     },
</span><span class="cx"> 
</span><span class="lines">@@ -342,96 +342,64 @@
</span><span class="cx">             '__VERSION_TEXT__' =&gt; '530.30.20.10',
</span><span class="cx">             '__BUILD_NUMBER__' =&gt; '530.30.20.10',
</span><span class="cx">             '__BUILD_NUMBER_SHORT__' =&gt; '530.30.20.10',
</span><del>-            '__VERSION_MAJOR__' =&gt; '5',
-            '__VERSION_MINOR__' =&gt; '30',
-            '__VERSION_TINY__' =&gt; '30',
-            '__VERSION_BUILD__' =&gt; '20',
</del><ins>+            '__VERSION_MAJOR__' =&gt; '530',
+            '__VERSION_MINOR__' =&gt; '30020',
+            '__VERSION_TINY__' =&gt; '10000',
+            '__VERSION_BUILD__' =&gt; '10',
</ins><span class="cx">             '__BUILD_NUMBER_MAJOR__' =&gt; '530',
</span><del>-            '__BUILD_NUMBER_MINOR__' =&gt; '30',
-            '__BUILD_NUMBER_VARIANT__' =&gt; '20',
</del><ins>+            '__BUILD_NUMBER_MINOR__' =&gt; '30020',
+            '__BUILD_NUMBER_VARIANT__' =&gt; '10000',
</ins><span class="cx">         },
</span><span class="cx">     },
</span><span class="cx"> 
</span><span class="cx">     {
</span><del>-        'RC_ProjectSourceVersion' =&gt; '10530.300.200.100',
</del><ins>+        'RC_ProjectSourceVersion' =&gt; '10530.64.200.64',
</ins><span class="cx">         expectedResults =&gt; {
</span><del>-            '__VERSION_TEXT__' =&gt; '530.300.200.100',
-            '__BUILD_NUMBER__' =&gt; '530.300.200.100',
-            '__BUILD_NUMBER_SHORT__' =&gt; '530.300.200.100',
-            '__VERSION_MAJOR__' =&gt; '5',
-            '__VERSION_MINOR__' =&gt; '30',
-            '__VERSION_TINY__' =&gt; '300',
-            '__VERSION_BUILD__' =&gt; '200',
</del><ins>+            '__VERSION_TEXT__' =&gt; '530.64.200.64',
+            '__BUILD_NUMBER__' =&gt; '530.64.200.64',
+            '__BUILD_NUMBER_SHORT__' =&gt; '530.64.200.64',
+            '__VERSION_MAJOR__' =&gt; '530',
+            '__VERSION_MINOR__' =&gt; '64200',
+            '__VERSION_TINY__' =&gt; '64000',
+            '__VERSION_BUILD__' =&gt; '64',
</ins><span class="cx">             '__BUILD_NUMBER_MAJOR__' =&gt; '530',
</span><del>-            '__BUILD_NUMBER_MINOR__' =&gt; '300',
-            '__BUILD_NUMBER_VARIANT__' =&gt; '200',
</del><ins>+            '__BUILD_NUMBER_MINOR__' =&gt; '64200',
+            '__BUILD_NUMBER_VARIANT__' =&gt; '64000',
</ins><span class="cx">         },
</span><span class="cx">     },
</span><span class="cx"> 
</span><span class="cx">     {
</span><del>-        'RC_ProjectSourceVersion' =&gt; '10530.3000.2000.1000',
</del><ins>+        'RC_ProjectSourceVersion' =&gt; '10530.64.999.64',
</ins><span class="cx">         expectedResults =&gt; {
</span><del>-            '__VERSION_TEXT__' =&gt; '530.3000.2000.1000',
-            '__BUILD_NUMBER__' =&gt; '530.3000.2000.1000',
-            '__BUILD_NUMBER_SHORT__' =&gt; '530.3000.2000.1000',
-            '__VERSION_MAJOR__' =&gt; '5',
-            '__VERSION_MINOR__' =&gt; '30',
-            '__VERSION_TINY__' =&gt; '3000',
-            '__VERSION_BUILD__' =&gt; '2000',
</del><ins>+            '__VERSION_TEXT__' =&gt; '530.64.999.64',
+            '__BUILD_NUMBER__' =&gt; '530.64.999.64',
+            '__BUILD_NUMBER_SHORT__' =&gt; '530.64.999.64',
+            '__VERSION_MAJOR__' =&gt; '530',
+            '__VERSION_MINOR__' =&gt; '64999',
+            '__VERSION_TINY__' =&gt; '64000',
+            '__VERSION_BUILD__' =&gt; '64',
</ins><span class="cx">             '__BUILD_NUMBER_MAJOR__' =&gt; '530',
</span><del>-            '__BUILD_NUMBER_MINOR__' =&gt; '3000',
-            '__BUILD_NUMBER_VARIANT__' =&gt; '2000',
</del><ins>+            '__BUILD_NUMBER_MINOR__' =&gt; '64999',
+            '__BUILD_NUMBER_VARIANT__' =&gt; '64000',
</ins><span class="cx">         },
</span><span class="cx">     },
</span><span class="cx"> 
</span><span class="cx">     {
</span><del>-        'RC_ProjectSourceVersion' =&gt; '7530.3000.2000.1000',
</del><ins>+        'RC_ProjectSourceVersion' =&gt; '7530.64.99.10',
</ins><span class="cx">         expectedResults =&gt; {
</span><del>-            '__VERSION_TEXT__' =&gt; '530.3000.2000.1000',
-            '__BUILD_NUMBER__' =&gt; '530.3000.2000.1000',
-            '__BUILD_NUMBER_SHORT__' =&gt; '530.3000.2000.1000',
-            '__VERSION_MAJOR__' =&gt; '5',
-            '__VERSION_MINOR__' =&gt; '30',
-            '__VERSION_TINY__' =&gt; '3000',
-            '__VERSION_BUILD__' =&gt; '2000',
</del><ins>+            '__VERSION_TEXT__' =&gt; '530.64.99.10',
+            '__BUILD_NUMBER__' =&gt; '530.64.99.10',
+            '__BUILD_NUMBER_SHORT__' =&gt; '530.64.99.10',
+            '__VERSION_MAJOR__' =&gt; '530',
+            '__VERSION_MINOR__' =&gt; '64099',
+            '__VERSION_TINY__' =&gt; '10000',
+            '__VERSION_BUILD__' =&gt; '10',
</ins><span class="cx">             '__BUILD_NUMBER_MAJOR__' =&gt; '530',
</span><del>-            '__BUILD_NUMBER_MINOR__' =&gt; '3000',
-            '__BUILD_NUMBER_VARIANT__' =&gt; '2000',
</del><ins>+            '__BUILD_NUMBER_MINOR__' =&gt; '64099',
+            '__BUILD_NUMBER_VARIANT__' =&gt; '10000',
</ins><span class="cx">         },
</span><span class="cx">     },
</span><span class="cx"> 
</span><del>-    {
-        'RC_ProjectSourceVersion' =&gt; '7530.300.200.100',
-        expectedResults =&gt; {
-            '__VERSION_TEXT__' =&gt; '530.300.200.100',
-            '__BUILD_NUMBER__' =&gt; '530.300.200.100',
-            '__BUILD_NUMBER_SHORT__' =&gt; '530.300.200.100',
-            '__VERSION_MAJOR__' =&gt; '5',
-            '__VERSION_MINOR__' =&gt; '30',
-            '__VERSION_TINY__' =&gt; '300',
-            '__VERSION_BUILD__' =&gt; '200',
-            '__BUILD_NUMBER_MAJOR__' =&gt; '530',
-            '__BUILD_NUMBER_MINOR__' =&gt; '300',
-            '__BUILD_NUMBER_VARIANT__' =&gt; '200',
-        },
-    },
-
-    {
-        'RC_ProjectSourceVersion' =&gt; '7530.30.20.10',
-        expectedResults =&gt; {
-            '__VERSION_TEXT__' =&gt; '530.30.20.10',
-            '__BUILD_NUMBER__' =&gt; '530.30.20.10',
-            '__BUILD_NUMBER_SHORT__' =&gt; '530.30.20.10',
-            '__VERSION_MAJOR__' =&gt; '5',
-            '__VERSION_MINOR__' =&gt; '30',
-            '__VERSION_TINY__' =&gt; '30',
-            '__VERSION_BUILD__' =&gt; '20',
-            '__BUILD_NUMBER_MAJOR__' =&gt; '530',
-            '__BUILD_NUMBER_MINOR__' =&gt; '30',
-            '__BUILD_NUMBER_VARIANT__' =&gt; '20',
-        },
-    },
-
</del><span class="cx">     # Smallest &quot;Valid&quot; case
</span><span class="cx">     {
</span><span class="cx">         'RC_ProjectSourceVersion' =&gt; '53',
</span><span class="lines">@@ -439,8 +407,8 @@
</span><span class="cx">             '__VERSION_TEXT__' =&gt; '53',
</span><span class="cx">             '__BUILD_NUMBER__' =&gt; '53',
</span><span class="cx">             '__BUILD_NUMBER_SHORT__' =&gt; '53',
</span><del>-            '__VERSION_MAJOR__' =&gt; '5',
-            '__VERSION_MINOR__' =&gt; '3',
</del><ins>+            '__VERSION_MAJOR__' =&gt; '53',
+            '__VERSION_MINOR__' =&gt; '0',
</ins><span class="cx">             '__VERSION_TINY__' =&gt; '0',
</span><span class="cx">             '__VERSION_BUILD__' =&gt; '0',
</span><span class="cx">             '__BUILD_NUMBER_MAJOR__' =&gt; '53',
</span><span class="lines">@@ -457,7 +425,7 @@
</span><span class="cx">             '__BUILD_NUMBER__' =&gt; '5',
</span><span class="cx">             '__BUILD_NUMBER_SHORT__' =&gt; '5',
</span><span class="cx">             '__VERSION_MAJOR__' =&gt; '5',
</span><del>-            '__VERSION_MINOR__' =&gt; '',
</del><ins>+            '__VERSION_MINOR__' =&gt; '0',
</ins><span class="cx">             '__VERSION_TINY__' =&gt; '0',
</span><span class="cx">             '__VERSION_BUILD__' =&gt; '0',
</span><span class="cx">             '__BUILD_NUMBER_MAJOR__' =&gt; '5',
</span><span class="lines">@@ -468,69 +436,69 @@
</span><span class="cx"> 
</span><span class="cx">     # Largest specified version test
</span><span class="cx">     {
</span><del>-        'RC_ProjectSourceVersion' =&gt; '214747.99.99.99.99',
</del><ins>+        'RC_ProjectSourceVersion' =&gt; '214747.64.999.64.999',
</ins><span class="cx">         expectedResults =&gt; {
</span><del>-            '__VERSION_TEXT__' =&gt; '747.99.99.99.99',
-            '__BUILD_NUMBER__' =&gt; '747.99.99.99.99',
-            '__BUILD_NUMBER_SHORT__' =&gt; '747.99.99.99.99',
-            '__VERSION_MAJOR__' =&gt; '7',
-            '__VERSION_MINOR__' =&gt; '47',
-            '__VERSION_TINY__' =&gt; '99',
-            '__VERSION_BUILD__' =&gt; '99',
</del><ins>+            '__VERSION_TEXT__' =&gt; '747.64.999.64.999',
+            '__BUILD_NUMBER__' =&gt; '747.64.999.64.999',
+            '__BUILD_NUMBER_SHORT__' =&gt; '747.64.999.64.999',
+            '__VERSION_MAJOR__' =&gt; '747',
+            '__VERSION_MINOR__' =&gt; '64999',
+            '__VERSION_TINY__' =&gt; '64999',
+            '__VERSION_BUILD__' =&gt; '999',
</ins><span class="cx">             '__BUILD_NUMBER_MAJOR__' =&gt; '747',
</span><del>-            '__BUILD_NUMBER_MINOR__' =&gt; '99',
-            '__BUILD_NUMBER_VARIANT__' =&gt; '99',
</del><ins>+            '__BUILD_NUMBER_MINOR__' =&gt; '64999',
+            '__BUILD_NUMBER_VARIANT__' =&gt; '64999',
</ins><span class="cx">         },
</span><span class="cx">     },
</span><span class="cx"> 
</span><span class="cx">     # Leading Whitespace
</span><span class="cx">     {
</span><del>-        'RC_ProjectSourceVersion' =&gt; '        214747.99.99.99.99',
</del><ins>+        'RC_ProjectSourceVersion' =&gt; '        214747.64.99.64.99',
</ins><span class="cx">         expectedResults =&gt; {
</span><del>-            '__VERSION_TEXT__' =&gt; '747.99.99.99.99',
-            '__BUILD_NUMBER__' =&gt; '747.99.99.99.99',
-            '__BUILD_NUMBER_SHORT__' =&gt; '747.99.99.99.99',
-            '__VERSION_MAJOR__' =&gt; '7',
-            '__VERSION_MINOR__' =&gt; '47',
-            '__VERSION_TINY__' =&gt; '99',
</del><ins>+            '__VERSION_TEXT__' =&gt; '747.64.99.64.99',
+            '__BUILD_NUMBER__' =&gt; '747.64.99.64.99',
+            '__BUILD_NUMBER_SHORT__' =&gt; '747.64.99.64.99',
+            '__VERSION_MAJOR__' =&gt; '747',
+            '__VERSION_MINOR__' =&gt; '64099',
+            '__VERSION_TINY__' =&gt; '64099',
</ins><span class="cx">             '__VERSION_BUILD__' =&gt; '99',
</span><span class="cx">             '__BUILD_NUMBER_MAJOR__' =&gt; '747',
</span><del>-            '__BUILD_NUMBER_MINOR__' =&gt; '99',
-            '__BUILD_NUMBER_VARIANT__' =&gt; '99',
</del><ins>+            '__BUILD_NUMBER_MINOR__' =&gt; '64099',
+            '__BUILD_NUMBER_VARIANT__' =&gt; '64099',
</ins><span class="cx">         },
</span><span class="cx">     },
</span><span class="cx"> 
</span><span class="cx">     # Trailing Whitespace
</span><span class="cx">     {
</span><del>-        'RC_ProjectSourceVersion' =&gt; '214747.99.99.99.99      ',
</del><ins>+        'RC_ProjectSourceVersion' =&gt; '214747.64.99.64.99      ',
</ins><span class="cx">         expectedResults =&gt; {
</span><del>-            '__VERSION_TEXT__' =&gt; '747.99.99.99.99',
-            '__BUILD_NUMBER__' =&gt; '747.99.99.99.99',
-            '__BUILD_NUMBER_SHORT__' =&gt; '747.99.99.99.99',
-            '__VERSION_MAJOR__' =&gt; '7',
-            '__VERSION_MINOR__' =&gt; '47',
-            '__VERSION_TINY__' =&gt; '99',
</del><ins>+            '__VERSION_TEXT__' =&gt; '747.64.99.64.99',
+            '__BUILD_NUMBER__' =&gt; '747.64.99.64.99',
+            '__BUILD_NUMBER_SHORT__' =&gt; '747.64.99.64.99',
+            '__VERSION_MAJOR__' =&gt; '747',
+            '__VERSION_MINOR__' =&gt; '64099',
+            '__VERSION_TINY__' =&gt; '64099',
</ins><span class="cx">             '__VERSION_BUILD__' =&gt; '99',
</span><span class="cx">             '__BUILD_NUMBER_MAJOR__' =&gt; '747',
</span><del>-            '__BUILD_NUMBER_MINOR__' =&gt; '99',
-            '__BUILD_NUMBER_VARIANT__' =&gt; '99',
</del><ins>+            '__BUILD_NUMBER_MINOR__' =&gt; '64099',
+            '__BUILD_NUMBER_VARIANT__' =&gt; '64099',
</ins><span class="cx">         },
</span><span class="cx">     },
</span><span class="cx"> 
</span><span class="cx">     # Leading and Trailing Whitespace
</span><span class="cx">     {
</span><del>-        'RC_ProjectSourceVersion' =&gt; '        214747.99.99.99.99      ',
</del><ins>+        'RC_ProjectSourceVersion' =&gt; '        214747.64.99.64.99      ',
</ins><span class="cx">         expectedResults =&gt; {
</span><del>-            '__VERSION_TEXT__' =&gt; '747.99.99.99.99',
-            '__BUILD_NUMBER__' =&gt; '747.99.99.99.99',
-            '__BUILD_NUMBER_SHORT__' =&gt; '747.99.99.99.99',
-            '__VERSION_MAJOR__' =&gt; '7',
-            '__VERSION_MINOR__' =&gt; '47',
-            '__VERSION_TINY__' =&gt; '99',
</del><ins>+            '__VERSION_TEXT__' =&gt; '747.64.99.64.99',
+            '__BUILD_NUMBER__' =&gt; '747.64.99.64.99',
+            '__BUILD_NUMBER_SHORT__' =&gt; '747.64.99.64.99',
+            '__VERSION_MAJOR__' =&gt; '747',
+            '__VERSION_MINOR__' =&gt; '64099',
+            '__VERSION_TINY__' =&gt; '64099',
</ins><span class="cx">             '__VERSION_BUILD__' =&gt; '99',
</span><span class="cx">             '__BUILD_NUMBER_MAJOR__' =&gt; '747',
</span><del>-            '__BUILD_NUMBER_MINOR__' =&gt; '99',
-            '__BUILD_NUMBER_VARIANT__' =&gt; '99',
</del><ins>+            '__BUILD_NUMBER_MINOR__' =&gt; '64099',
+            '__BUILD_NUMBER_VARIANT__' =&gt; '64099',
</ins><span class="cx">         },
</span><span class="cx">     },
</span><span class="cx"> );
</span><span class="lines">@@ -554,7 +522,7 @@
</span><span class="cx">     my $expectedResults = $testCase-&gt;{expectedResults};
</span><span class="cx"> 
</span><span class="cx">     my $outputFile = File::Spec-&gt;catfile($testOutputDir, 'include', 'autoversion.h');
</span><del>-    open(TEST_OUTPUT, '&lt;', $outputFile) or die &quot;Unable to open $outputFile&quot;;
</del><ins>+    open(TEST_OUTPUT, '&lt;', $outputFile) or die &quot;Unable to open $outputFile: $!&quot;;
</ins><span class="cx"> 
</span><span class="cx">     while (my $line = &lt;TEST_OUTPUT&gt;) {
</span><span class="cx">         foreach my $expectedResultKey (keys %$expectedResults) {
</span><span class="lines">@@ -571,4 +539,6 @@
</span><span class="cx">             is($line, $expectedResultValue, &quot;$testCase-&gt;{'RC_ProjectSourceVersion'}: $expectedResultKey&quot;);
</span><span class="cx">         }
</span><span class="cx">     }
</span><ins>+
+    close(TEST_OUTPUT);
</ins><span class="cx"> }
</span></span></pre></div>
<a id="trunkWebKitLibrariesChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/WebKitLibraries/ChangeLog (171797 => 171798)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebKitLibraries/ChangeLog        2014-07-30 16:23:04 UTC (rev 171797)
+++ trunk/WebKitLibraries/ChangeLog        2014-07-30 16:35:17 UTC (rev 171798)
</span><span class="lines">@@ -1,3 +1,22 @@
</span><ins>+2014-07-29  Brent Fulgham  &lt;bfulgham@apple.com&gt;
+
+        [Win] Modify version numbering scheme to support 5-tuple versions
+        https://bugs.webkit.org/show_bug.cgi?id=135400
+        &lt;rdar://problem/17849033&gt;
+
+        Reviewed by David Kilzer.
+
+        Revise the auto-version.pl script so that it generates a set of packed
+        version tuples that allow us to map 5-tuple versions into something
+        that will work with Windows' 3-tuple version structure.
+
+        * win/tools/scripts/auto-version.pl:
+        (packTwoValues): Added,
+        (splitVersion): Revised to return packed combination of minor-tiny and
+        micro-nano to be used as &quot;MINOR&quot; and &quot;TINY&quot; portion of version.
+        (splitBuildMajorVersion): Deleted.
+        * win/tools/scripts/version-stamp.pl: Added.
+
</ins><span class="cx"> 2014-07-23  Bem Jones-Bey  &lt;bjonesbe@adobe.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Remove CSS_EXCLUSIONS compile flag and leftover code
</span></span></pre></div>
<a id="trunkWebKitLibrarieswintoolsscriptsautoversionpl"></a>
<div class="modfile"><h4>Modified: trunk/WebKitLibraries/win/tools/scripts/auto-version.pl (171797 => 171798)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebKitLibraries/win/tools/scripts/auto-version.pl        2014-07-30 16:23:04 UTC (rev 171797)
+++ trunk/WebKitLibraries/win/tools/scripts/auto-version.pl        2014-07-30 16:35:17 UTC (rev 171798)
</span><span class="lines">@@ -29,7 +29,6 @@
</span><span class="cx"> # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
</span><span class="cx"> 
</span><span class="cx"> sub splitVersion($);
</span><del>-sub splitBuildMajorVersion($);
</del><span class="cx"> 
</span><span class="cx"> die &quot;You must supply an output path as the argument.\n&quot; if ($#ARGV &lt; 0);
</span><span class="cx"> 
</span><span class="lines">@@ -71,11 +70,9 @@
</span><span class="cx"> my $PROPOSED_VERSION = (defined $ENVIRONMENT_VERSION) ? $ENVIRONMENT_VERSION : $FALLBACK_VERSION;
</span><span class="cx"> chomp($PROPOSED_VERSION);
</span><span class="cx"> 
</span><del>-my ($BUILD_MAJOR_VERSION, $BUILD_MINOR_VERSION, $BUILD_TINY_VERSION, $ADJUSTED_PROPOSED_VERSION) = splitVersion($PROPOSED_VERSION);
</del><ins>+my ($BUILD_MAJOR_VERSION, $BUILD_MINOR_VERSION, $BUILD_TINY_VERSION, $BUILD_VARIANT_VERSION, $ADJUSTED_PROPOSED_VERSION) = splitVersion($PROPOSED_VERSION);
</ins><span class="cx"> 
</span><del>-my ($MAJOR_VERSION, $MINOR_VERSION) = splitBuildMajorVersion($BUILD_MAJOR_VERSION);
-my $TINY_VERSION = $BUILD_MINOR_VERSION;
-my $VARIANT_VERSION = $BUILD_TINY_VERSION;
</del><ins>+my $TINY_VERSION = $BUILD_TINY_VERSION;
</ins><span class="cx"> my $VERSION_TEXT = $ADJUSTED_PROPOSED_VERSION;
</span><span class="cx"> my $VERSION_TEXT_SHORT = $VERSION_TEXT;
</span><span class="cx"> 
</span><span class="lines">@@ -102,10 +99,10 @@
</span><span class="cx"> #define __VERSION_TEXT__ &quot;$VERSION_TEXT&quot;
</span><span class="cx"> #define __BUILD_NUMBER__ &quot;$VERSION_TEXT&quot;
</span><span class="cx"> #define __BUILD_NUMBER_SHORT__ &quot;$VERSION_TEXT_SHORT&quot;
</span><del>-#define __VERSION_MAJOR__ $MAJOR_VERSION
-#define __VERSION_MINOR__ $MINOR_VERSION
-#define __VERSION_TINY__ $TINY_VERSION
-#define __VERSION_BUILD__ $VARIANT_VERSION
</del><ins>+#define __VERSION_MAJOR__ $BUILD_MAJOR_VERSION
+#define __VERSION_MINOR__ $BUILD_MINOR_VERSION
+#define __VERSION_TINY__ $BUILD_TINY_VERSION
+#define __VERSION_BUILD__ $BUILD_VARIANT_VERSION
</ins><span class="cx"> #define __BUILD_NUMBER_MAJOR__ $BUILD_MAJOR_VERSION
</span><span class="cx"> #define __BUILD_NUMBER_MINOR__ $BUILD_MINOR_VERSION
</span><span class="cx"> #define __BUILD_NUMBER_VARIANT__ $BUILD_TINY_VERSION
</span><span class="lines">@@ -117,7 +114,17 @@
</span><span class="cx"> }
</span><span class="cx"> close(OUTPUT_FILE);
</span><span class="cx"> 
</span><ins>+sub packTwoValues($$)
+{
+    my $first = shift;
+    my $second = shift;
</ins><span class="cx"> 
</span><ins>+    die &quot;First version component ($first) is too large. Must be between 0 and 99&quot; if ($first &gt; 99);
+    die &quot;Second version component ($second) is too large. Must be between 0 and 999&quot; if ($second &gt; 999);
+
+    return $first * 1000 + $second;
+}
+
</ins><span class="cx"> sub splitVersion($)
</span><span class="cx"> {
</span><span class="cx">     my $PROPOSED_VERSION = shift;
</span><span class="lines">@@ -134,13 +141,24 @@
</span><span class="cx">     # Have the minor and tiny components default to zero if not present.
</span><span class="cx">     my $BUILD_MINOR_VERSION = 0;
</span><span class="cx">     my $BUILD_TINY_VERSION = 0;
</span><ins>+    my $BUILD_MICRO_VERSION = 0;
+    my $BUILD_NANO_VERSION = 0;
</ins><span class="cx">     if ($componentCount &gt; 1) {
</span><span class="cx">         $BUILD_MINOR_VERSION = $components[1];
</span><del>-        if ($componentCount &gt; 2) {
-            $BUILD_TINY_VERSION = $components[2];
-        }
</del><span class="cx">     }
</span><ins>+    if ($componentCount &gt; 2) {
+        $BUILD_TINY_VERSION = $components[2];
+    }
+    if ($componentCount &gt; 3) {
+        $BUILD_MICRO_VERSION = $components[3];
+    }
</ins><span class="cx"> 
</span><ins>+    my $RETURN_NANO_VERSION = $BUILD_MICRO_VERSION;
+    if ($componentCount &gt; 4) {
+        $BUILD_NANO_VERSION = $components[4];
+        $RETURN_NANO_VERSION = $BUILD_NANO_VERSION;
+    }
+
</ins><span class="cx">     # Cut the major component down to three characters by dropping any
</span><span class="cx">     # extra leading digits, then adjust the major version portion of the
</span><span class="cx">     # version string to match.
</span><span class="lines">@@ -151,25 +169,6 @@
</span><span class="cx"> 
</span><span class="cx">     $PROPOSED_VERSION = substr($PROPOSED_VERSION, $charactersToRemove);
</span><span class="cx"> 
</span><del>-    return ($BUILD_MAJOR_VERSION, $BUILD_MINOR_VERSION, $BUILD_TINY_VERSION, $PROPOSED_VERSION);
</del><ins>+    return ($BUILD_MAJOR_VERSION, packTwoValues($BUILD_MINOR_VERSION, $BUILD_TINY_VERSION), packTwoValues($BUILD_MICRO_VERSION, $BUILD_NANO_VERSION), $RETURN_NANO_VERSION, $PROPOSED_VERSION);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-sub splitBuildMajorVersion($)
-{
-    # Split the first component further by using the first digit for the
-    # major version and the remaining two characters as the minor version.
-    # The minor version is shifted down to the tiny version, with the tiny
-    # version becoming the variant version.
-    my ($MAJOR_VERSION, $MINOR_VERSION);
-    {
-        if ($BUILD_MAJOR_VERSION =~ m/^[^\d]*(\d)(\d{1,})/) {
-            $MAJOR_VERSION = $1;
-            $MINOR_VERSION = $2;
-        } else {
-            $MAJOR_VERSION = $BUILD_MAJOR_VERSION;
-            $MINOR_VERSION = '';
-        }
-    }
-
-    return ($MAJOR_VERSION, $MINOR_VERSION);
-}
</del></span></pre></div>
<a id="trunkWebKitLibrarieswintoolsscriptsversionstamppl"></a>
<div class="addfile"><h4>Added: trunk/WebKitLibraries/win/tools/scripts/version-stamp.pl (0 => 171798)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/WebKitLibraries/win/tools/scripts/version-stamp.pl                                (rev 0)
+++ trunk/WebKitLibraries/win/tools/scripts/version-stamp.pl        2014-07-30 16:35:17 UTC (rev 171798)
</span><span class="lines">@@ -0,0 +1,113 @@
</span><ins>+#!/usr/bin/perl -w
+
+use strict;
+use File::Spec;
+
+# Copyright (C) 2007, 2009, 2014 Apple Inc.  All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1. Redistributions of source code must retain the above copyright
+#    notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+#    notice, this list of conditions and the following disclaimer in the
+#    documentation and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
+# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
+# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+# OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+sub exitStatus($);
+
+my $WEBKIT_LIBRARIES = $ENV{'WEBKIT_LIBRARIES'};
+
+my $VERSION_STAMPER = File::Spec-&gt;catfile($WEBKIT_LIBRARIES, 'tools', 'VersionStamper', 'VersionStamper.exe');
+
+unless (-e $VERSION_STAMPER) {
+    print &quot;No $VERSION_STAMPER executable. Exiting.\n&quot;;
+    exit(0);
+}
+
+my ($intdir, $target);
+if (scalar(@ARGV) &gt; 1) {
+    $intdir = $ARGV[0];
+    $target = $ARGV[1];
+} else {
+    my @arguments = split(/\s+/, $ARGV[0]) or die &quot;Couldn't parse $ARGV[0]&quot;;
+    die &quot;You must supply the build output directory and the target to be stamped with version information.\n&quot; if (scalar(@arguments) &lt; 2);
+    $intdir = $arguments[0];
+    $target = $arguments[1];
+}
+
+# Make sure we don't have any leading or trailing quote characters.
+$intdir =~ s/^\&quot;//;
+$intdir =~ s/\&quot;$//;
+
+$target =~ s/^\&quot;//;
+$target =~ s/\&quot;$//;
+
+my %components =
+(
+    '__VERSION_TEXT__' =&gt; undef,
+    '__VERSION_MAJOR__' =&gt; undef,
+    '__VERSION_MINOR__' =&gt; undef,
+    '__VERSION_TINY__' =&gt; undef,
+    '__VERSION_BUILD__' =&gt; undef,
+);
+
+my $VERSION_FILE = File::Spec-&gt;catfile(File::Spec-&gt;canonpath($intdir), 'include', 'autoversion.h');
+
+open(VERSION_INFO, '&lt;', $VERSION_FILE) or die &quot;Unable to open $VERSION_FILE: $!\n&quot;;
+while (my $line = &lt;VERSION_INFO&gt;) {
+    foreach my $componentKey (keys %components) {
+        if ($line !~ m/$componentKey/) {
+            next;
+        }
+
+        $line =~ s/#define $componentKey//;
+        $line =~ s/^\s*(.*)\s*$/$1/;
+        $line =~ s/^&quot;(.*)&quot;$/$1/;
+        chomp($line);
+
+        $components{$componentKey} = $line;
+    }
+}
+close(VERSION_INFO);
+
+print &quot;Processing version $components{'__VERSION_TEXT__'} for $target\n&quot;;
+
+my $TARGET_PATH = File::Spec-&gt;canonpath($target);
+
+my $rc = system($VERSION_STAMPER, '--verbose', $TARGET_PATH, '--fileMajor', $components{'__VERSION_MAJOR__'},
+    '--fileMinor', $components{'__VERSION_MINOR__'}, '--fileRevision', $components{'__VERSION_TINY__'},
+    '--fileBuild', $components{'__VERSION_BUILD__'}, '--productMajor', $components{'__VERSION_MAJOR__'},
+    '--productMinor', $components{'__VERSION_MINOR__'}, '--productRevision', $components{'__VERSION_TINY__'},
+    '--productBuild', $components{'__VERSION_BUILD__'}); 
+
+exit(exitStatus($rc));
+
+# This method is for portability. Return the system-appropriate exit
+# status of a child process.
+#
+# Args: pass the child error status returned by the last pipe close,
+#       for example &quot;$?&quot;.
+sub exitStatus($)
+{
+    my ($returnvalue) = @_;
+    if ($^O eq &quot;MSWin32&quot;) {
+        return $returnvalue &gt;&gt; 8;
+    }
+    if (!WIFEXITED($returnvalue)) {
+        return 254;
+    }
+    return WEXITSTATUS($returnvalue);
+}
</ins></span></pre>
</div>
</div>

</body>
</html>