From 60698d2130ee658247da51a52e9909c7cca2f269 Mon Sep 17 00:00:00 2001 From: Landon Curt Noll Date: Thu, 21 Dec 2023 05:44:19 -0800 Subject: [PATCH] fix Makefile for legacy shell The top level Makefile needs to use multiple []'s between ||'s to not cause problems for legacy shells such as the Bourne shell. For example: ```make -${Q} if [ -z "${MANDIR}" ] || [ ! -s calc.1 ]; then \ ... -${Q} if [ -z "${CATDIR}" ] || [ ! -s calc.cat1 ]; then \ ``` --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e0417d5..9ced817 100644 --- a/Makefile +++ b/Makefile @@ -3774,7 +3774,7 @@ install: ${LIB_H_SRC} ${BUILD_H_SRC} calc.1 all custom/Makefile echo "removed old ${T}${CALC_INCDIR}/string.h"; \ fi; \ done - -${Q} if [ -z "${MANDIR}" || ! -s calc.1 ]; then \ + -${Q} if [ -z "${MANDIR}" ] || [ ! -s calc.1 ]; then \ ${TRUE}; \ else \ if ${CMP} -s calc.1 ${T}${MANDIR}/calc.${MANEXT}; then \ @@ -3788,7 +3788,7 @@ install: ${LIB_H_SRC} ${BUILD_H_SRC} calc.1 all custom/Makefile echo "installed ${T}${MANDIR}/calc.${MANEXT}"; \ fi; \ fi - -${Q} if [ -z "${CATDIR}" || ! -s calc.cat1 ]; then \ + -${Q} if [ -z "${CATDIR}" ] || [ ! -s calc.cat1 ]; then \ ${TRUE}; \ else \ if ${CMP} -s calc.cat1 ${T}${CATDIR}/calc.${MANEXT}; then \