gen.sh: include a loop for converting afm files as well