meson: also indent scripts with 8 spaces

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2017-04-25 08:49:16 -04:00
parent dd6ab3df74
commit b884196cc1
21 changed files with 109 additions and 79 deletions
+7 -3
View File
@@ -1,5 +1,9 @@
BEGIN{ print "static const char* const af_names[] = { "}
BEGIN{
print "static const char* const af_names[] = { "
}
!/AF_FILE/ && !/AF_ROUTE/ && !/AF_LOCAL/ {
printf " [%s] = \"%s\",\n", $1, $1
printf " [%s] = \"%s\",\n", $1, $1
}
END{
print "};"
}
END{print "};"}
+7 -3
View File
@@ -1,5 +1,9 @@
BEGIN{ print "static const char* const arphrd_names[] = { "}
BEGIN{
print "static const char* const arphrd_names[] = { "
}
!/CISCO/ {
printf " [ARPHRD_%s] = \"%s\",\n", $1, $1
printf " [ARPHRD_%s] = \"%s\",\n", $1, $1
}
END{
print "};"
}
END{print "};"}
+7 -3
View File
@@ -1,5 +1,9 @@
BEGIN{ print "static const char* const capability_names[] = { "}
BEGIN{
print "static const char* const capability_names[] = { "
}
{
printf " [%s] = \"%s\",\n", $1, tolower($1)
printf " [%s] = \"%s\",\n", $1, tolower($1)
}
END{
print "};"
}
END{print "};"}
+8 -3
View File
@@ -1,4 +1,9 @@
BEGIN{ print "static const char* const errno_names[] = { " }
BEGIN{
print "static const char* const errno_names[] = { "
}
!/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ {
printf " [%s] = \"%s\",\n", $1, $1 }
END{ print "};" }
printf " [%s] = \"%s\",\n", $1, $1
}
END{
print "};"
}
+2 -2
View File
@@ -1,5 +1,5 @@
#!/bin/sh -eu
$1 -E -dM -include sys/socket.h - </dev/null | \
grep -Ev 'AF_UNSPEC|AF_MAX' | \
awk '/^#define[ \t]+AF_[^ \t]+[ \t]+PF_[^ \t]/ { print $2; }'
grep -Ev 'AF_UNSPEC|AF_MAX' | \
awk '/^#define[ \t]+AF_[^ \t]+[ \t]+PF_[^ \t]/ { print $2; }'
+2 -2
View File
@@ -1,5 +1,5 @@
#!/bin/sh -eu
$1 -dM -include net/if_arp.h - </dev/null | \
awk '/^#define[ \t]+ARPHRD_[^ \t]+[ \t]+[^ \t]/ { print $2; }' | \
sed -e 's/ARPHRD_//'
awk '/^#define[ \t]+ARPHRD_[^ \t]+[ \t]+[^ \t]/ { print $2; }' | \
sed -e 's/ARPHRD_//'
+2 -2
View File
@@ -1,5 +1,5 @@
#!/bin/sh -eu
$1 -dM -include linux/capability.h -include "$2" -include "$3" - </dev/null | \
awk '/^#define[ \t]+CAP_[A-Z_]+[ \t]+/ { print $2; }' | \
grep -v CAP_LAST_CAP
awk '/^#define[ \t]+CAP_[A-Z_]+[ \t]+/ { print $2; }' | \
grep -v CAP_LAST_CAP
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh -eu
$1 -dM -include errno.h - </dev/null | \
awk '/^#define[ \t]+E[^ _]+[ \t]+/ { print $2; }'
awk '/^#define[ \t]+E[^ _]+[ \t]+/ { print $2; }'