d6a42722a44c7ed4a5cd61eaee15b365fceaf8d4
[mesa.git] / src / egl / egl-entrypoint-check
1 #!/usr/bin/env bash
2 set -e
3
4 if [ -z "$srcdir" ]
5 then
6 srcdir=$(dirname "$0")
7 fi
8
9 entrypoints=$(grep EGL_ENTRYPOINT "$srcdir"/main/eglentrypoint.h)
10 sorted=$(LC_ALL=C sort <<< "$entrypoints")
11 test "$entrypoints" = "$sorted"