]> git.xolatile.top Git - emil-bake.git/commitdiff
Info on options
authorEmil <emilwilliams@tuta.io>
Thu, 28 Sep 2023 06:20:48 +0000 (06:20 +0000)
committerEmil <emilwilliams@tuta.io>
Thu, 28 Sep 2023 06:20:48 +0000 (06:20 +0000)
README
baked.c

diff --git a/README b/README
index 8c686cd1bd90205d81b4778574098df47714726a..96e25625e6858422bae7fb3657b151b096c22072 100644 (file)
--- a/README
+++ b/README
@@ -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,
 especially when multi-line comments are available.
 
+Buildng
+
 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'
 
-Name/arg extension:
+Name/Arg extension
 
 $@: the name of the executed file
 $*: the text of the filename before the last dot
 $+: 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
 you may view at <http://bis64wqhh3louusbd45iyj76kmn4rzw5ysawyan5bkxwyzihj67c5lid.onion/anon/shake>
 
diff --git a/baked.c b/baked.c
index 297f6acf07b26f2d9a6e78eb2575e569f268a521..4ee8c1aea8f528eb75a15f8a2f2e709aa9d9b66a 100644 (file)
--- a/baked.c
+++ b/baked.c
@@ -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 <errno.h>