#!/bin/sh set -eu if [ "$#" -eq 0 ]; then set -- list fi target="$1" shift case "$target" in day[0-9]*) day="${target#day}" exec make run DAY="$day" "$@" ;; run-day[0-9]*) day="${target#run-day}" exec make run DAY="$day" "$@" ;; list) exec make list "$@" ;; *) exec make "$target" "$@" ;; esac