Update copyright information

This commit is contained in:
2025-08-23 08:14:15 -04:00
parent d0188c7f1b
commit 44108074d5
5 changed files with 24 additions and 36 deletions

View File

@@ -1,32 +0,0 @@
#!/bin/sh
HEADER=$(cat <<EOF
/* Copyright (C) vx-clutch
*
* This file is part of yait
*
* This project and file is licenced under the BSD-3-Clause licence.
* <https://opensource.org/licence/bsd-3-clause>
*/
EOF
)
len=${#}
i=0
for file in "$@"
do
i=$((i + 1))
printf 'Adding header [%d/%d] %s\n' $i $len $file
if grep -qF "$HEADER" "$file"; then
continue
fi
tmp=$(mktemp)
printf '%s\n\n' "$HEADER" > "$tmp"
cat $file >> "$tmp"
mv "$tmp" $file
done

View File

@@ -1,4 +0,0 @@
#!/bin/sh
find . -name "*.c" -exec add-copyright-header {} \;
find . -name "*.h" -exec add-copyright-header {} \;