Logo
Explore Help
Sign In
intel/compute-runtime
1
0
Fork 0
You've already forked compute-runtime
mirror of https://github.com/intel/compute-runtime.git synced 2025-12-22 10:17:01 +08:00
Code Issues Packages Projects Releases Wiki Activity
Files
09b51cf756b019ec0d8e3c9aa5fab9dfdc5bbfb6
compute-runtime/scripts/lint/set_copyright.sh

16 lines
399 B
Bash
Raw Normal View History

add script to set copyright header for source files this works for: - C/C++ files - files where comment is # Change include set of simple tests. Change-Id: I1c08c6c359e2a48957d5d81397c439508ae06c42 Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-09-13 16:26:01 +02:00
#!/bin/bash
#
# Copyright (C) 2018 Intel Corporation
#
# SPDX-License-Identifier: MIT
#
converter=$(dirname $(readlink -f $0))/set_copyright.py
if [ "${1:-STAGED}" = "HEAD" ]; then
git diff-tree --no-commit-id --name-only -r HEAD | xargs -n 1 python $converter
else
git diff --cached --name-only | xargs -n 1 python $converter
cmake: add lint target This wraps around commands used to format code and exposes them as single build system target: 'lint'. Change-Id: Ide88b8f080582221b1832be06fd2fd0f2cd44ab4 Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-09-17 08:30:05 +02:00
git diff --name-only | xargs -n 1 echo "Not scanned: "
add script to set copyright header for source files this works for: - C/C++ files - files where comment is # Change include set of simple tests. Change-Id: I1c08c6c359e2a48957d5d81397c439508ae06c42 Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
2018-09-13 16:26:01 +02:00
fi
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 207ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API