diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-04-18 17:14:48 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-04-23 21:47:29 -0400 |
commit | 86b3ca7a667baef407ccfa28166638ed0e64c26c (patch) | |
tree | cc667f70f66bf60c3266edc335f7d6dc1591e90a /src/basic | |
parent | a923e085af00dfd47eafbbd6964398a10e5a4f19 (diff) | |
download | systemd-86b3ca7a667baef407ccfa28166638ed0e64c26c.tar.gz |
meson: use "sh -eu" and make .sh +x, .py -x
Shell scripts should be executable so that meson reports their
invocation succinctly (does not print 'sh' '-e').
Python scripts should not be executable so that meson does the
detection of the right python binary itself.
Add -u everywhere to catch potential errors.
Diffstat (limited to 'src/basic')
-rwxr-xr-x[-rw-r--r--] | src/basic/generate-af-list.sh | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | src/basic/generate-arphrd-list.sh | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | src/basic/generate-cap-list.sh | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | src/basic/generate-errno-list.sh | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/basic/generate-af-list.sh b/src/basic/generate-af-list.sh index 3fdfe2ea60..733cf59dd0 100644..100755 --- a/src/basic/generate-af-list.sh +++ b/src/basic/generate-af-list.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/sh -eu $1 -E -dM -include sys/socket.h - </dev/null | \ grep -Ev 'AF_UNSPEC|AF_MAX' | \ diff --git a/src/basic/generate-arphrd-list.sh b/src/basic/generate-arphrd-list.sh index 9911f315fa..3c2bc5483d 100644..100755 --- a/src/basic/generate-arphrd-list.sh +++ b/src/basic/generate-arphrd-list.sh @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/sh -eu $1 -dM -include net/if_arp.h - </dev/null | \ awk '/^#define[ \t]+ARPHRD_[^ \t]+[ \t]+[^ \t]/ { print $2; }' | \ diff --git a/src/basic/generate-cap-list.sh b/src/basic/generate-cap-list.sh index b79468cd59..3ac3544539 100644..100755 --- a/src/basic/generate-cap-list.sh +++ b/src/basic/generate-cap-list.sh @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/sh -eu $1 -dM -include linux/capability.h -include "$2" -include "$3" - </dev/null | \ awk '/^#define[ \t]+CAP_[A-Z_]+[ \t]+/ { print $2; }' | \ diff --git a/src/basic/generate-errno-list.sh b/src/basic/generate-errno-list.sh index a80990ac24..a8b4938644 100644..100755 --- a/src/basic/generate-errno-list.sh +++ b/src/basic/generate-errno-list.sh @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/sh -eu $1 -dM -include errno.h - </dev/null | \ awk '/^#define[ \t]+E[^ _]+[ \t]+/ { print $2; }' |