From d25dea0c688cc05f08b4ae32545e9a3bd5b33be0 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Tue, 21 Feb 2017 23:56:51 +0000 Subject: egl: make sure entrypoints list is always sorted Starting with the next commit, badly sorting this list will break the eglGetProcAddress(). Signed-off-by: Eric Engestrom Reviewed-by: Emil Velikov --- src/egl/egl-entrypoint-check | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 src/egl/egl-entrypoint-check (limited to 'src/egl/egl-entrypoint-check') 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" -- cgit v1.2.3