Generate automatic version number from git repository.