cminkoff / gyp

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

Need a way to specify current directory for an action command #499

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Think about creating an action such as

          'actions': [
            {
              'action_name': 'buildDoc',
              'message': 'Generating documentation with Oxygen',
              'inputs': [
                '<@(sources)'
                '../doxyConfig'
              ],
               'outputs': [
                '../build/doc/.gentimestamp',
                '../build/doc/html',
                '../build/doc/latex',
                '../build/doc/man',
              ],
              'action': [
                'doxygen', 'doxyConfig'
              ],
            },
          ], # actions

2.  Realize that files specified in the doxyConfig file are specified relative 
to the current directory when the doxygen command runs.

3. Realize there is no way to specify a current directory for the action.

4. Realize that the command is converted to "exec doxygen ..." (for sh) or 
"call call doxygen ..." (for cmd.exe, and yes there are 2 instances of "call") 
so you cannot do something like 

             'action': [
               'cd', '..', 'doxygen', 'doxyConfig'
              ],

Please provide any additional information below.

It would be great if you could specify, e.g., 'directory' : '..' in the action 
dictionary. The value would obviously have to be relativized in the output.

Original issue reported on code.google.com by marksc2...@gmail.com on 7 Oct 2015 at 1:05