Re: make Command Builder not print command

Bill Deegan <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <CAEyG4CHH2AHJuTv+O0=SFTho81Gsb0n0xB57JtK1-7kbTNa2ow@mail.gmail.com>
Maybe an override defining PRINT_CMD_LINE_FUNC?

Like this:

import sys

def print_cmd_line(s, target, source, env):
  sys.stdout.write("AHAH\n")

env = Environment()
env.Command('file.out', 'file.in', 'cat $SOURCE > $TARGET',
PRINT_CMD_LINE_FUNC=print_cmd_line )



On Tue, Mar 5, 2019 at 7:30 PM Daniel Moody <[email protected]> wrote:

> How can I make a Command() that doesn't print the command, or print my own
> string instead? I don't want to use silent or -Q because I only want this
> command to be printed.
>
> For example
>
> env = Environment()
> env.Command('file.out', 'file.in', 'cat $SOURCE > $TARGET')
>
> results in:
>
> scons: Reading SConscript files ...
> scons: done reading SConscript files.
> scons: Building targets ...
> cat file.in > file.out
> scons: done building targets.
>
> I just want:
>
> scons: Reading SConscript files ...
> scons: done reading SConscript files.
> scons: Building targets ...
> scons: done building targets.
> _______________________________________________
> Scons-users mailing list
> [email protected]
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>

_______________________________________________
Scons-users mailing list
[email protected]
https://pairlist4.pair.net/mailman/listinfo/scons-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.