gen_snapshot utility buildscript