Add generate.sh and fix perl warnings in update-wiki.sh