X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/08cb43a82f259df8fc82abbfbfbbde1e28bdbcc2..4afaecdd25eb53949f523e5d4891d5dbbfadb63d:/projects/sgconv/build diff --git a/projects/sgconv/build b/projects/sgconv/build index 5ceb4013..e8ad9200 100755 --- a/projects/sgconv/build +++ b/projects/sgconv/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="/" @@ -36,13 +37,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;; @@ -62,7 +62,7 @@ fi if [ "$OS" = "unknown" ] then printf "#############################################################################\n" - printf "# Sorry, but sgconv currently supported by Linux, FreeBSD 4.x, 5.x, 6.x #\n" + printf "# Sorry, but sgconv is currently supported by Linux, FreeBSD and Darwin. #\n" printf "#############################################################################\n" exit 1 fi