summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-12-21 02:52:49 -0500
committermidipix <writeonce@midipix.org>2018-12-21 02:52:49 -0500
commite389092e103e3a31c897b4a1f11591720b7449a7 (patch)
treebd1564d7ab1e84e723a3485789ac083ee034db78
parentda0b04e124ecd66b089e765425a2b671feb0fd0e (diff)
downloadsbpython3-e389092e103e3a31c897b4a1f11591720b7449a7.tar.bz2
sbpython3-e389092e103e3a31c897b4a1f11591720b7449a7.tar.xz
build system: cfgtest.sh: property test for a variable being empty.
-rw-r--r--sofort/cfgtest.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/sofort/cfgtest.sh b/sofort/cfgtest.sh
index b4e5686..caa000a 100644
--- a/sofort/cfgtest.sh
+++ b/sofort/cfgtest.sh
@@ -114,7 +114,7 @@ cfgtest_header_presence()
| sed -e 's/\./_/g' -e 's@/@_@g' \
| tr "[:lower:]" "[:upper:]")
- if [ -z $cfgtest_internal_unit_test ]; then
+ if [ -z ${cfgtest_internal_unit_test:-} ]; then
cfgtest_cflags_append "$mb_internal_str"
else
cfgtest_makevar_append "$mb_internal_str"
@@ -135,7 +135,7 @@ cfgtest_header_absence()
| sed -e 's/\./_/g' -e 's@/@_@g' \
| tr "[:lower:]" "[:upper:]")
- if [ -z $cfgtest_internal_unit_test ]; then
+ if [ -z ${cfgtest_internal_unit_test:-} ]; then
cfgtest_cflags_append "$mb_internal_str"
else
cfgtest_makevar_append "$mb_internal_str"
@@ -162,7 +162,7 @@ cfgtest_interface_presence()
| sed -e 's/\./_/g' \
| tr "[:lower:]" "[:upper:]")
- if [ -z $cfgtest_internal_unit_test ]; then
+ if [ -z ${cfgtest_internal_unit_test:-} ]; then
cfgtest_cflags_append "$mb_internal_str"
else
cfgtest_makevar_append "$mb_internal_str"
@@ -198,7 +198,7 @@ cfgtest_decl_presence()
| sed -e 's/\./_/g' \
| tr "[:lower:]" "[:upper:]")
- if [ -z $cfgtest_internal_unit_test ]; then
+ if [ -z ${cfgtest_internal_unit_test:-} ]; then
cfgtest_cflags_append "$mb_internal_str"
else
cfgtest_makevar_append "$mb_internal_str"