Browse Source

Merge branch 'master' of http://47.108.26.175:53000/SisMaker/genProto into master

master
SisMaker 4 years ago
parent
commit
6f98c07953
1 changed files with 12 additions and 2 deletions
  1. +12
    -2
      src/genProto.erl

+ 12
- 2
src/genProto.erl View File

@ -2,6 +2,10 @@
-include("genDef.hrl"). -include("genDef.hrl").
-define(DefProtoDir, "./").
-define(DefErlDir, "./").
-define(DefHrlDir, "./").
-export([main/1]). -export([main/1]).
-export([ -export([
@ -13,8 +17,14 @@
]). ]).
main(Args) -> main(Args) ->
[ProtoDir, HrlDir, ErlDir] = Args,
convertDir(ProtoDir, HrlDir, ErlDir).
case Args of
[] ->
convertDir(?DefProtoDir, ?DefErlDir, ?DefHrlDir);
_ ->
[ProtoDir, HrlDir, ErlDir] = Args,
convertDir(ProtoDir, HrlDir, ErlDir)
end.
convertFile(File) -> convertFile(File) ->
erlang:erase(), erlang:erase(),

Loading…
Cancel
Save