-
-
Save tsavola/6d743082cf343be4970e31cd12f71ea5 to your computer and use it in GitHub Desktop.
ake 1.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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