2003-01-28 20:45:13 +01:00
|
|
|
%%%----------------------------------------------------------------------
|
|
|
|
%%% File : configure.erl
|
|
|
|
%%% Author : Alexey Shchepin <alexey@sevcom.net>
|
|
|
|
%%% Purpose :
|
|
|
|
%%% Created : 27 Jan 2003 by Alexey Shchepin <alexey@sevcom.net>
|
|
|
|
%%% Id : $Id$
|
|
|
|
%%%----------------------------------------------------------------------
|
|
|
|
|
|
|
|
-module(configure).
|
|
|
|
-author('alexey@sevcom.net').
|
|
|
|
-vsn('$Revision$ ').
|
|
|
|
|
|
|
|
-export([start/0]).
|
|
|
|
|
2004-04-15 21:55:38 +02:00
|
|
|
-include("ejabberd.hrl").
|
|
|
|
|
2003-01-28 20:45:13 +01:00
|
|
|
start() ->
|
|
|
|
EIDirS = "EI_DIR = " ++ code:lib_dir("erl_interface") ++ "\n",
|
2003-07-13 11:00:01 +02:00
|
|
|
RootDirS = "ERLANG_DIR = " ++ code:root_dir() ++ "\n",
|
2004-04-15 21:55:38 +02:00
|
|
|
Version = "EJABBERD_VERSION = " ++ ?VERSION ++ "\n",
|
|
|
|
file:write_file("Makefile.inc",
|
|
|
|
list_to_binary(EIDirS ++ RootDirS ++ Version)),
|
2003-01-28 20:45:13 +01:00
|
|
|
halt().
|
|
|
|
|
|
|
|
|