]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
A script to detect copyright headers
authornorbert.bizet <norbert.bizet@baculasystems.com>
Wed, 4 May 2022 10:32:42 +0000 (06:32 -0400)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:56:58 +0000 (13:56 +0200)
bacula/release/check_copyright [new file with mode: 0755]

diff --git a/bacula/release/check_copyright b/bacula/release/check_copyright
new file mode 100755 (executable)
index 0000000..4e8f0bb
--- /dev/null
@@ -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'