From fcfbe187fdf23aefca196c7c4e0771cf63e00cee Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Thu, 18 Mar 2021 13:34:58 +0100 Subject: [PATCH] build and install findutils and getopt on macOS/Darwin only --- build | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/build b/build index c1f2f57..5f0b667 100755 --- a/build +++ b/build @@ -340,18 +340,20 @@ pmodules::compile() { # build coreutils #fi - if [[ ! -f "${PMODULES_HOME}/${UTILBIN_DIR}/getopt" ]] || [[ ${opt_force} == 'yes' ]]; then - build getopt + if [[ "${OS}" == 'Darwin' ]]; then + if [[ ! -f "${PMODULES_HOME}/${UTILBIN_DIR}/getopt" ]] || [[ ${opt_force} == 'yes' ]]; then + build getopt + fi + + if [[ ! -f "${PMODULES_HOME}/${UTILBIN_DIR}/find" ]] || [[ ${opt_force} == 'yes' ]]; then + build findutils + fi fi if [[ ! -f "${PMODULES_HOME}/${UTILBIN_DIR}/bash" ]] || [[ ${opt_force} == 'yes' ]]; then build bash fi - if [[ ! -f "${PMODULES_HOME}/${UTILBIN_DIR}/find" ]] || [[ ${opt_force} == 'yes' ]]; then - build findutils - fi - if [[ ! -e "${PMODULES_HOME}/${UTILBIN_DIR}/tclsh" ]] || [[ ${opt_force} == 'yes' ]]; then build Tcl fi