Developer forums (C::B DEVELOPMENT STRICTLY!) > Contributions to C::B

redirect standard output in pre/post build steps

(1/1)

squirrel:
I want to redirect standard out in post build steps.
e.g.

--- Code: ---objdump -dSt target.elf > target.lst

--- End code ---
This works under linux, under windows the part of command line after ".elf" is omitted.

So I tried to def a custom variable like

--- Code: ---ARGS=-dSt target.elf > target.lst

--- End code ---
in order to do

--- Code: ---objdump $(ARGS)

--- End code ---
but C::B inserts quotes around ARGS and that approach does not work either.

Can you give ma a hint on how to define such a post build step?

mandrav:
Try this:


--- Code: ---cmd /c objdump -dSt target.elf > target.lst

--- End code ---

aozima:
Thanks!!!
I'm OK! (windows,WINAVR)


[attachment deleted by admin]

Navigation

[0] Message Index

Go to full version