From db70dd8fe627afbbb2d6d298d5a0e4ea91e8bc48 Mon Sep 17 00:00:00 2001 From: Bryan Schumaker Date: Tue, 8 Nov 2011 08:21:56 -0500 Subject: [PATCH] build: Don't cd when running the binary Relative paths should keep working now. --- Sconstruct | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Sconstruct b/Sconstruct index 05148696..36abf203 100644 --- a/Sconstruct +++ b/Sconstruct @@ -50,9 +50,7 @@ env.Command(images, "./images/", [Copy(images, "./images")]) def ocarina_sh(): f = open("ocarina.sh", "w") f.write("#!/bin/bash\n") - f.write("CWD=`pwd`\n") - f.write("cd " + PREFIX + "/lib/ocarina/ && ./ocarina.bin\n") - f.write("cd $CWD\n") + f.write(PREFIX + "/lib/ocarina/ocarina.bin \"$*\"\n") f.close() return "./ocarina.sh" env.Command(bin, ocarina_sh(), [Move(bin, "$SOURCE"), Chmod(bin, 0755)])