diff options
author | Micael Karlberg <[email protected]> | 2011-02-23 09:51:29 +0100 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2011-02-23 09:51:29 +0100 |
commit | 1ffc9f43fe3e80428389636a2e9ba5bf101338f2 (patch) | |
tree | 00405ebec3aa55250028253258a301c31fb71ee9 /lib | |
parent | 9b824d59d33094b013058090729c1c4b98200716 (diff) | |
download | otp-1ffc9f43fe3e80428389636a2e9ba5bf101338f2.tar.gz otp-1ffc9f43fe3e80428389636a2e9ba5bf101338f2.tar.bz2 otp-1ffc9f43fe3e80428389636a2e9ba5bf101338f2.zip |
Fixed MIB file name making...
Diffstat (limited to 'lib')
-rw-r--r-- | lib/snmp/src/compile/snmpc.src | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/snmp/src/compile/snmpc.src b/lib/snmp/src/compile/snmpc.src index 61d7a0b04f..f4336a3264 100644 --- a/lib/snmp/src/compile/snmpc.src +++ b/lib/snmp/src/compile/snmpc.src @@ -67,8 +67,7 @@ compile(State) -> File = mk_file(State), Options = mk_options(State), case snmpc:compile(File, Options) of - {ok, BinFileName} -> - io:format("BinFileName: ~p~n", [BinFileName]), + {ok, _BinFileName} -> ok; {error, Reason} -> io:format("Reason: ~p~n", [Reason]), @@ -76,7 +75,9 @@ compile(State) -> end. mk_file(#state{mib_file = MIB}) -> - MIB -- ".mib". + DirName = filename:dirname(MIB), + BaseName = filename:basename(MIB, ".mib"), + filename:join(DirName, BaseName). mk_options(#state{outdir = OutDir, db = DB, |