mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-04-19 22:39:03 +00:00
* chore(copyright): update copyright header for tile_engine directory * chore(copyright): update copyright header for script directory --------- Co-authored-by: Vidyasagar Ananthan <vanantha@amd.com>
21 lines
450 B
Bash
Executable File
21 lines
450 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright (c) Advanced Micro Devices, Inc., or its affiliates.
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
|
current_year=$(date +%Y)
|
|
exit_code=0
|
|
|
|
for file in $@; do
|
|
if grep -q "Copyright (c)" $file
|
|
then
|
|
if ! grep -q "Copyright (c).*$current_year" $file
|
|
then
|
|
echo "ERROR: File $file has a copyright notice without the current year ($current_year)."
|
|
exit_code=1
|
|
fi
|
|
fi
|
|
done
|
|
|
|
exit $exit_code
|