Updates the generate script.