summaryrefslogtreecommitdiffstats
path: root/src/egl/egl-entrypoint-check
diff options
context:
space:
mode:
Diffstat (limited to 'src/egl/egl-entrypoint-check')
-rwxr-xr-xsrc/egl/egl-entrypoint-check5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/egl/egl-entrypoint-check b/src/egl/egl-entrypoint-check
new file mode 100755
index 00000000000..ec33d8e97f8
--- /dev/null
+++ b/src/egl/egl-entrypoint-check
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+entrypoints=$(grep EGL_ENTRYPOINT "$srcdir"/main/eglentrypoint.h)
+sorted=$(sort <<< "$entrypoints")
+test "$entrypoints" = "$sorted"