Favor using a scripting tool that is designed specifically for building software over personal scripts. Custom Shell scripts or batch scripts tend not to be cross-platform and can hide environment configuration. A scripting tool is the most effective process for developing a consistent, repeatable build solution.
Here is a list of scripting tools:
- Make (https://www.gnu.org/software/make/)
- Maven (https://maven.apache.org/)
- Leiningen (https://leiningen.org/)
- Stack (https://docs.haskellstack.org/en/stable/README/)