summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralisdair sullivan <alisdair.sullivan@askuity.com>2015-12-08 08:48:42 -0800
committeralisdair sullivan <alisdair.sullivan@askuity.com>2015-12-08 08:48:42 -0800
commit6f70b7fc881dc02e06d51ed9204c6a128f2d49e7 (patch)
treed72ce0a44d75449a6b9283c6af1d2faa67a67097 /src
parentd9ae98e4d8d4e8773d7db96e1d977ca8eff08472 (diff)
remove mib header file in `priv/mibs/include'
Diffstat (limited to 'src')
-rw-r--r--src/rebar_erlc_compiler.erl8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/rebar_erlc_compiler.erl b/src/rebar_erlc_compiler.erl
index 50e61f3..162ed07 100644
--- a/src/rebar_erlc_compiler.erl
+++ b/src/rebar_erlc_compiler.erl
@@ -521,16 +521,12 @@ target_base(OutDir, Source) ->
compile_mib(AppInfo) ->
fun(Source, Target, Opts) ->
Dir = filename:dirname(Target),
- IncludeDir = filename:join(Dir, "include"),
-
Mib = filename:rootname(Target),
HrlFilename = Mib ++ ".hrl",
- Hrl = filename:basename(HrlFilename),
AppInclude = filename:join([rebar_app_info:dir(AppInfo), "include"]),
ok = filelib:ensure_dir(Target),
- ok = filelib:ensure_dir(filename:join([IncludeDir, "dummy.hrl"])),
ok = filelib:ensure_dir(filename:join([AppInclude, "dummy.hrl"])),
AllOpts = [{outdir, Dir}
@@ -547,9 +543,7 @@ compile_mib(AppInfo) ->
#options{specific = [{verbosity, Verbosity}]}
end,
ok = snmpc:mib_to_hrl(Mib, Mib, MibToHrlOpts),
- rebar_file_utils:mv(HrlFilename, IncludeDir),
- rebar_file_utils:symlink_or_copy(filename:join([IncludeDir, Hrl]),
- filename:join([AppInclude, Hrl])),
+ rebar_file_utils:mv(HrlFilename, AppInclude),
ok;
{error, compilation_failed} ->
?FAIL