meson: also indent scripts with 8 spaces
This commit is contained in:
@@ -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 "};"}
|
||||
|
||||
@@ -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 "};"}
|
||||
|
||||
@@ -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 "};"}
|
||||
|
||||
@@ -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 "};"
|
||||
}
|
||||
|
||||
@@ -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; }'
|
||||
|
||||
@@ -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_//'
|
||||
|
||||
@@ -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,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; }'
|
||||
|
||||
Reference in New Issue
Block a user