reduce duplicate code in make_gamedata_arch.sh