diff --git a/freehlded-bootstrap.sh b/freehlded-bootstrap.sh index a1ffc3f..b4c309c 100755 --- a/freehlded-bootstrap.sh +++ b/freehlded-bootstrap.sh @@ -82,25 +82,25 @@ check_pak() # dependencies: rewise if [ ! -f ./rewise ] then - # is this GNU? - if [ "$MAKEVER" = "GNU" ] + # detect if we have gmake, and the right version too. + if [ -x "$(command -v gmake)" ] then - MAKETOOL="make" - else - # guess not, do we have gmake? - if [ -x "$(command -v gmake)" ] + MAKEVER=$(gmake --version | awk '{ print $1 }' | head -n 1) + + if [ "$MAKEVER" = "GNU" ] then - MAKEVER=$(gmake --version | awk '{ print $1 }' | head -n 1) - if [ "$MAKEVER" = "GNU" ] - then - MAKETOOL="gmake" - else - echo "Please install GNU Make." - exit 2 - fi + MAKETOOL="gmake" + else + echo "Please install GNU Make." + exit 2 fi fi + if [ -z "$MAKETOOL" ] + then + MAKETOOL=make + fi + BINDIR="$(pwd)" git clone https://vcs.vera-visions.com/eukara/REWise cd REWise