Commit a5972a3f authored by Michel Roelofs's avatar Michel Roelofs
Browse files

Show console version, build date, ... in console window including reference to repo

The console_version.js file is generated at each build.
parent f3c30db2
......@@ -25,6 +25,8 @@ dt_ctrl_LDFLAGS=$(dt_ctrl_sim_LDFLAGS) `controller/block_list.sh ec/ec.a`
all: console
console_version.js:
@echo "document.write('CAMRAS Console <a target="_blank" href=\"https://eris.camras.nl/redmine/projects/console/repository/revisions/` git rev-parse HEAD`\">built at `date \"+%F %R %Z\"` by ${USER} on `hostname -f`</a>');" > $@
%.a:
@echo " SUBDIR: $(@D)"
@$(MAKE) -C $(@D)
......@@ -40,7 +42,7 @@ console:
@echo " SUBDIR: $@"
@$(MAKE) -C console
.PHONY: console
.PHONY: console console_version.js
clean:
rm -f *.o *.d
......
../console_version.js
\ No newline at end of file
......@@ -689,7 +689,14 @@
<p>
<div>
<table width="100%" border="0">
<tr>
<td>
<a href="mech.html" target="_blank">Mechanics</a>
</td>
<td align="right">
<script type="text/javascript" src="console_version.js"></script>
</td>
</div>
</center>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment