aboutsummaryrefslogtreecommitdiffstats
path: root/src/egl/egl-entrypoint-check
blob: d6a42722a44c7ed4a5cd61eaee15b365fceaf8d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env bash
set -e

if [ -z "$srcdir" ]
then
  srcdir=$(dirname "$0")
fi

entrypoints=$(grep EGL_ENTRYPOINT "$srcdir"/main/eglentrypoint.h)
sorted=$(LC_ALL=C sort <<< "$entrypoints")
test "$entrypoints" = "$sorted"