diff options
author | Kenneth Heafield <github@kheafield.com> | 2012-04-02 23:20:56 +0400 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2012-04-02 23:20:56 +0400 |
commit | d3a8d281a9489fb1433483f3e2d5c5465d591fe5 (patch) | |
tree | 4365985a92e64d2e67776b6fa71df8ea6cae3d51 /Jamroot | |
parent | c5095706c12fd7d0ee302f292c9585961dd4a6a3 (diff) |
Fix previous.sh for people who don't have bjam installed
Diffstat (limited to 'Jamroot')
-rw-r--r-- | Jamroot | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -229,6 +229,12 @@ if ! [ path.exists $(BUILD-LOG) ] { SHELL "touch $(BUILD-LOG) && chmod +x $(BUILD-LOG)" ; } local script = [ modules.peek : ARGV ] ; -script = $(script:J=" ") ; +if $(script[1]) = "./jam-files/bjam" { + #The ./bjam shell script calls ./jam-files/bjam so that appears in argv but + #we want ./bjam to appear so the environment variables are set correctly. + script = "./bjam "$(script[2-]:J=" ") ; +} else { + script = $(script:J=" ") ; +} script = "#!/bin/sh\n$(script)\n" ; local ignored = @($(BUILD-LOG):E=$(script)) ; |