[Scons-users] Command vs. Action
Stefan Seefeld
stefan at seefeld.name
Fri Jun 10 14:13:46 EDT 2016
Hello,
in my SConscript file I have
def BoostRun(env, prog, target, command = "./$SOURCE > $TARGET"):
run = env.Command(target, prog, command)
return run
which works reasonably well. I'd now like to fine-tune this to print a
custom message rather than the actual command being executed. Apparently
I need to use an 'Action' to do that, so I substitute the above by
def BoostRun(env, prog, target, command = "./$SOURCE > $TARGET"):
run = env.Command(target, prog, env.Action(command,
cmdstr="testing..."))
return run
This however yields an error, as the generated command is (almost)
empty, i.e. $SOURCE and $TARGET are not properly substituted. Can anyone
tell me what I'm missing ?
Thanks,
Stefan
--
...ich hab' noch einen Koffer in Berlin...
More information about the Scons-users
mailing list