Update copyright information
This commit is contained in:
@@ -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
|
#ifndef LICENCE_H
|
||||||
#define LICENCE_H
|
#define 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>
|
||||||
|
*/
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <getopt.h>
|
#include <getopt.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
|
#ifndef UTIL_H
|
||||||
#define UTIL_H
|
#define UTIL_H
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
find . -name "*.c" -exec add-copyright-header {} \;
|
|
||||||
find . -name "*.h" -exec add-copyright-header {} \;
|
|
||||||
Reference in New Issue
Block a user