Thomas Haller
d1f8e843d5
shared: don't clang-format "shared/nm-std-aux/unaligned.h"
...
"shared/nm-std-aux/unaligned.h" is taken from systemd and frequently
re-imported via the "systemd" branch.
It is not our code, and should not be formatted with our clang-format.
2021-01-05 09:37:02 +01:00
Thomas Haller
d07cd5dbf2
all: avoid GNU "which" from shell scripts
...
"which" is a separate package and may not be installed.
Also, shell has a built-in command for the same purpose.
Use that.
2020-12-11 16:42:23 +01:00
Thomas Haller
8435deecfa
contrib: let "nm-code-format.sh" handle files under ./{shared,src}/systemd/
...
Only the files under ./{shared,src}/systemd/src are copied from systemd.
The other files should be reformatted too.
2020-09-28 20:01:23 +02:00
Antonio Cardace
5119d00374
scripts: better error message for nm-code-format.sh
...
Signed-off-by: Antonio Cardace <acardace@redhat.com >
2020-09-02 19:20:36 +02:00
Antonio Cardace
715392a45e
scripts: add script to format codebase using clang-format
...
Signed-off-by: Antonio Cardace <acardace@redhat.com >
2020-09-02 17:31:42 +02:00