From: norbert.bizet Date: Wed, 4 May 2022 10:32:42 +0000 (-0400) Subject: A script to detect copyright headers X-Git-Tag: Beta-15.0.0~583 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84991c70a2a8ba6309fb6f80455d679c03b3b1c4;p=thirdparty%2Fbacula.git A script to detect copyright headers --- diff --git a/bacula/release/check_copyright b/bacula/release/check_copyright new file mode 100755 index 000000000..4e8f0bbae --- /dev/null +++ b/bacula/release/check_copyright @@ -0,0 +1,4 @@ +# Copyright (C) 2000-2020 Kern Sibbald +# License: BSD 2-Clause; see file LICENSE-FOSS + +find $1 -type f -not -regex ".*\.\(lo\|la\|o\|a\|so\|png\|jpg\|svg\|bmp\|lai\|ui\|dll\|d\)" | xargs -I % bash -c 'if ! grep -Fq "Copyright" % ; then echo % ; fi'