#!/usr/bin/env bash set -eux function has_license { # Check if file already has a copyright notice grep -q "Copyright.*Dnote Authors" "$1" } function add_notice { ed "$1" <