summaryrefslogtreecommitdiff
path: root/tools/test-header.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/test-header.sh')
-rwxr-xr-xtools/test-header.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/test-header.sh b/tools/test-header.sh
new file mode 100755
index 0000000000..b11285af7d
--- /dev/null
+++ b/tools/test-header.sh
@@ -0,0 +1,2 @@
+#!/bin/bash
+gcc -c -o /dev/null -I/usr/include/efi -I/usr/include/efi/x86_64 -I/usr/include/libmount $(find src -type d |sed 's|^|-I&|') -include ./config.h -include "$(realpath -- "$1")" test-header.c