forked from I2P_Developers/i2p.www
Include mtn revision in rendered pages
This commit is contained in:
@ -83,5 +83,9 @@
|
|||||||
{% include "global/footer.html" %}
|
{% include "global/footer.html" %}
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
{% include "include/mtnversion" ignore missing %}
|
||||||
|
-->
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -17,6 +17,8 @@ if grep "^mtn: \(add\|patch\|dropp\|updat\)\(ed\|ing\) 'i2p2www/translations/" "
|
|||||||
./compile-messages.sh
|
./compile-messages.sh
|
||||||
fi
|
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
|
if grep "^mtn: updating 'i2p2www/.*\.py\|^mtn: updating 'i2p2www/.*/.*\.py" "$TMP" >/dev/null ; then
|
||||||
echo "Python files changed, restarting server"
|
echo "Python files changed, restarting server"
|
||||||
touch $TOUCHFILE
|
touch $TOUCHFILE
|
||||||
|
Reference in New Issue
Block a user