OSDN Git Service

*-symbols-check: error out when using unset variables
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 6 Sep 2018 14:50:59 +0000 (15:50 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 4 Oct 2018 13:39:27 +0000 (14:39 +0100)
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>
amdgpu/amdgpu-symbol-check
etnaviv/etnaviv-symbol-check
exynos/exynos-symbol-check
freedreno/freedreno-symbol-check
intel/intel-symbol-check
libkms/kms-symbol-check
nouveau/nouveau-symbol-check
omap/omap-symbol-check
radeon/radeon-symbol-check
tegra/tegra-symbol-check

index 58646e8..6f5e0f9 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/bash
 
+set -u
+
 # 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
 
index bc50961..1891068 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/bash
 
+set -u
+
 # 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
 
index e9f1b04..49d611e 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/bash
 
+set -u
+
 # 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
 
index e732c99..6da9d66 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/bash
 
+set -u
+
 # 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
 
index 4d30a4b..de377be 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/bash
 
+set -u
+
 # 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
 
index a5c2120..30f444f 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/bash
 
+set -u
+
 # 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
 
index b3a2410..6296244 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/bash
 
+set -u
+
 # 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
 
index 0fb4a0f..16da3c4 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/bash
 
+set -u
+
 # 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
 
index 7d79d90..da605bb 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/bash
 
+set -u
+
 # 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
 
index 509b678..8539b95 100755 (executable)
@@ -1,5 +1,7 @@
 #!/bin/bash
 
+set -u
+
 # 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