zeek/auxil/spicy/scripts/update-license-headers
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

10 lines
465 B
Bash
Executable File

#! /bin/sh
find . -type d -mindepth 0 -maxdepth 0 | grep -E -v '^\.(/build.*|/\.git)(/|$)' | while read dir; do
find "${dir}" -type f | while read file; do
echo ${file} | grep -E -q '/3rdparty/|/\..*/|update-license-headers' && continue
cat ${file} | grep -q Copyright || continue
gsed -i'' 's/Copyright .* by the Zeek Project\..* details\./Copyright (c) 2020-now by the Zeek Project. See LICENSE for details./' "${file}"
done
done