/
redgpu
/
ispc
Обзор
Документация
Войти
/
redgpu
/
ispc
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
scripts/check_copyright.sh
16 строк
489 B
Aleksei Nurmukhametov
Move check*.sh scripts to scrips folder
20 сен 2024, 23:22
20 сен 2024, 23:22
4cf9840
Код
Авторство
О чём код?
#!/bin/bash # Copyright (c) 2022-2024, Intel Corporation # SPDX-License-Identifier: BSD-3-Clause REF="$1" export YEAR=$(date +%Y) REPLARG="-S 1024" if !(xargs $REPLARG 2>/dev/null); then # xargs doesn't support -S argument, so do not use it REPLARG="" fi # List files with Copyright whether they have up-to-date date. git diff --name-only "$REF" | xargs -I {} $REPLARG bash -c 'test -f {} && (grep -q "Copyright.*$YEAR" {} || (grep -q Copyright {} && echo {}))' | ( ! grep ^ )