From 0316b9df23d2ea30d571b7f9019c1f7cae245c22 Mon Sep 17 00:00:00 2001
From: Oliver Bock <oliver.bock@aei.mpg.de>
Date: Thu, 7 Aug 2008 01:25:40 +0200
Subject: [PATCH] Some more minor fixes

---
 build.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/build.sh b/build.sh
index baf5a93..51f2156 100755
--- a/build.sh
+++ b/build.sh
@@ -416,7 +416,7 @@ build_starsphere()
 	export ORC_INSTALL=$ROOT/install || failure
 	cd $ROOT/build/orc || failure
 	cp $ROOT/src/orc/Makefile . >> $LOGFILE 2>&1 || failure
-	make $1 >> $LOGFILE 2>&1 || failure
+	make $2 >> $LOGFILE 2>&1 || failure
 	make install >> $LOGFILE 2>&1 || failure
 	echo "Successfully built and installed Starsphere [ORC]!" | tee -a $LOGFILE
 
@@ -436,7 +436,7 @@ build_starsphere()
 	else
 		cp -f $ROOT/src/framework/Makefile . >> $LOGFILE 2>&1 || failure
 	fi
-	make $1 >> $LOGFILE 2>&1 || failure
+	make $2 >> $LOGFILE 2>&1 || failure
 	make install >> $LOGFILE 2>&1 || failure
 	echo "Successfully built and installed Starsphere [Framework]!" | tee -a $LOGFILE
 
@@ -483,7 +483,7 @@ build_win32()
 	prepare_win32 || failure
 	build_mingw || failure
 	build_generic_win32 || failure
-	build_starsphere $TARGET_WIN32
+	build_starsphere $TARGET_WIN32 || failure
 
 	return 0
 }
@@ -590,7 +590,7 @@ case "$1" in
 	"--starsphere")
 		# "hidden" bonus option :-)
 		TARGET=$TARGET_LINUX
-		build_starsphere "" "debug" || failure
+		build_starsphere $TARGET "debug" || failure
 		exit 0
 		;;
 	*)
-- 
GitLab