The revision information (version.tex) is generated by the script
update-version.sh.

It is meant to be installed as git hook in .git/hooks:

ln -s ../../doku/update-version.sh .git/hooks/post-commit
ln -s ../../doku/update-version.sh .git/hooks/post-checkout
