mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01:00
* src/ejabberd.app: The ejabberd version number is defined in the
OTP application resource file, in the key 'vsn' (EJAB-657) * src/ejabberd.hrl: The macro VERSION now consults the ejabberd application key vsn * src/configure.erl: Load the ejabberd application description * doc/Makefile: Read ejabberd version from ejabberd.app vsn * doc/api/Makefile: Likewise SVN Revision: 1361
This commit is contained in:
parent
fe82bf3e81
commit
5fdcb52306
10
ChangeLog
10
ChangeLog
@ -1,3 +1,13 @@
|
|||||||
|
2008-06-18 Badlop <badlop@process-one.net>
|
||||||
|
|
||||||
|
* src/ejabberd.app: The ejabberd version number is defined in the
|
||||||
|
OTP application resource file, in the key 'vsn' (EJAB-657)
|
||||||
|
* src/ejabberd.hrl: The macro VERSION now consults the ejabberd
|
||||||
|
application key vsn
|
||||||
|
* src/configure.erl: Load the ejabberd application description
|
||||||
|
* doc/Makefile: Read ejabberd version from ejabberd.app vsn
|
||||||
|
* doc/api/Makefile: Likewise
|
||||||
|
|
||||||
2008-06-18 Christophe Romain <christophe.romain@process-one.net>
|
2008-06-18 Christophe Romain <christophe.romain@process-one.net>
|
||||||
|
|
||||||
* src/mod_pubsub/mod_pubsub.erl: get_default bugfix (EJAB-656)
|
* src/mod_pubsub/mod_pubsub.erl: get_default bugfix (EJAB-656)
|
||||||
|
@ -21,7 +21,7 @@ release:
|
|||||||
@echo "Press any key to continue"
|
@echo "Press any key to continue"
|
||||||
@read foo
|
@read foo
|
||||||
@echo "% ejabberd version (automatically generated)." > version.tex
|
@echo "% ejabberd version (automatically generated)." > version.tex
|
||||||
@echo "\newcommand{\version}{"`sed '/VERSION/!d;s/\(.*\)"\(.*\)"\(.*\)/\2/' ../src/ejabberd.hrl`"}" >> version.tex
|
@echo "\newcommand{\version}{"`sed '/vsn/!d;s/\(.*\)"\(.*\)"\(.*\)/\2/' ../src/ejabberd.app`"}" >> version.tex
|
||||||
@echo -n "% Contributed modules (automatically generated)." > contributed_modules.tex
|
@echo -n "% Contributed modules (automatically generated)." > contributed_modules.tex
|
||||||
@echo -e "$(CONTRIBUTED_MODULES)" >> contributed_modules.tex
|
@echo -e "$(CONTRIBUTED_MODULES)" >> contributed_modules.tex
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
APPNAME = ejabberd
|
APPNAME = ejabberd
|
||||||
VSN = $(shell sed '/VERSION/!d;s/\(.*\)"\(.*\)"\(.*\)/\2/' ../../src/ejabberd.hrl)
|
VSN = $(shell sed '/vsn/!d;s/\(.*\)"\(.*\)"\(.*\)/\2/' ../../src/ejabberd.app)
|
||||||
|
|
||||||
DOCDIR=.
|
DOCDIR=.
|
||||||
SRCDIR=../../src
|
SRCDIR=../../src
|
||||||
|
@ -60,6 +60,8 @@ start() ->
|
|||||||
EVersion = "ERLANG_VERSION = " ++ erlang:system_info(version) ++ "\n",
|
EVersion = "ERLANG_VERSION = " ++ erlang:system_info(version) ++ "\n",
|
||||||
EIDirS = "EI_DIR = " ++ code:lib_dir("erl_interface") ++ "\n",
|
EIDirS = "EI_DIR = " ++ code:lib_dir("erl_interface") ++ "\n",
|
||||||
RootDirS = "ERLANG_DIR = " ++ code:root_dir() ++ "\n",
|
RootDirS = "ERLANG_DIR = " ++ code:root_dir() ++ "\n",
|
||||||
|
%% Load the ejabberd application description so that ?VERSION can read the vsn key
|
||||||
|
application:load(ejabberd),
|
||||||
Version = "EJABBERD_VERSION = " ++ ?VERSION ++ "\n",
|
Version = "EJABBERD_VERSION = " ++ ?VERSION ++ "\n",
|
||||||
ExpatDir = "EXPAT_DIR = c:\\sdk\\Expat-2.0.0\n",
|
ExpatDir = "EXPAT_DIR = c:\\sdk\\Expat-2.0.0\n",
|
||||||
OpenSSLDir = "OPENSSL_DIR = c:\\sdk\\OpenSSL\n",
|
OpenSSLDir = "OPENSSL_DIR = c:\\sdk\\OpenSSL\n",
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
{application, ejabberd,
|
{application, ejabberd,
|
||||||
[{description, "ejabberd"},
|
[{description, "ejabberd"},
|
||||||
{vsn, "2.0.0"},
|
{vsn, "2.1.0-alpha"},
|
||||||
{modules, [acl,
|
{modules, [acl,
|
||||||
adhoc,
|
adhoc,
|
||||||
configure,
|
configure,
|
||||||
|
@ -19,7 +19,9 @@
|
|||||||
%%%
|
%%%
|
||||||
%%%----------------------------------------------------------------------
|
%%%----------------------------------------------------------------------
|
||||||
|
|
||||||
-define(VERSION, "2.1.0-alpha").
|
%% This macro returns a string of the ejabberd version running, e.g. "2.3.4"
|
||||||
|
%% If the ejabberd application description isn't loaded, returns atom: undefined
|
||||||
|
-define(VERSION, element(2, application:get_key(ejabberd,vsn))).
|
||||||
|
|
||||||
-define(MYHOSTS, ejabberd_config:get_global_option(hosts)).
|
-define(MYHOSTS, ejabberd_config:get_global_option(hosts)).
|
||||||
-define(MYNAME, hd(ejabberd_config:get_global_option(hosts))).
|
-define(MYNAME, hd(ejabberd_config:get_global_option(hosts))).
|
||||||
|
Loading…
Reference in New Issue
Block a user