comparison build.sh @ 17:d621348448de

Fixing linuxisms
author Dereckson <dereckson@espace-win.org>
date Tue, 15 Feb 2011 02:10:30 +0100
parents d9dfeeaff7e8
children c9fba5007577
comparison
equal deleted inserted replaced
15:1fa5b5fa49e1 17:d621348448de
1 #!/bin/sh 1 #!/bin/sh
2 2
3 if [ `uname -s` == "OpenBSD" -o `uname -s` == "FreeBSD" ]; then 3 if [ "$(uname -s)" = "OpenBSD" -o "$(uname -s)" = "FreeBSD" ]; then
4 echo "Detected *BSD" 4 echo "Detected *BSD"
5 tar="gtar" 5 tar="gtar"
6 elif [ `uname -s` == "SunOS" ]; then 6 elif [ "$(uname -s)" = "SunOS" ]; then
7 echo "Detected SunOS" 7 echo "Detected SunOS"
8 tar="gtar" 8 tar="gtar"
9 CFLAGS="$CFLAGS -DSOLARIS -m64" 9 CFLAGS="$CFLAGS -DSOLARIS -m64"
10 LDFLAGS="$LDFLAGS -lnsl -lsocket" 10 LDFLAGS="$LDFLAGS -lnsl -lsocket"
11 else 11 else