Browse Source

Info on options

tags/v20240302
Emil 8 months ago
parent
commit
6728be1e05
No known key found for this signature in database GPG Key ID: 5432DB986FDBCF8A
2 changed files with 25 additions and 2 deletions
  1. +12
    -1
      README
  2. +13
    -1
      baked.c

+ 12
- 1
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,
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>



+ 13
- 1
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 <errno.h>


Loading…
Cancel
Save