| Summary: | [Win] Use RC_PROJECTBUILDVERSION as build portion of version | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Brent Fulgham <bfulgham> | ||||
| Component: | Tools / Tests | Assignee: | Brent Fulgham <bfulgham> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | bfulgham, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | PC | ||||||
| OS: | All | ||||||
| Attachments: |
|
||||||
|
Description
Brent Fulgham
2014-07-31 15:22:46 PDT
Created attachment 235854 [details]
Patch
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. :) 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. Committed r171903: <http://trac.webkit.org/changeset/171903> |