From b8e6f333d5f5e377b27ad561c8681d8a678e18ce Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 24 Sep 2017 15:06:51 +0300 Subject: Add: copyright license declaration to all files Also, ./check verifies it's in all files. --- is-agpl3+ | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100755 is-agpl3+ (limited to 'is-agpl3+') diff --git a/is-agpl3+ b/is-agpl3+ new file mode 100755 index 0000000..5ff33e6 --- /dev/null +++ b/is-agpl3+ @@ -0,0 +1,39 @@ +#!/bin/sh + +set -eu + + +has_blurb() +{ + local file="$1" + while read line + do + if ! grep -F "$line" "$file" + then + return 1 + fi + done <. +EOF +} + +exit=0 +for file in "$@" +do + if ! has_blurb "$file" > /dev/null + then + echo "ERROR: does not have expected license blurb: $file" + exit=1 + fi +done + +exit $exit -- cgit v1.2.1