https://bugs.webkit.org/show_bug.cgi?id=132580
<rdar://problem/
16811179>
Reviewed by Dean Jackson.
* win/tools/scripts/auto-version.sh: Fall back to all-caps version
of environment variable if mixed-case version is not present.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@168320
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: Fall back to all-caps version
+ of environment variable if mixed-case version is not present.
+
2014-05-01 Brent Fulgham <bfulgham@apple.com>
Correct case of environment variables in auto-version.sh scripts
# 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
+
PROPOSED_VERSION=${ENVIRONMENT_VERSION:-$FALLBACK_VERSION}
chomp PROPOSED_VERSION