CA-176169: Copyright check to also include shell scripts

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
This commit is contained in:
Gabor Apati-Nagy 2017-01-16 20:17:15 +00:00
parent fe24ba067f
commit 61c5b43a15

View File

@ -37,7 +37,7 @@ echo "INFO: copyrightcheck"
dir="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
src="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )/../.." && pwd )"
output=$( /usr/bin/find "$src/XenAdmin" "$src/XenModel" "$src/XenOvfApi" "$src/XenOvfTransport" -not -ipath '*obj/*' -type f -iname '*.cs' -not -ipath '*Designer*' -not -ipath './obj*' -exec grep -L "Copyright (c) Citrix Systems, Inc." {} \;)
output=$( /usr/bin/find "$src/XenAdmin" "$src/XenModel" "$src/XenOvfApi" "$src/XenOvfTransport" "$src/mk" -not -ipath '*obj/*' -type f \( -iname \*.cs -o -iname \*.sh \) -not -ipath '*Designer*' -not -ipath './obj*' -exec grep -L "Copyright (c) Citrix Systems, Inc." {} \;)
echo "$output" | sed -e "s,$src/,,g"