Info on options

This commit is contained in:
Emil 2023-09-28 06:20:48 +00:00
parent c1e5410850
commit 6728be1e05
No known key found for this signature in database
GPG Key ID: 5432DB986FDBCF8A
2 changed files with 25 additions and 2 deletions

13
README
View File

@ -8,15 +8,26 @@ you may see a real example in the primary and only source file: `baked.c'.
this is not targeted toward any language and should be fairly flexible, this is not targeted toward any language and should be fairly flexible,
especially when multi-line comments are available. especially when multi-line comments are available.
Buildng
Initial building may be done by examining and running `install.sh', Initial building may be done by examining and running `install.sh',
if you don't want to install it right away, run `SUDO= TARGET=. ./install.sh' if you don't want to install it right away, run `SUDO= TARGET=. ./install.sh'
Name/arg extension: Name/Arg extension
$@: the name of the executed file $@: the name of the executed file
$*: the text of the filename before the last dot $*: the text of the filename before the last dot
$+: the remaining arguments to baked $+: the remaining arguments to baked
Options extension
only one option may be in use at a time, and must come as the first argument.
-h: displays help message, similiarly to empty input.
-n: DRYRUN, does NOT run anything!
Notes
baked was inspired by Shake (formerly eMake), written by anon, which baked was inspired by Shake (formerly eMake), written by anon, which
you may view at <http://bis64wqhh3louusbd45iyj76kmn4rzw5ysawyan5bkxwyzihj67c5lid.onion/anon/shake> you may view at <http://bis64wqhh3louusbd45iyj76kmn4rzw5ysawyan5bkxwyzihj67c5lid.onion/anon/shake>

14
baked.c
View File

@ -1,4 +1,16 @@
/* EXEC:cc $@ -o $* -std=gnu89 -O2 -Wall -Wextra -Wpedantic -pipe $CFLAGS:STOP */ /* baked.c - Ever burned a cake?
Copyright 2023 Emil Williams
Licensed under the GNU Public License version 3 only, see LICENSE.
EXEC:cc $@ -o $* -std=gnu89 -O2 -Wall -Wextra -Wpedantic -pipe $CFLAGS:STOP
@COMPILECMD cc $@ -o $* -std=gnu89 -O2 -Wall -Wextra -Wpedantic -pipe $CFLAGS
TODO
1. Possibly trim whitespace from before and after the buffer (no realloc), and
make sure single lined commands are not wrapped. (BLOAT)
*/
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>