Have one script per build. This means more duplication between the scripts, but it's much easier to understand and to run locally.