8 [ -n "${YEAR_FILE}" ] || {
9 echo >&2 "$0 $(dirname "$0")/.year [DEFAULT_YEAR]"
13 [ -f "${YEAR_FILE}" ] && year="$(cat "${YEAR_FILE}")"
16 year="$(date +%Y -d "$(git show --format=format:%cD --no-patch)")"
18 [ -n "${year}" ] || year="${DEFAULT_YEAR}"
20 [ -n "${year}" ] || year="$(date "+%Y")"
23 echo >&2 'Undefined year.'