From 44108074d554fa80f7dc055aad349bf4e26e207e Mon Sep 17 00:00:00 2001 From: vx-clutch Date: Sat, 23 Aug 2025 08:14:15 -0400 Subject: [PATCH] Update copyright information --- src/licence.h | 8 ++++++++ src/util.c | 8 ++++++++ src/util.h | 8 ++++++++ tools/add-copyright-header | 32 -------------------------------- tools/check-copyright-headers | 4 ---- 5 files changed, 24 insertions(+), 36 deletions(-) delete mode 100755 tools/add-copyright-header delete mode 100755 tools/check-copyright-headers diff --git a/src/licence.h b/src/licence.h index e1f5e40..a0139b3 100644 --- a/src/licence.h +++ b/src/licence.h @@ -1,3 +1,11 @@ +/* Copyright (C) vx_clutch + * + * This file is part of yait + * + * This project and file is licenced under the BSD-3-Clause licence. + * + */ + #ifndef LICENCE_H #define LICENCE_H diff --git a/src/util.c b/src/util.c index 3cf8c3e..59306bd 100644 --- a/src/util.c +++ b/src/util.c @@ -1,3 +1,11 @@ +/* Copyright (C) vx_clutch + * + * This file is part of yait + * + * This project and file is licenced under the BSD-3-Clause licence. + * + */ + #include #include #include diff --git a/src/util.h b/src/util.h index 780a814..0356f96 100644 --- a/src/util.h +++ b/src/util.h @@ -1,3 +1,11 @@ +/* Copyright (C) vx_clutch + * + * This file is part of yait + * + * This project and file is licenced under the BSD-3-Clause licence. + * + */ + #ifndef UTIL_H #define UTIL_H diff --git a/tools/add-copyright-header b/tools/add-copyright-header deleted file mode 100755 index a5ebb45..0000000 --- a/tools/add-copyright-header +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh - -HEADER=$(cat < - */ -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 diff --git a/tools/check-copyright-headers b/tools/check-copyright-headers deleted file mode 100755 index 9ad9f0d..0000000 --- a/tools/check-copyright-headers +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -find . -name "*.c" -exec add-copyright-header {} \; -find . -name "*.h" -exec add-copyright-header {} \;