[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:11:57 +0000 (22:11 +0000)
committerbfulgham@apple.com <bfulgham@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 5 May 2014 22:11:57 +0000 (22:11 +0000)
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

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

index 81b8b54..941607e 100644 (file)
@@ -6,6 +6,16 @@
 
         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
+        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.
 
index 9397b28..3f1af37 100755 (executable)
@@ -46,11 +46,7 @@ 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
+ENVIRONMENT_VERSION=${RC_ProjectSourceVersion:-$RC_PROJECTSOURCEVERSION};
 
 PROPOSED_VERSION=${ENVIRONMENT_VERSION:-$FALLBACK_VERSION}
 chomp PROPOSED_VERSION