| Summary: | [WIN] Enhance auto-version.sh to handle all-caps or mixed-case build environment variable | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Brent Fulgham <bfulgham> | ||||
| Component: | Tools / Tests | Assignee: | Brent Fulgham <bfulgham> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | Keywords: | InRadar | ||||
| Priority: | P2 | ||||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | PC | ||||||
| OS: | All | ||||||
| Bug Depends on: | 132455 | ||||||
| Bug Blocks: | |||||||
| Attachments: |
|
||||||
|
Description
Brent Fulgham
2014-05-05 13:29:06 PDT
Created attachment 230853 [details]
Patch
Comment on attachment 230853 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=230853&action=review > WebKitLibraries/win/tools/scripts/auto-version.sh:53 > ENVIRONMENT_VERSION="$RC_ProjectSourceVersion"; > +if [[ -z "$ENVIRONMENT_VERSION" ]]; then > + # Try the original all-caps version of the environment variable > + ENVIRONMENT_VERSION="$RC_PROJECTSOURCEVERSION"; > +fi You can avoid the if by doing something like: ENVIRONMENT_VERSION=${RC_ProjectSourceVersion:-$RC_PROJECTSOURCEVERSION}; Comment on attachment 230853 [details]
Patch
Listen to Mark :)
Committed r168321: <http://trac.webkit.org/changeset/168321> |