aboutsummaryrefslogtreecommitdiffstats
path: root/src/egl/egl-entrypoint-check
blob: 36ee5c615306708d27849c30733b87311c51a458 (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=$(sort <<< "$entrypoints")
test "$entrypoints" = "$sorted"