shake

minimal build system that generates Ninja build files

git clone https://9o.is/git/shake.git

commit 30746a722bfc55023d1644d3ef96c44ad88b2beb
parent 3c3c82cde66fae2ea52b371c7c7ba4d2583db1f2
Author: Jul <jul@9o.is>
Date:   Mon,  9 Mar 2026 16:19:25 +0800

remove shake_lib and ninja_opts

Diffstat:
Mshake | 18------------------
1 file changed, 0 insertions(+), 18 deletions(-)

diff --git a/shake b/shake @@ -2,8 +2,6 @@ set -eu SHAKE_BIN="$0" -SHAKE_LIB="%%SHAKE_LIB%%" -NINJA_OPTS= TARGET=. DIR=. OUTDIR=. @@ -14,10 +12,8 @@ GEN_OUTS=$DIR/$NINJA_FILE usage() { printf "usage: shake [options] [target] - -l dir override shake lib path (default: %%SHAKE_LIB%%) -C dir change to dir before doing anything -o dir set the output directory - -n dry run (don't run commands) -h show this help " >&2 exit 1 @@ -25,11 +21,6 @@ usage() { while [ $# -gt 0 ]; do case "$1" in - -l) - [ $# -lt 2 ] && usage - SHAKE_LIB="${2%/}" - shift 2 - ;; -o) [ $# -lt 2 ] && usage OUTDIR="${2%/}" @@ -43,10 +34,6 @@ while [ $# -gt 0 ]; do } shift 2 ;; - -n) - NINJA_OPTS="$NINJA_OPTS -n" - shift - ;; -h|--help) usage ;; @@ -66,11 +53,6 @@ if [ ! -f Shakefile ]; then exit 1 fi -if [ ! -d "$SHAKE_LIB" ]; then - printf "shake: cannot find path: $SHAKE_LIB\n" >&2 - exit 1 -fi - init_gen() { var ninja_required_version 1.8 var builddir $OUTDIR