]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
support/graph-depends: add option to specify output file
authorYann E. MORIN <yann.morin.1998@free.fr>
Sun, 7 Feb 2016 21:34:25 +0000 (22:34 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 7 Feb 2016 22:15:30 +0000 (23:15 +0100)
commita3f75bcc764d5136fe79f2b734c37068270dde28
tree6f09b0cf046dffbf99ec3160096c981699c1c89f
parent92f704a8c120521458610d610fc6e54d032f1345
support/graph-depends: add option to specify output file

Currently, graph-depends outputs the dotfile program to stdout, and uses
stderr to trace the dependencies it is currently looking for.

Redirection was done because the output was directly piped into the dot
program to generate the final PDF/SVG/... dependency graph, but that
meant that an error in the graph-depends script was never caught
(because shell pipes only return the final command exit status, and an
empty dot program is perfectly valid so dot would not complain).

Add an option to tell graph-depends where to store the generated dot
program, and keep stdout as the default if not specified.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Samuel Martin <s.martin49@gmail.com>
[Thomas: rename metavar from DOT_FILE to OUT_FILE for consistency with
the rest of the new option naming.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
support/scripts/graph-depends