ezefranca / gyp

Automatically exported from code.google.com/p/gyp
0 stars 0 forks source link

Copy folder mass up the relative path on windows #299

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Have a gyp file which includes a copies section like this:
      'copies': [
        {
          'destination': '<(DEPTH)/../talk/media',
          'files': [
            'media/testdata/',
          ],
        },
      ],
2. gclient runhooks

What is the expected output? What do you see instead?
From the vcproject file, I saw it's interpreted as 
 <Command>call cd &quot;media&quot; &amp;&amp; xcopy /e /f /y &quot;testdata&quot; &quot;..\..\talk\media\testdata\&quot;</Command>

After the "cd media" above, the <(DEPTH) should no longer be "..\", it should 
be "..\..\" instead.

What version of the product are you using? On what operating system?
r1492

Please provide any additional information below.

Original issue reported on code.google.com by ronghuawu@google.com on 26 Sep 2012 at 6:57