summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorDave Smith <dizzyd@dizzyd.com>2010-10-07 19:02:37 -0600
committerDave Smith <dizzyd@dizzyd.com>2010-10-07 19:02:37 -0600
commit465af3626629ea7715cfb272a26bd70c340f4164 (patch)
treebb55e5d3979119831ddf8e2691cbec2d4a0c4c55 /bootstrap
parentf2244b26be11726c3324386946e9bd204c4ef1cc (diff)
downloadrebar-465af3626629ea7715cfb272a26bd70c340f4164.tar.gz
Add debug flag to make it easier to get a debug version of rebar
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap9
1 files changed, 9 insertions, 0 deletions
diff --git a/bootstrap b/bootstrap
index e7f32ca..5be3183 100755
--- a/bootstrap
+++ b/bootstrap
@@ -18,8 +18,17 @@ main(Args) ->
rm("ebin/rebar_core.beam")
end,
+ %% Add check for debug flag
+ case lists:member("debug", Args) of
+ true ->
+ DebugFlag = debug_info;
+ false ->
+ DebugFlag = undefined
+ end,
+
%% Compile all src/*.erl to ebin
case make:files(filelib:wildcard("src/*.erl"), [{outdir, "ebin"}, {i, "include"},
+ DebugFlag,
{d, 'BUILD_TIME', Built},
{d, 'VCS_INFO', VcsInfo}]) of
up_to_date ->