Update spec_gen.sh