#!/bin/sh set -eu [ -d "$1" ] || (echo "package $1 not found" >&2; exit 1) ./build "$1" stow "$1" [ -f "$1/Makefile" ] && (cd "$1" && make -s install) true