changeset 14:d9dfeeaff7e8 V2.1.4

Added BSD support to build script, updated NaCl URL to new version, added version file
author Ivo Smits <Ivo@UCIS.nl>
date Sat, 08 Jan 2011 03:52:25 +0100
parents f7e0145d8e2a
children 1fa5b5fa49e1
files build.sh version
diffstat 2 files changed, 9 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/build.sh	Sat Jan 08 02:25:17 2011 +0100
+++ b/build.sh	Sat Jan 08 03:52:25 2011 +0100
@@ -1,12 +1,15 @@
 #!/bin/sh
 
-tar=tar
-
-if [ `uname -s` == "SunOS" ]; then
+if [ `uname -s` == "OpenBSD" -o `uname -s` == "FreeBSD" ]; then
+	echo "Detected *BSD"
+	tar="gtar"
+elif [ `uname -s` == "SunOS" ]; then
 	echo "Detected SunOS"
-	tar=gtar
+	tar="gtar"
 	CFLAGS="$CFLAGS -DSOLARIS -m64"
 	LDFLAGS="$LDFLAGS -lnsl -lsocket"
+else
+	tar="tar"
 fi
 
 echo Cleaning up...
@@ -23,7 +26,7 @@
 	echo building...
 	mkdir tmp/nacl
 	cd tmp/nacl
-	wget -q -O- http://hyperelliptic.org/nacl/nacl-20090405.tar.bz2 | bunzip2 | tar -xf - --strip-components 1
+	wget -q -O- http://hyperelliptic.org/nacl/nacl-20090405.tar.bz2 | bunzip2 | $tar -xf - --strip-components 1
 	./do
 	cd ../../
 	cp tmp/nacl/build/*/lib/*/libnacl.a lib/
--- a/version	Sat Jan 08 02:25:17 2011 +0100
+++ b/version	Sat Jan 08 03:52:25 2011 +0100
@@ -1,1 +1,1 @@
-2.1.3
+2.1.4