I would rather build my own C build tool than use someone elses, so here it is.
Running this command will initialize the scb file if not already initialized, same effect as scb init
.
If the project is initialized, it will build and execute the project, same effect as scb build -r
scb -h
or scb --help
Initializes the build tool, creating the file scb. Add this to your gitignore yourself.
Removes the scb file. Originally made for unit testing, but it may be useful elsewhere.
Command for adding/removing files to the tool.
Arguments:
-a \[files]
Takes list of files seperated by space and tracks them
-r \[files]
Takes list of files seperated by space and untracks them
-ls
Lists all files to compile
Displays the current directory for the header files (-I in gcc)
Arguments:
-s \[path]
Takes a path as the header directory
Displays the current name of the outfile
Arguments:
-s (name)
Takes a file name for the outfile
Builds the project
Arguments:
-r
Runs the built executable
Initiates speedrun mode, starting a timer when the command is run. Whenever you build during speedrun mode, it will check the output against the text inside scb_expected_output.txt
. When it detects a match, it will end speedrun mode and display the time spent
Alias:
-s