<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>132580</bug_id>
          
          <creation_ts>2014-05-05 13:29:06 -0700</creation_ts>
          <short_desc>[WIN] Enhance auto-version.sh to handle all-caps or mixed-case build environment variable</short_desc>
          <delta_ts>2014-05-05 15:12:29 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>132455</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Brent Fulgham">bfulgham</reporter>
          <assigned_to name="Brent Fulgham">bfulgham</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1006718</commentid>
    <comment_count>0</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2014-05-05 13:29:06 -0700</bug_when>
    <thetext>In Bug 132455, I modified our build scripts to support mixed-case environment variables. However, we should still support older build machines running old versions of Cygwin where these variables will be set to all caps.

This patch assumes we will be using the new mixed-case variable style. If that variable is not present, it falls back to the original use of all capitals.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1006719</commentid>
    <comment_count>1</comment_count>
      <attachid>230853</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2014-05-05 13:31:02 -0700</bug_when>
    <thetext>Created attachment 230853
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1006720</commentid>
    <comment_count>2</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2014-05-05 13:31:26 -0700</bug_when>
    <thetext>&lt;rdar://problem/16811179&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1006741</commentid>
    <comment_count>3</comment_count>
      <attachid>230853</attachid>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2014-05-05 14:41:48 -0700</bug_when>
    <thetext>Comment on attachment 230853
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=230853&amp;action=review

&gt; WebKitLibraries/win/tools/scripts/auto-version.sh:53
&gt;  ENVIRONMENT_VERSION=&quot;$RC_ProjectSourceVersion&quot;;
&gt; +if [[ -z &quot;$ENVIRONMENT_VERSION&quot; ]]; then
&gt; +    # Try the original all-caps version of the environment variable
&gt; +    ENVIRONMENT_VERSION=&quot;$RC_PROJECTSOURCEVERSION&quot;;
&gt; +fi

You can avoid the if by doing something like:
ENVIRONMENT_VERSION=${RC_ProjectSourceVersion:-$RC_PROJECTSOURCEVERSION};</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1006749</commentid>
    <comment_count>4</comment_count>
      <attachid>230853</attachid>
    <who name="Dean Jackson">dino</who>
    <bug_when>2014-05-05 15:08:27 -0700</bug_when>
    <thetext>Comment on attachment 230853
Patch

Listen to Mark :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1006753</commentid>
    <comment_count>5</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2014-05-05 15:12:29 -0700</bug_when>
    <thetext>Committed r168321: &lt;http://trac.webkit.org/changeset/168321&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>230853</attachid>
            <date>2014-05-05 13:31:02 -0700</date>
            <delta_ts>2014-05-05 15:08:27 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-132580-20140505133039.patch</filename>
            <type>text/plain</type>
            <size>1539</size>
            <attacher name="Brent Fulgham">bfulgham</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdExpYnJhcmllcy9DaGFuZ2VMb2cKPT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gV2ViS2l0TGli
cmFyaWVzL0NoYW5nZUxvZwkocmV2aXNpb24gMTY4MzEyKQorKysgV2ViS2l0TGlicmFyaWVzL0No
YW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE0IEBACisyMDE0LTA1LTA1ICBCcmVu
dCBGdWxnaGFtICA8YmZ1bGdoYW1AYXBwbGUuY29tPgorCisgICAgICAgIFtXSU5dIEVuaGFuY2Ug
YXV0by12ZXJzaW9uLnNoIHRvIGhhbmRsZSBhbGwtY2FwcyBvciBtaXhlZC1jYXNlIGJ1aWxkIGVu
dmlyb25tZW50IHZhcmlhYmxlCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3df
YnVnLmNnaT9pZD0xMzI1ODAKKyAgICAgICAgPHJkYXI6Ly9wcm9ibGVtLzE2ODExMTc5PgorCisg
ICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgICogd2luL3Rvb2xz
L3NjcmlwdHMvYXV0by12ZXJzaW9uLnNoOiBGYWxsIGJhY2sgdG8gYWxsLWNhcHMgdmVyc2lvbgor
ICAgICAgICBvZiBlbnZpcm9ubWVudCB2YXJpYWJsZSBpZiBtaXhlZC1jYXNlIHZlcnNpb24gaXMg
bm90IHByZXNlbnQuCisKIDIwMTQtMDUtMDEgIEJyZW50IEZ1bGdoYW0gIDxiZnVsZ2hhbUBhcHBs
ZS5jb20+CiAKICAgICAgICAgQ29ycmVjdCBjYXNlIG9mIGVudmlyb25tZW50IHZhcmlhYmxlcyBp
biBhdXRvL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="255239"
          type_id="1"
          status="+"
          setter="dino"
    />
          </attachment>
      

    </bug>

</bugzilla>