Skip to content

Instantly share code, notes, and snippets.

@tsavola
Created July 8, 2025 09:14
Show Gist options
  • Select an option

  • Save tsavola/6d743082cf343be4970e31cd12f71ea5 to your computer and use it in GitHub Desktop.

Select an option

Save tsavola/6d743082cf343be4970e31cd12f71ea5 to your computer and use it in GitHub Desktop.
ake 1.0
#!/bin/sh
# ake 1.0: build system agnostic utility for invoking project build scripts.
#
# Usage:
# - Install this script on PATH as 'ake'.
# - Create an executable 'akefile' and add it your project directory.
#
# Copyright 2025 Timo Savola
# SPDX-License-Identifier: BSD-3-Clause
[ -e akefile ] && exec ./akefile "$@"
rel=..
while [ "$(cd $rel && pwd)" != / ]
do
[ -e $rel/akefile ] && exec $rel/akefile "$@"
rel=$rel/..
done
echo >&2 "akefile not found in directory tree"
exit 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment