#!/bin/sh # rmake -- make at the repo root REPO=$(git rev-parse --show-toplevel 2>/dev/null) if [ -n "$REPO" ]; then cd "$REPO" make "$@" else echo "ERROR: not in a git repo" 1>&2 exit 1 fi