Maxim Sokhatsky 10 лет назад
Родитель
Сommit
6792e5992b
3 измененных файлов с 4 добавлено и 2 удалено
  1. BIN
      mad
  2. 2 1
      src/compile/mad_port.erl
  3. 2 1
      src/mad_bundle.erl

+ 2 - 1
src/compile/mad_port.erl

@@ -11,7 +11,8 @@ compile(Dir,Config) ->
          X -> compile_port(Dir,X,Config) end.
 
 compile_port(Dir,Specs,Config) ->
-    {_,System} = os:type(),
+    {_,S} = os:type(),
+    System = atom_to_list(S),
     filelib:ensure_dir(Dir ++ "/priv/"),
     Env = [ {Var,Val} || {Sys,Var,Val} <- mad_utils:get_value(port_env, Config, []), Sys == System ],
     [ begin 

+ 2 - 1
src/mad_bundle.erl

@@ -17,4 +17,5 @@ static() -> Name = "static.gz",
 beams() ->
     [ { filename:basename(F), read_file(F) } || F <-
         lists:concat([filelib:wildcard(X)||X <- 
-        ["ebin/*","deps/*/ebin/*","apps/*/ebin/*","rels/*/files/sys.config",".applist"]])].
+        [ "ebin/*","deps/*/ebin/*","apps/*/ebin/*",
+          "rels/*/files/sys.config","sys.config",".applist"]])].