build: Don't cd when running the binary

Relative paths should keep working now.
This commit is contained in:
Bryan Schumaker 2011-11-08 08:21:56 -05:00
parent 66f70249ad
commit db70dd8fe6
1 changed files with 1 additions and 3 deletions

View File

@ -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)])