Files
UnrealEngine/Engine/Source/ThirdParty/Intel/ISPC/ispc-1.19.0/check_copyright.sh
2025-05-18 13:04:45 +08:00

11 lines
337 B
Bash

#!/bin/bash
# Copyright 2022, Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause
REF="$1"
export YEAR=$(date +%Y)
# List files with Copyright whether they have up-to-date date.
git diff --name-only "$REF" | xargs -I {} bash -c 'test -f {} && (grep -q "Copyright.*$YEAR" {} || (grep -q Copyright {} && echo {}))' | ( ! grep ^ )