A <100 line build system in pure Bash

c8318cd Remove redundant entry from default.nix

2 years ago

cfa3008 Fix README formatting (again)

2 years ago

#build.sh - the <100-line build system


Build.sh is a dead simple build system for *nix systems. It is written in <100 lines of Bash scripting and allows for the execution of Bash functions from the command line. In essence, it's Make but with pure Bash syntax and parameterized tasks.


If you are on NixOS, currently the best way to install this is using the provided default.nix file. If you are on another system, then do the following:

  1. Make src/build.sh executable.
  2. Run src/build.sh build to generate the ./out directory
  3. Run sudo ./src/build.sh install to automagically place everything in it's correct location.

Please note that ./src/build.sh install will install the man page to /share/man and the executable to /bin by default. If this is not the desired behaviour, you may manually copy these files from the out directory.

For more info, please use man build.sh.


To submit patches, please use our mailing list at https://lists.sr.ht/~hutzdog/build.sh. To submit bug reports, please use our bug tracker at https://todo.sr.ht/~hutzdog/build.sh.