Add regenerate.sh script.