Add script to automatically generate versions.