mirror of
https://github.com/eclipse-threadx/threadx.git
synced 2026-10-06 06:59:08 +08:00
Applied the standard MIT license header to all project-owned C, header, assembly, shell, and Python files that were missing a copyright notice. Third-party, toolchain startup, and auto-generated files were excluded. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
30 lines
983 B
Bash
Executable File
30 lines
983 B
Bash
Executable File
##############################################################################
|
|
# Copyright (c) 2024 Microsoft Corporation
|
|
# Copyright (c) 2026 Eclipse ThreadX contributors
|
|
#
|
|
# This program and the accompanying materials are made available under the
|
|
# terms of the MIT License which is available at
|
|
# https://opensource.org/licenses/MIT.
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
##############################################################################
|
|
|
|
# !/bin/bash
|
|
dir_list="common common_smp common_modules ports ports_module ports_smp samples"
|
|
exclude_list="-path TX"
|
|
file_list=$(find $dir_list \( $exclude_list \) -prune -o -type f -name '*.[ch]' -print)
|
|
cd $(dirname `realpath $0`)/..
|
|
echo "Checking for unexpected usage of memcpy..."
|
|
echo ""
|
|
echo "Excluding:"
|
|
echo $exclude_list | grep -P "[^\s]*/[^\s]*" -o
|
|
echo ""
|
|
echo "Result:"
|
|
grep -i "memcpy(" -i $file_list -n | grep -i "use case of .* is verified" -v
|
|
if [ "$?" -eq "1" ];
|
|
then
|
|
echo "CLEAN"
|
|
exit 0
|
|
else
|
|
exit 1
|
|
fi |