linux-stable/tools/net/ynl
Jiri Pirko f65f305ae0 tools: ynl-gen: use temporary file for rendering
Currently any error during render leads to output an empty file.
That is quite annoying when using tools/net/ynl/ynl-regen.sh
which git greps files with content of "YNL-GEN.." and therefore ignores
empty files. So once you fail to regen, you have to checkout the file.

Avoid that by rendering to a temporary file first, only at the end
copy the content to the actual destination.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-08-19 19:24:38 +01:00
..
generated netlink: specs: devlink: extend health reporter dump attributes by port index 2023-08-14 11:47:25 -07:00
lib tools: ynl: add more info to KeyErrors on missing attrs 2023-08-15 19:18:34 -07:00
samples ynl: print xdp-zc-max-segs in the sample 2023-07-28 09:33:12 -07:00
cli.py ynl: re-license uniformly under GPL-2.0 OR BSD-3-Clause 2023-03-07 13:44:30 -08:00
ethtool.py tools: ynl: Rename ethtool to ethtool.py 2023-04-13 22:18:29 -07:00
Makefile ynl: regenerate all headers 2023-07-28 09:33:12 -07:00
Makefile.deps tools: ynl: improve the direct-include header guard logic 2023-06-22 19:47:02 -07:00
requirements.txt tools: ynl: add the Python requirements.txt file 2023-03-24 19:11:02 -07:00
ynl-gen-c.py tools: ynl-gen: use temporary file for rendering 2023-08-19 19:24:38 +01:00
ynl-regen.sh ynl: regenerate all headers 2023-07-28 09:33:12 -07:00