Generate version info from git.