]> granicus.if.org Git - ejabberd/commitdiff
Add correct package version for mix (#577)
authorChristophe Romain <christophe.romain@process-one.net>
Fri, 29 May 2015 07:30:16 +0000 (09:30 +0200)
committerChristophe Romain <christophe.romain@process-one.net>
Fri, 29 May 2015 07:30:16 +0000 (09:30 +0200)
.gitignore
configure.ac
mix.exs.in [moved from mix.exs with 97% similarity]

index 21f8cfadaa35772610c3e2d083461b2b83491e28..d44a41f3f5a9d9cd6c89c9354c77300f6461fb46 100644 (file)
@@ -41,3 +41,4 @@ XmppAddr.hrl
 /test/*.beam
 /logs/
 /priv/sql
+mix.exs
index a3e26384bf22035822e49f859b7cac17c675193b..6ae0a2455b1cfb121619a75173d7116dedc387da 100644 (file)
@@ -235,7 +235,8 @@ esac],[if test "x$lager" = "x"; then lager=true; fi])
 
 AC_CONFIG_FILES([Makefile
                 vars.config
-                src/ejabberd.app.src])
+                src/ejabberd.app.src
+                mix.exs])
 
 ENABLEUSER=""
 AC_ARG_ENABLE(user,
similarity index 97%
rename from mix.exs
rename to mix.exs.in
index c5236473733a1d55ab858b3fff0c424a56a69aab..d7b236e01772ede05d8565917c128ac1ae7bd753 100644 (file)
--- a/mix.exs
@@ -3,7 +3,7 @@ defmodule Ejabberd.Mixfile do
 
   def project do
     [app: :ejabberd,
-     version: "15.03.0",
+     version: "@PACKAGE_VERSION@",
      elixir: "~> 1.0",
      elixirc_paths: ["lib"],
      compile_path: ".",
@@ -65,7 +65,7 @@ defmodule Mix.Tasks.Compile.Asn1 do
         options = options ++ [:noobj, outdir: Erlang.to_erl_file(Path.dirname(output))]
         case :asn1ct.compile(Erlang.to_erl_file(input), options) do
           :ok -> {:ok, :done}
-          error -> error       
+          error -> error
         end
     end)
   end