Split static CG/WG spec generation into build.sh