Skip to content

Nullora/NUB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NUB

A replacement for Makefile cause i personally hate it.

Snippet code

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!

Syntax

To announce a variable:

variablename = value //you can only announce a variable outside main

To run any bash command:

main{ //this is important. any <sh: > you announce outside of main will not do anything
    sh: <your command here>
}

To reference a variable

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
}

To call a function

/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 functioname

Find more in file build.nub

About

Novus UEFI Builder

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors