A replacement for Makefile cause i personally hate it.
text = hello
text2 = world!
main{
sh: echo (text)(text2)
}Then run nub in the directory of your .nub file.
//command:
joe@pc: ~/path/to/nubfile$ nub
//output:
hello world!variablename = value //you can only announce a variable outside mainmain{ //this is important. any <sh: > you announce outside of main will not do anything
sh: <your command here>
}main{
sh: echo (variablename) //encase your variable name in parenthesis
//if your variable does not exist, the interpreter will fill it with NULL and bash will complain about lack of operrand
}/functioname{
sh: echo printed from function!
}And to actually call it:
main{
fn: functioname
}Warning: Make sure you define the function before main{}
#You can also call the funcions individually from cmd. just run this:
nub functionameFind more in file build.nub