diff options
author | Tim Watson <watson.timothy@gmail.com> | 2011-01-26 02:15:27 +0000 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2011-01-29 16:16:37 +0100 |
commit | 7ac3a5aa9b03e8e1a1c5b3d8fcdfeedd6819c074 (patch) | |
tree | 49ec26f9fa9c0e84e708c301cdca0e1677a55c8f | |
parent | b894682ba92baa0f258908cf5dacb5ec0cd14635 (diff) |
Move BUILD_TIME and VCS_INFO macros
I have moved these macros from rebar_core.erl to rebar.erl
in order to prevent eunit tests from failing (which they
currently are).
-rw-r--r-- | src/rebar.erl | 8 | ||||
-rw-r--r-- | src/rebar_core.erl | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/rebar.erl b/src/rebar.erl index e84fb44..554278e 100644 --- a/src/rebar.erl +++ b/src/rebar.erl @@ -33,6 +33,14 @@ -include("rebar.hrl"). +-ifndef(BUILD_TIME). +-define(BUILD_TIME, "undefined"). +-endif. + +-ifndef(VCS_INFO). +-define(VCS_INFO, "undefined"). +-endif. + %% ==================================================================== %% Public API %% ==================================================================== diff --git a/src/rebar_core.erl b/src/rebar_core.erl index 1c3940f..954e6b8 100644 --- a/src/rebar_core.erl +++ b/src/rebar_core.erl @@ -34,14 +34,6 @@ -include("rebar.hrl"). --ifndef(BUILD_TIME). --define(BUILD_TIME, "undefined"). --endif. - --ifndef(VCS_INFO). --define(VCS_INFO, "undefined"). --endif. - %% =================================================================== %% Public API %% =================================================================== |