diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-04-24 19:40:02 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-04-25 08:49:16 -0400 |
commit | b884196cc1565eaf1b97141fbfa0667ee348e463 (patch) | |
tree | 9c61d74211ac9227af5ebc7061bd2f54ff4b200c /src/journal | |
parent | dd6ab3df749172e0b85de00338b485d8f4e24fa1 (diff) |
meson: also indent scripts with 8 spaces
Diffstat (limited to 'src/journal')
-rw-r--r-- | src/journal/audit_type-to-name.awk | 8 | ||||
-rwxr-xr-x | src/journal/generate-audit_type-list.sh | 8 |
2 files changed, 10 insertions, 6 deletions
diff --git a/src/journal/audit_type-to-name.awk b/src/journal/audit_type-to-name.awk index 38a4b05321..44fc702eb3 100644 --- a/src/journal/audit_type-to-name.awk +++ b/src/journal/audit_type-to-name.awk @@ -1,5 +1,9 @@ -BEGIN{ print "const char *audit_type_to_string(int type) {\n\tswitch(type) {" } +BEGIN{ + print "const char *audit_type_to_string(int type) {\n\tswitch(type) {" +} { printf " case AUDIT_%s: return \"%s\";\n", $1, $1 } -END{ print " default: return NULL;\n\t}\n}\n" } +END{ + print " default: return NULL;\n\t}\n}\n" +} diff --git a/src/journal/generate-audit_type-list.sh b/src/journal/generate-audit_type-list.sh index c9476b7809..18cbe0599c 100755 --- a/src/journal/generate-audit_type-list.sh +++ b/src/journal/generate-audit_type-list.sh @@ -5,10 +5,10 @@ shift includes="" for i in "$@"; do - includes="$includes -include $i" + includes="$includes -include $i" done $cpp -dM $includes - </dev/null | \ - grep -vE 'AUDIT_.*(FIRST|LAST)_' | \ - sed -r -n 's/^#define\s+AUDIT_(\w+)\s+([0-9]{4})\s*$$/\1\t\2/p' | \ - sort -k2 + grep -vE 'AUDIT_.*(FIRST|LAST)_' | \ + sed -r -n 's/^#define\s+AUDIT_(\w+)\s+([0-9]{4})\s*$$/\1\t\2/p' | \ + sort -k2 |