Skip to content

Commit b884196

Browse files
committed
meson: also indent scripts with 8 spaces
1 parent dd6ab3d commit b884196

21 files changed

+109
-79
lines changed

.dir-locals.el

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,7 @@
2121
(eval . (c-set-offset 'arglist-close 0))))
2222
(nxml-mode . ((nxml-child-indent . 2)
2323
(fill-column . 119)))
24-
(meson-mode . ((meson-indent-basic . 8))))
24+
(meson-mode . ((meson-indent-basic . 8)))
25+
(sh-mode . ((sh-basic-offset . 8)
26+
(sh-indentation . 8)))
27+
(awk-mode . ((c-basic-offset . 8))))

src/basic/af-to-name.awk

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
BEGIN{ print "static const char* const af_names[] = { "}
1+
BEGIN{
2+
print "static const char* const af_names[] = { "
3+
}
24
!/AF_FILE/ && !/AF_ROUTE/ && !/AF_LOCAL/ {
3-
printf " [%s] = \"%s\",\n", $1, $1
5+
printf " [%s] = \"%s\",\n", $1, $1
6+
}
7+
END{
8+
print "};"
49
}
5-
END{print "};"}

src/basic/arphrd-to-name.awk

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
BEGIN{ print "static const char* const arphrd_names[] = { "}
1+
BEGIN{
2+
print "static const char* const arphrd_names[] = { "
3+
}
24
!/CISCO/ {
3-
printf " [ARPHRD_%s] = \"%s\",\n", $1, $1
5+
printf " [ARPHRD_%s] = \"%s\",\n", $1, $1
6+
}
7+
END{
8+
print "};"
49
}
5-
END{print "};"}

src/basic/cap-to-name.awk

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
BEGIN{ print "static const char* const capability_names[] = { "}
1+
BEGIN{
2+
print "static const char* const capability_names[] = { "
3+
}
24
{
3-
printf " [%s] = \"%s\",\n", $1, tolower($1)
5+
printf " [%s] = \"%s\",\n", $1, tolower($1)
6+
}
7+
END{
8+
print "};"
49
}
5-
END{print "};"}

src/basic/errno-to-name.awk

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
BEGIN{ print "static const char* const errno_names[] = { " }
1+
BEGIN{
2+
print "static const char* const errno_names[] = { "
3+
}
24
!/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ {
3-
printf " [%s] = \"%s\",\n", $1, $1 }
4-
END{ print "};" }
5+
printf " [%s] = \"%s\",\n", $1, $1
6+
}
7+
END{
8+
print "};"
9+
}

src/basic/generate-af-list.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh -eu
22

33
$1 -E -dM -include sys/socket.h - </dev/null | \
4-
grep -Ev 'AF_UNSPEC|AF_MAX' | \
5-
awk '/^#define[ \t]+AF_[^ \t]+[ \t]+PF_[^ \t]/ { print $2; }'
4+
grep -Ev 'AF_UNSPEC|AF_MAX' | \
5+
awk '/^#define[ \t]+AF_[^ \t]+[ \t]+PF_[^ \t]/ { print $2; }'

src/basic/generate-arphrd-list.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh -eu
22

33
$1 -dM -include net/if_arp.h - </dev/null | \
4-
awk '/^#define[ \t]+ARPHRD_[^ \t]+[ \t]+[^ \t]/ { print $2; }' | \
5-
sed -e 's/ARPHRD_//'
4+
awk '/^#define[ \t]+ARPHRD_[^ \t]+[ \t]+[^ \t]/ { print $2; }' | \
5+
sed -e 's/ARPHRD_//'

src/basic/generate-cap-list.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh -eu
22

33
$1 -dM -include linux/capability.h -include "$2" -include "$3" - </dev/null | \
4-
awk '/^#define[ \t]+CAP_[A-Z_]+[ \t]+/ { print $2; }' | \
5-
grep -v CAP_LAST_CAP
4+
awk '/^#define[ \t]+CAP_[A-Z_]+[ \t]+/ { print $2; }' | \
5+
grep -v CAP_LAST_CAP

src/basic/generate-errno-list.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh -eu
22

33
$1 -dM -include errno.h - </dev/null | \
4-
awk '/^#define[ \t]+E[^ _]+[ \t]+/ { print $2; }'
4+
awk '/^#define[ \t]+E[^ _]+[ \t]+/ { print $2; }'
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh -eu
22

33
if nm -D -u "$1" | grep ' U '; then
4-
echo "Undefined symbols detected!"
5-
exit 1
4+
echo "Undefined symbols detected!"
5+
exit 1
66
fi

0 commit comments

Comments
 (0)