| Summary: | [Win] Correct auto-version.pl script for two-digit version numbers | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Brent Fulgham <bfulgham> | ||||||||||
| Component: | Tools / Tests | Assignee: | Brent Fulgham <bfulgham> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Blocker | CC: | bfulgham, webkit-bug-importer | ||||||||||
| Priority: | P1 | Keywords: | InRadar | ||||||||||
| Version: | 528+ (Nightly build) | ||||||||||||
| Hardware: | PC | ||||||||||||
| OS: | All | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Brent Fulgham
2014-07-21 10:07:16 PDT
Created attachment 235224 [details]
Patch
Original Shell code:
MAJOR_VERSION=${BUILD_MAJOR_VERSION:0:1}
MINOR_VERSION=${BUILD_MAJOR_VERSION:1}
Proposed Perl version:
$BUILD_MAJOR_VERSION =~ m/^[^\d]*(\d)(\d{1,})/;
my $MAJOR_VERSION = $1;
my $MINOR_VERSION = $2;
Created attachment 235225 [details]
Patch
Created attachment 235226 [details]
Patch
Script behavior: 'auto-version.sh': RC_PROJECTSOURCEVERSION=15300 -> 300 -> 3, 00 RC_PROJECTSOURCEVERSION=5300 -> 300 -> 3, 00 RC_PROJECTSOURCEVERSION=530 -> 530 -> 5, 30 RC_PROJECTSOURCEVERSION=53 -> 53 -> 5, 3 RC_PROJECTSOURCEVERSION=5 -> 5 -> 5, ERROR 'auto-version.pl': RC_PROJECTSOURCEVERSION=15300 -> 300 -> 3, 00 RC_PROJECTSOURCEVERSION=5300 -> 300 -> 3, 00 RC_PROJECTSOURCEVERSION=530 -> 530 -> 5, 30 RC_PROJECTSOURCEVERSION=53 -> 53 -> 5, 3 RC_PROJECTSOURCEVERSION=5 -> 5 -> ERROR Created attachment 235227 [details]
Patch
Comment on attachment 235227 [details]
Patch
r=me
Committed r171305: <http://trac.webkit.org/changeset/171305> |