X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/7da963e5f936a329b63c308e4031b59390f42a92..218484d4b3d515aa757006cab2548dd12d79840e:/projects/sgconf_xml/build diff --git a/projects/sgconf_xml/build b/projects/sgconf_xml/build index 3e019e7c..34cd804f 100755 --- a/projects/sgconf_xml/build +++ b/projects/sgconf_xml/build @@ -7,7 +7,8 @@ OS=unknown sys=`uname -s` -release=`uname -r | cut -b1` +release=`uname -r` +major=`printf "%s" "$release" | cut -d. -f1` BUILD_DIR=`pwd` CONFFILE="../../Makefile.conf" PREFIX="/" @@ -35,13 +36,12 @@ LDFLAGS="$LDFLAGS -L/usr/local/lib" if [ "$sys" = "Linux" ] then OS=linux - release="" MAKE="make" fi if [ "$sys" = "FreeBSD" ] then - case $release in + case $major in 4) OS=bsd;; 5) OS=bsd5;; 6) OS=bsd5;; @@ -51,6 +51,12 @@ then MAKE="gmake" fi +if [ "$sys" = "Darwin" ] +then + OS=darwin + MAKE="gmake" +fi + if [ "$OS" = "unknown" ] then printf "#############################################################################\n"