*-symbols-check: error out when using unset variables

It will make bugs like the one fixed with previous patch dead obvious.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
main
Emil Velikov 2018-09-06 15:50:59 +01:00 committed by Emil Velikov
parent 660643e498
commit 99c3540dd4
10 changed files with 20 additions and 0 deletions

View File

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
set -u
# The following symbols (past the first five) are taken from the public headers. # The following symbols (past the first five) are taken from the public headers.
# A list of the latter should be available Makefile.am/libdrm_amdgpuinclude_HEADERS # A list of the latter should be available Makefile.am/libdrm_amdgpuinclude_HEADERS

View File

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
set -u
# The following symbols (past the first five) are taken from the public headers. # The following symbols (past the first five) are taken from the public headers.
# A list of the latter should be available Makefile.sources/LIBDRM_ETNAVIV_H_FILES # A list of the latter should be available Makefile.sources/LIBDRM_ETNAVIV_H_FILES

View File

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
set -u
# The following symbols (past the first five) are taken from the public headers. # The following symbols (past the first five) are taken from the public headers.
# A list of the latter should be available Makefile.am/libdrm_exynos*_HEADERS # A list of the latter should be available Makefile.am/libdrm_exynos*_HEADERS

View File

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
set -u
# The following symbols (past the first five) are taken from the public headers. # The following symbols (past the first five) are taken from the public headers.
# A list of the latter should be available Makefile.sources/LIBDRM_FREEDRENO_H_FILES # A list of the latter should be available Makefile.sources/LIBDRM_FREEDRENO_H_FILES

View File

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
set -u
# The following symbols (past the first five) are taken from the public headers. # The following symbols (past the first five) are taken from the public headers.
# A list of the latter should be available Makefile.sources/LIBDRM_INTEL_H_FILES # A list of the latter should be available Makefile.sources/LIBDRM_INTEL_H_FILES

View File

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
set -u
# The following symbols (past the first five) are taken from the public headers. # The following symbols (past the first five) are taken from the public headers.
# A list of the latter should be available Makefile.sources/LIBKMS_H_FILES # A list of the latter should be available Makefile.sources/LIBKMS_H_FILES

View File

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
set -u
# The following symbols (past the first five) are taken from the public headers. # The following symbols (past the first five) are taken from the public headers.
# A list of the latter should be available Makefile.sources/LIBDRM_NOUVEAU_H_FILES # A list of the latter should be available Makefile.sources/LIBDRM_NOUVEAU_H_FILES

View File

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
set -u
# The following symbols (past the first five) are taken from the public headers. # The following symbols (past the first five) are taken from the public headers.
# A list of the latter should be available Makefile.am/libdrm_omap*HEADERS # A list of the latter should be available Makefile.am/libdrm_omap*HEADERS

View File

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
set -u
# The following symbols (past the first five) are taken from the public headers. # The following symbols (past the first five) are taken from the public headers.
# A list of the latter should be available Makefile.sources/LIBDRM_RADEON_H_FILES # A list of the latter should be available Makefile.sources/LIBDRM_RADEON_H_FILES

View File

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
set -u
# The following symbols (past the first nine) are taken from tegra.h. # The following symbols (past the first nine) are taken from tegra.h.
FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_tegra.so} | awk '{print $3}'| while read func; do FUNCS=$($NM -D --format=bsd --defined-only ${1-.libs/libdrm_tegra.so} | awk '{print $3}'| while read func; do