Include mtn revision in rendered pages

This commit is contained in:
str4d
2015-10-02 12:49:37 +00:00
parent c666219b74
commit 588f2f7887
2 changed files with 6 additions and 0 deletions

View File

@ -83,5 +83,9 @@
{% include "global/footer.html" %}
</footer>
</div>
<!--
{% include "include/mtnversion" ignore missing %}
-->
</body>
</html>

View File

@ -17,6 +17,8 @@ if grep "^mtn: \(add\|patch\|dropp\|updat\)\(ed\|ing\) 'i2p2www/translations/" "
./compile-messages.sh
fi
echo "Monotone revision: $(mtn log --no-files --no-graph --to h: | grep Revision | sed 's/Revision: //')" >./i2p2www/pages/include/mtnversion
if grep "^mtn: updating 'i2p2www/.*\.py\|^mtn: updating 'i2p2www/.*/.*\.py" "$TMP" >/dev/null ; then
echo "Python files changed, restarting server"
touch $TOUCHFILE