diff options
author | Matthew Sackman <matthew@lshift.net> | 2009-08-06 15:15:12 +0100 |
---|---|---|
committer | Matthew Sackman <matthew@lshift.net> | 2009-08-06 15:15:12 +0100 |
commit | 06c0614ee97c15eab3234806a3c764f0a0224a19 (patch) | |
tree | 100bd0b44a3d529ed1fc9530cf29d8f5a821bd2d | |
parent | daada9523bb1aee739445091583a4e5e3778be4d (diff) | |
download | rabbitmq-server-06c0614ee97c15eab3234806a3c764f0a0224a19.tar.gz |
An evocative and inspiring bunny.
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | ebin/rabbit_app.in | 2 | ||||
-rw-r--r-- | src/rabbit.erl | 17 |
3 files changed, 17 insertions, 5 deletions
@@ -3,7 +3,6 @@ TMPDIR := /tmp endif RABBITMQ_NODENAME=rabbit -RABBITMQ_SERVER_START_ARGS= RABBITMQ_MNESIA_DIR=$(TMPDIR)/rabbitmq-$(RABBITMQ_NODENAME)-mnesia RABBITMQ_LOG_BASE=$(TMPDIR) @@ -133,7 +132,7 @@ srcdist: distclean cp README.in $(TARGET_SRC_DIR)/README elinks -dump -no-references -no-numbering $(WEB_URL)build-server.html \ >> $(TARGET_SRC_DIR)/BUILD - sed -i.save 's/%%VERSION%%/$(VERSION)/' $(TARGET_SRC_DIR)/ebin/rabbit_app.in && rm -f $(TARGET_SRC_DIR)/ebin/rabbit_app.in.save + sed -i.save 's/%%VSN%%/$(VERSION)/' $(TARGET_SRC_DIR)/ebin/rabbit_app.in && rm -f $(TARGET_SRC_DIR)/ebin/rabbit_app.in.save cp -r $(AMQP_CODEGEN_DIR)/* $(TARGET_SRC_DIR)/codegen/ cp codegen.py Makefile generate_app $(TARGET_SRC_DIR) diff --git a/ebin/rabbit_app.in b/ebin/rabbit_app.in index 8e1c890e..0057ea04 100644 --- a/ebin/rabbit_app.in +++ b/ebin/rabbit_app.in @@ -1,7 +1,7 @@ {application, rabbit, %% -*- erlang -*- [{description, "RabbitMQ"}, {id, "RabbitMQ"}, - {vsn, "%%VERSION%%"}, + {vsn, "%%VSN%%"}, {modules, []}, {registered, [rabbit_amqqueue_sup, rabbit_log, diff --git a/src/rabbit.erl b/src/rabbit.erl index 196212ea..088fa436 100644 --- a/src/rabbit.erl +++ b/src/rabbit.erl @@ -207,8 +207,21 @@ log_location(Type) -> print_banner() -> {ok, Product} = application:get_key(id), {ok, Version} = application:get_key(vsn), - io:format("~s ~s (AMQP ~p-~p)~n~s~n~s~n~n", - [Product, Version, + ProductLen = string:len(Product), + io:format("~n" + "+---+ +---+~n" + "| | | |~n" + "| | | |~n" + "| | | |~n" + "| +---+ +-------+~n" + "| |~n" + "| ~s +---+ |~n" + "| | | |~n" + "| ~s +---+ |~n" + "| |~n" + "+-------------------+~n" + "AMQP ~p-~p~n~s~n~s~n~n", + [Product, string:right([$v|Version], ProductLen), ?PROTOCOL_VERSION_MAJOR, ?PROTOCOL_VERSION_MINOR, ?COPYRIGHT_MESSAGE, ?INFORMATION_MESSAGE]), Settings = [{"node", node()}, |