From b2aa4add168924bd79c186b74b263a2484e7b0f0 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sat, 15 Dec 2007 15:16:15 +0000 Subject: [PATCH] fixed build.py --- scripts/build.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/build.py b/scripts/build.py index 5ec7a0d7c..4dd413b02 100644 --- a/scripts/build.py +++ b/scripts/build.py @@ -107,10 +107,12 @@ if 1: print "*** building bam ***" os.chdir("bam") output = "bam" + bam_cmd = "./bam" if os.name == "nt": if os.system("make_win32_msvc2005.bat") != 0: bail("failed to build bam") output += ".exe" + bam_cmd = "bam" else: if os.system("sh make_unix.sh") != 0: bail("failed to build bam") @@ -121,7 +123,7 @@ if 1: if 1: print "*** building teewars ***" os.chdir(src_dir) - if os.system("./bam server_release client_release") != 0: + if os.system("%s server_release client_release" % bam_cmd) != 0: bail("failed to build teewars") os.chdir(root_dir)