summaryrefslogtreecommitdiff
path: root/distcheck.sh
diff options
context:
space:
mode:
authorAndrew G. Morgan <morgan@kernel.org>2020-06-02 20:56:01 -0700
committerAndrew G. Morgan <morgan@kernel.org>2020-06-02 20:56:01 -0700
commit6b39555644193278c8b6ea5ed99044f49f7fedc4 (patch)
treecd177e7cde5dc9ad84d87e9fb9fb56a0d2821d3c /distcheck.sh
parent4ad9da8f2197f1a04a6256432f51eb3c8e195e66 (diff)
downloadlibcap2-6b39555644193278c8b6ea5ed99044f49f7fedc4.tar.gz
Linux 5.7 supports CAP_PERFMON
I should have checked before releasing 2.35. Sigh. Won't make that mistake again. Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
Diffstat (limited to 'distcheck.sh')
-rwxr-xr-xdistcheck.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/distcheck.sh b/distcheck.sh
new file mode 100755
index 0000000..3360e31
--- /dev/null
+++ b/distcheck.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+actual=$(wget -o/dev/null -O/dev/stdout https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/plain/include/uapi/linux/capability.h | grep "#define.CAP_LAST_CAP"|awk '{print $3}')
+working=$(grep "#define.CAP_LAST_CAP" libcap/include/uapi/linux/capability.h|awk '{print $3}')
+
+if [[ ${actual} = ${working} ]]; then
+ echo "up to date with officially named caps"
+ exit 0
+fi
+
+echo "want: ${actual}"
+echo "have: ${working}"
+exit 1