summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2020-02-18 22:14:24 +0100
committerHans Ulrich Niedermann <hun@n-dimensional.de>2020-02-18 22:52:33 +0100
commit89835ae8c096312190dfe70c707907683eda8cc0 (patch)
tree86a7ab33abb445ace7af31b009aa0b338e347ab3
parent4d9e5e8721981532234413058b57c39c6a089d89 (diff)
downloadlibgphoto2-89835ae8c096312190dfe70c707907683eda8cc0.tar.gz
gp-set.m4: Reduce indentation level by repeated conditional aborts
-rw-r--r--gphoto-m4/gp-set.m416
1 files changed, 8 insertions, 8 deletions
diff --git a/gphoto-m4/gp-set.m4 b/gphoto-m4/gp-set.m4
index 717c2364d..6b2764ac4 100644
--- a/gphoto-m4/gp-set.m4
+++ b/gphoto-m4/gp-set.m4
@@ -341,17 +341,17 @@ x
GP_EOF
AC_MSG_CHECKING([whether comm -23 works])
AS_IF([${COMM} -23 confset_a.txt confset_b.txt > confset_diff_23.txt], [dnl
- AS_IF([${CMP} confset_diff_23.txt confset_res_23.txt > /dev/null 2>&1], [dnl
- AC_MSG_RESULT([yes])
- rm -f confset_a.txt confset_b.txt confset_diff_23.txt confset_res_23.txt
- ], [dnl
- AC_MSG_RESULT([no (wrong result)])
- AC_MSG_ERROR([comm -23 must work for GP_SET difference calculations])
- ])
], [dnl
AC_MSG_RESULT([no (does not run)])
- AC_MSG_ERROR([comm -23 must work for GP_SET difference calculations])
+ AC_MSG_ERROR([comm -23 must work for GP_SET_* difference calculations])
])
+AS_IF([${CMP} confset_diff_23.txt confset_res_23.txt > /dev/null 2>&1], [dnl
+], [dnl
+ AC_MSG_RESULT([no (wrong result)])
+ AC_MSG_ERROR([comm -23 must work for GP_SET_* difference calculations])
+])
+AC_MSG_RESULT([yes])
+rm -f confset_a.txt confset_b.txt confset_diff_23.txt confset_res_23.txt
dnl This functions uses the shell builtin 'shift', so it needs to store
dnl the original $1 and $2 in local variables.
gp_set_shfn_difference ()