Usually one would save this type of thing as a build tool task.