yait

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 44108074d554fa80f7dc055aad349bf4e26e207e
parent d0188c7f1ba5fd971c8858d668faa6a4b37ffd7d
Author: vx-clutch <[email protected]>
Date:   Sat, 23 Aug 2025 08:14:15 -0400

Update copyright information

Diffstat:
Msrc/licence.h | 8++++++++
Msrc/util.c | 8++++++++
Msrc/util.h | 8++++++++
Dtools/add-copyright-header | 32--------------------------------
Dtools/check-copyright-headers | 4----
5 files changed, 24 insertions(+), 36 deletions(-)

diff --git 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. + * <https://opensource.org/licence/bsd-3-clause> + */ + #ifndef LICENCE_H #define LICENCE_H diff --git 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. + * <https://opensource.org/licence/bsd-3-clause> + */ + #include <string.h> #include <stdio.h> #include <getopt.h> diff --git 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. + * <https://opensource.org/licence/bsd-3-clause> + */ + #ifndef UTIL_H #define UTIL_H diff --git a/tools/add-copyright-header b/tools/add-copyright-header @@ -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 diff --git a/tools/check-copyright-headers b/tools/check-copyright-headers @@ -1,4 +0,0 @@ -#!/bin/sh - -find . -name "*.c" -exec add-copyright-header {} \; -find . -name "*.h" -exec add-copyright-header {} \;