commit 72424ee2aa3462de26bc9f406152e37902d82050 (patch) parent 21adf2b3904a8344100b826cd25d96c95f8d2ded Author: Alex Karle <alex@alexkarle.com> Date: Wed, 29 Dec 2021 21:36:35 -0500 bin: Add `rmake` -- make at the repo root This is super useful to run tests from a subdirectory (mostly used at work these days). Diffstat:
A | bin/rmake | | | 7 | +++++++ |
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/bin/rmake b/bin/rmake @@ -0,0 +1,7 @@ +#!/bin/sh +# rmake -- make at the repo root +if ! git rev-parse --show-toplevel >/dev/null 2>&1; then + echo "Not in a git repo!" >&2 + exit 1 +fi +make -C $(git rev-parse --show-toplevel)