Releases: taikedz/bash-builder
Run bash-builder code directly
Finally, bash-builder scripts can be run directly!
Install 6.1.1 or later to be able to use #!/usr/bin/env bbrun
as your executable, and you will be able to run bash-builder scripts directly (assuming you have also installed the library scripts your own script needs)!
Note that to achieve this, bbrun builds your script to a temp space - so using "$0"
for identifying where the script was called from no longer works. Instead, you need to use the "$BBRUN_SCRIPT" variable which will point to the location of the original script.
An example use would be:
#!/usr/bin/env bbrun
#%include std/out.sh
main() {
out:info "You ran '$BBRUN_SCRIPT' (compiled to '$0')"
}
main "$@"
Of course, using syntax-extensions.sh
and all libraries are also supported as normal. It's just a shebangable wrapper around bbuild
after all...
6.0
Bash Builder 6 is here !
It's not quite as fantastic as a major version bump would sound, but it does introduce breaking changes relative to the 5.x series - so here we are. Of note:
bbuildrc
files removed
bbuildrc
files are no longer supported. They were a limited system which was not quite extendable and so I felt it best to remove them.
Some alternative may be added again later, but in the meantime, writing a basic build script called by running ./build.sh
for example is the way forward.
bbuild
arguments changed
The bbuild
command itself now takes an input file, and optionally an output file, as arguments.
Previously, controlling output was done by setting an environment variable, as was a style preferred way back when creating Bash Builder 2; this is no longer the preferred method, and output control is done via a --out=DIR
flag, or specifying a target file explicitly.
Syntax Sugars
Bash Builder now offers some syntactical sugar features to use !
For the first time, bash-builder does not merely 'catenate files - it also performs some transformation of the script data itself !
See the README for details.
This release also adds a compatibility check - the verify
task of the installer now runs a compatibility check before even trying to verify the scripts. Remember: this toolset is intended for use with GNU/Linux - not busybox/Linux or bsdutils/Linux :-)
Fifth incarnation
This is the fifth version of bash builder, which uses the cleaned up libraries with some code restructuring. It is not in fact a great departure from version 4, however the repository has since been deleted, and recreated anew, hence the main reason for version change.
The old repository, compete with .git
directory, history and all, can still be downloaded from the 4.0 tag.
Transition
Transitioning from the old, semi-broken repository to the new one.
The old repo's data can still be downloaded from attachment