summaryrefslogtreecommitdiffstats
path: root/make_capabilities_h.sh
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-11-28 14:58:01 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-11-30 09:53:36 +0100
commit13590ca98ac2fd4939b683adbfdd63392b559f3f (patch)
tree37a267d3ac4ca067fea1d2a1789c1a055ed7b707 /make_capabilities_h.sh
parent890ac34c460fbb753bd4303b201d11aebd27a570 (diff)
downloadunitd-13590ca98ac2fd4939b683adbfdd63392b559f3f.tar
unitd-13590ca98ac2fd4939b683adbfdd63392b559f3f.zip
Strip down procd to the necessary code, update copyright
Diffstat (limited to 'make_capabilities_h.sh')
-rwxr-xr-xmake_capabilities_h.sh10
1 files changed, 0 insertions, 10 deletions
diff --git a/make_capabilities_h.sh b/make_capabilities_h.sh
deleted file mode 100755
index 635e740..0000000
--- a/make_capabilities_h.sh
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-CC=$1
-[ -n "$TARGET_CC_NOCACHE" ] && CC=$TARGET_CC_NOCACHE
-
-echo "#include <linux/capability.h>"
-echo "static const char *capabilities_names[] = {"
-echo "#include <linux/capability.h>" | ${CC} -E -dM - | grep '#define CAP' | grep -vE '(CAP_TO|CAP_LAST_CAP)' | \
- awk '{print $3" "$2}' | sort -n | awk '{print " ["$1"]\t= \""tolower($2)"\","}'
-echo "};"