[WIN] Enhance auto-version.sh to handle all-caps or mixed-case build environment...
authorbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 5 May 2014 22:09:36 +0000 (22:09 +0000)
committerbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 5 May 2014 22:09:36 +0000 (22:09 +0000)
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

WebKitLibraries/ChangeLog
WebKitLibraries/win/tools/scripts/auto-version.sh

index 652bad8..81b8b54 100644 (file)
@@ -1,3 +1,14 @@
+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
index ea695e4..9397b28 100755 (executable)
@@ -47,6 +47,11 @@ mkdir -p "$(dirname "$OUTPUT_FILE")"
 # 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