summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2018-06-26 21:57:10 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2018-06-26 21:57:10 +0200
commit06e3bad495f254064ab9c6735406a95915b983b3 (patch)
tree5dbe6db5dfecfe9ce2f6243db45a389585947591
parent8c843ebbf8a1f8dc4334da84cde2eb76e6e5696a (diff)
Version is now set through a macro.
-rw-r--r--conf/constants.conf.example4
-rw-r--r--www/index.html.m42
2 files changed, 5 insertions, 1 deletions
diff --git a/conf/constants.conf.example b/conf/constants.conf.example
index b436ed5..ae0efdb 100644
--- a/conf/constants.conf.example
+++ b/conf/constants.conf.example
@@ -1,3 +1,7 @@
m4_define(`__CONF_SERVER_NAME', `LOCAL SERVER')m4_dnl
m4_define(`__CONF_SERVER_URL', `http://127.0.0.1')m4_dnl
m4_define(`__CONF_AUTHOR_NAME', `localuser')m4_dnl
+m4_define(`__CONF_VERSION', `Latest Dev. Build (m4_esyscmd(date -R -u))')m4_dnl
+m4_define(NEWLINE,`
+')m4_dnl
+m4_define(`__CONF_VERSION',m4_translit(__CONF_VERSION, NEWLINE))m4_dnl
diff --git a/www/index.html.m4 b/www/index.html.m4
index 881fa83..37a243c 100644
--- a/www/index.html.m4
+++ b/www/index.html.m4
@@ -11,7 +11,7 @@
<body>
<div style="margin: 1em;">
<h1>__CONF_SERVER_NAME</h1>
- <h3>Currently running: Latest Dev. Build</h3>
+ <h3>Currently running: __CONF_VERSION</h3>
</div>
<div class="popup-message">
<p>This website lets you play the game, even during its development phase. As a result, there is a lot missing.</p>