RESOLVED FIXED 135478
[Win] Use RC_PROJECTBUILDVERSION as build portion of version
https://bugs.webkit.org/show_bug.cgi?id=135478
Summary [Win] Use RC_PROJECTBUILDVERSION as build portion of version
Brent Fulgham
Reported 2014-07-31 15:22:46 PDT
We want to make sure that the environment variable 'RC_PROJECTBUILDVERSION' is used (when available) to populate the FILE version of the version resource.
Attachments
Patch (2.11 KB, patch)
2014-07-31 15:28 PDT, Brent Fulgham
ddkilzer: review+
Brent Fulgham
Comment 1 2014-07-31 15:28:47 PDT
Radar WebKit Bug Importer
Comment 2 2014-07-31 16:12:43 PDT
David Kilzer (:ddkilzer)
Comment 3 2014-07-31 16:42:30 PDT
Comment on attachment 235854 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=235854&action=review r=me either way Also, can we write a test for SAFE_BUILD_VERSION being defined in the environment to test the override? > WebKitLibraries/win/tools/scripts/version-stamp.pl:103 > +my $SAFE_BUILD_VERSION = $ENV{RC_PROJECTBUILDVERSION}; > +if (!defined($SAFE_BUILD_VERSION)) { > + $SAFE_BUILD_VERSION = $components{'__VERSION_BUILD__'}; > +} I would prefer to write this code thusly: my $SAFE_BUILD_VERSION = $ENV{RC_PROJECTBUILDVERSION} || $components{'__VERSION_BUILD__'}; I think it's a lot easier to read that way. :)
Brent Fulgham
Comment 4 2014-07-31 17:18:38 PDT
Comment on attachment 235854 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=235854&action=review >> WebKitLibraries/win/tools/scripts/version-stamp.pl:103 >> +} > > I would prefer to write this code thusly: > > my $SAFE_BUILD_VERSION = $ENV{RC_PROJECTBUILDVERSION} || $components{'__VERSION_BUILD__'}; > > I think it's a lot easier to read that way. :) Will do.
Brent Fulgham
Comment 5 2014-07-31 18:16:16 PDT
Note You need to log in before you can comment on or make changes to this bug.