Add a bash version of the build script