summaryrefslogtreecommitdiff
path: root/src/basic/generate-errno-list.sh
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2017-04-25 16:10:15 +0300
committerGitHub <noreply@github.com>2017-04-25 16:10:15 +0300
commitd5d5e06086734f6406b3ccc522c4951cdc18ca21 (patch)
tree55cc62ab712a9ef82600cafbc8755c589f49d71f /src/basic/generate-errno-list.sh
parentcaf222104afe2d12f3a188a6bfee3a35f2d04fc6 (diff)
parentd730e2d16452d522d3b130071847b75198f42c45 (diff)
Merge pull request #5704 from keszybz/meson
meson: build systemd using meson
Diffstat (limited to 'src/basic/generate-errno-list.sh')
-rwxr-xr-xsrc/basic/generate-errno-list.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/basic/generate-errno-list.sh b/src/basic/generate-errno-list.sh
new file mode 100755
index 0000000000..e2bab8b320
--- /dev/null
+++ b/src/basic/generate-errno-list.sh
@@ -0,0 +1,4 @@
+#!/bin/sh -eu
+
+$1 -dM -include errno.h - </dev/null | \
+ awk '/^#define[ \t]+E[^ _]+[ \t]+/ { print $2; }'