https://bugs.webkit.org/show_bug.cgi?id=132580
<rdar://problem/
16811179>
Reviewed by Dean Jackson.
* win/tools/scripts/auto-version.sh: Incorporate Mark's revised syntax.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@168321
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2014-05-05 Brent Fulgham <bfulgham@apple.com>
+
+ [WIN] Enhance auto-version.sh to handle all-caps or mixed-case build environment variable
+ https://bugs.webkit.org/show_bug.cgi?id=132580
+ <rdar://problem/16811179>
+
+ Reviewed by Dean Jackson.
+
+ * win/tools/scripts/auto-version.sh: Incorporate Mark's revised syntax.
+
2014-05-05 Brent Fulgham <bfulgham@apple.com>
[WIN] Enhance auto-version.sh to handle all-caps or mixed-case build environment variable
# Take the initial version number from RC_ProjectSourceVersion if it
# exists, otherwise fall back to the version number stored in the source.
-ENVIRONMENT_VERSION="$RC_ProjectSourceVersion";
-if [[ -z "$ENVIRONMENT_VERSION" ]]; then
- # Try the original all-caps version of the environment variable
- ENVIRONMENT_VERSION="$RC_PROJECTSOURCEVERSION";
-fi
+ENVIRONMENT_VERSION=${RC_ProjectSourceVersion:-$RC_PROJECTSOURCEVERSION};
PROPOSED_VERSION=${ENVIRONMENT_VERSION:-$FALLBACK_VERSION}
chomp PROPOSED_VERSION