Skip to content
Snippets Groups Projects
Commit 2e3f5703 authored by Florian Fischer's avatar Florian Fischer
Browse files

[check-license] exclude subprojects and use year and git user.name for autofixing

parent 3ab70f90
No related branches found
No related tags found
No related merge requests found
Pipeline #61654 passed
......@@ -77,7 +77,7 @@ MAX_PROCS=$(nproc)
cd "${ROOTDIR}"
set +e
find . \( -path '*/\.*' -o -path "./build*" -o -path "./test/3rd-party*" \) -prune -o \
find . \( -path '*/\.*' -o -path './subprojects*' -o -path "./build*" -o -path "./test/3rd-party*" \) -prune -o \
-type f -regextype posix-extended -regex '.*\.(c|h|cpp|hpp)' -print0 |\
xargs --null --max-args=1 --max-procs="${MAX_PROCS}" -I {} \
bash -c 'check_license "$@"' _ "{}"
......@@ -98,7 +98,7 @@ if [[ $CHECK_RETURN_VALUE -ne 0 ]]; then
cat <<EOF > "${TMPFILE}"
// SPDX-License-Identifier: LGPL-3.0-or-later
// Copyright © 2020 Florian Schmaus
// Copyright © $(date +%Y) $(git config user.name)
EOF
cat "${INVALID_LICENSE_FILE}" >> "${TMPFILE}"
mv "${TMPFILE}" "${INVALID_LICENSE_FILE}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment