#!/bin/bash
#    SPDX-License-Identifier: GPL-3.0-or-later
#
#    This file is part of Eruption.
#
#    Eruption is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    Eruption is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with Eruption.  If not, see <http://www.gnu.org/licenses/>.
#
#    Copyright (c) 2019-2022, The Eruption Development Team


# exclude the following directories
FILTER_ARGS="(sdk/examples/python/venv)|(sdk/lib/python/eruption/transport/sdk_support_pb2.py)"


echo "The following files have no 'SPDX-License-Identifier' header:"
echo

support/spdx-header-verification/check-files.py | grep 'NO SPDX HEADER' | cut -f2 | grep -Ev "$FILTER_ARGS"
