Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

26 Commits

Repository files navigation

EZBuild

Bash script for building and testing small projects with minimal configuration

Config

The default config is designed for small c projects, using the g++ compiler. However, by changing variables both globally and for a specific directory, any ordered set of bash commands can be used.

Inheritance

First priority is given to the local .includes file, followed by any listed parent file. If a value is not found locally or in a parent, the global /etc/ezbuild file will be used.

Merging

Some options will merge the local value and all parent values into a single varaible. A value in the global config will not be included when merging. The files option will include the relevant directory path to every token when merging.

Other Options

Multiple build commands can be used, and the script will run through from 1-num. build commands without a number will be counted as build1.

OptionMergingDescVars
cdnonemove to directory and use its config
filespathlists all files passed to the build command
outputnonesets the output file given to the other commands
numnonenumber of build commands to run
builder#nonebuild command run%files, %ncfiles, %cached, %output, %open, %openc
buildargs#basicadded to end of build command
cachingnonesed regex to convert src file paths to cached versions
depfindernonesed -n regex for locating the dependencies of a src file
terminalnoneemulator command used for -e
testernonecommand used with -r%output, %open, %openc
testargsbasicadded to end of test command
testdirbasicdirectory to run test from
parentnoneprovides additional config file to check

Install

First edit the included config file to match your personal system and use case. Then run the install script.

sudo ./install.sh

About

Bash script for building and testing small projects with minimal configuration

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages