~ chicken-core (chicken-5) /scripts/update-copyright-year
Trap1#!/bin/sh2#3# Usage: update-copyright-year [YEAR]4#56YEAR=${1:-$(date +%Y)}7PREV=$((YEAR - 1))89git grep -Il '(c) [0-9-]*, The CHICKEN Team' | while read i10do11 sed -r "s/\\(c\\) (([0-9]+)-|($PREV))($PREV)?,/(c) \\2\\3-$YEAR,/" "$i" > tmp12 mv tmp "$i"13done