dotfiles

$HOME is where the <3 is
git clone git://git.alexkarle.com/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

rmake (195B) [raw]


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