Thread: [A-a-p-user] Question about :execute {pass}
Brought to you by:
vimboss
From: Scott W. <swi...@ic...> - 2003-08-27 03:14:51
|
First let me say that AAP is very cool stuf. It solves many of the problems that I have with other build systems. I have a question about the behavior of the :execute function. When I use the {pass} option the execute command does not set variables that are specified on the :execute command line. This does work without the {pass} option. Is this the intended behavior or is this a bug? When I run aap on the example below I get the following output. > aap -DFOO -DBAR > aap bad Aap: Error in recipe "/tmp/aaptest/main.aap" line 2: NameError: name 'vary' is not defined Any suggestions? Thanks, Scott Witscher Intel Corporation # main.aap :variant vary foo DEFINES = -DFOO bar DEFINES = -DBAR * build: :print $DEFINES all: :execute main.aap build vary=foo :execute main.aap build vary=bar bad: :execute {pass} main.aap build vary=foo :execute {pass} main.aap build vary=bar |
From: Bram M. <Br...@mo...> - 2003-08-28 13:30:40
|
Scott Witscher wrote: > First let me say that AAP is very cool stuf. It solves many of the > problems that I have with other build systems. I'm glad you like it. > I have a question about the behavior of the :execute function. When I > use the {pass} option the execute command does not set variables that > are specified on the :execute command line. This does work without > the {pass} option. Is this the intended behavior or is this a bug? This looks like a bug. I can reproduce the problem, thanks for the clear description. I'll look into a solution, it is not obvious how the environment is passed to the executed recipe. BTW, it's strange to have a recipe execute itself, but I suppose there is nothing that prevents you from doing it. -- If you're sending someone Styrofoam, what do you pack it in? /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\ \\\ Project leader for A-A-P -- http://www.A-A-P.org /// \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html /// |
From: Bram M. <Br...@mo...> - 2003-09-01 17:59:00
|
Scott Witscher wrote: > I have a question about the behavior of the :execute function. When I > use the {pass} option the execute command does not set variables that > are specified on the :execute command line. This does work without > the {pass} option. Is this the intended behavior or is this a bug? > > When I run aap on the example below I get the following output. > > > aap > -DFOO > -DBAR > > > aap bad > Aap: Error in recipe "/tmp/aaptest/main.aap" line 2: NameError: name 'vary' is not defined I have now fixed this problem. The arguments of ":execute" ended up in the wrong dictionary. Aap 1.023 will be available later today. -- ZOOT: I'm afraid our life must seem very dull and quiet compared to yours. We are but eightscore young blondes, all between sixteen and nineteen-and-a-half, cut off in this castle, with no one to protect us. Oooh. It is a lonely life ... bathing ... dressing ... undressing ... making exciting underwear.... "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\ \\\ Project leader for A-A-P -- http://www.A-A-P.org /// \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html /// |