Ver código fonte

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

master
SisMaker 4 anos atrás
pai
commit
6f98c07953
1 arquivos alterados com 12 adições e 2 exclusões
  1. +12
    -2
      src/genProto.erl

+ 12
- 2
src/genProto.erl Ver arquivo

@ -2,6 +2,10 @@
-include("genDef.hrl").
-define(DefProtoDir, "./").
-define(DefErlDir, "./").
-define(DefHrlDir, "./").
-export([main/1]).
-export([
@ -13,8 +17,14 @@
]).
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) ->
erlang:erase(),

Carregando…
Cancelar
Salvar