shake

minimal build system that generates Ninja build files

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

commit 638aac62d671c658304c5eac370a446efb643d7a
parent ac3d87cc0ffe4e540e4225282990a6b9c434c994
Author: Jul <jul@9o.is>
Date:   Wed, 18 Mar 2026 14:03:02 +0800

add error message on invalid import

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

diff --git a/shake b/shake @@ -51,6 +51,9 @@ while [ $# -gt 0 ]; do done import() { + if [ ! -f "$DIR/$1" ]; then + error "import file does not exist: $DIR/$1" + fi GEN_FILES="$GEN_FILES $DIR/$1" . $DIR/$1 }