Skip to content

Commit 822745a

Browse files
committed
Exclude hudi-trino-plugin files for licensing checks
1 parent f27ce66 commit 822745a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/release/validate_source_copyright.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,11 @@ echo -e "\t\tNotice file exists ? [OK]\n"
4646

4747
### Licensing Check
4848
echo "Performing custom Licensing Check "
49-
numfilesWithNoLicense=`find . -iname '*' -type f | grep -v NOTICE | grep -v LICENSE | grep -v '.jpg' | grep -v '.json' | grep -v '.hfile' | grep -v '.data' | grep -v '.commit' | grep -v emptyFile | grep -v DISCLAIMER | grep -v KEYS | grep -v '.mailmap' | grep -v '.sqltemplate' | grep -v 'banner.txt' | grep -v '.txt' | grep -v "fixtures" | xargs grep -L "Licensed to the Apache Software Foundation (ASF)" | wc -l`
49+
# Exclude the 'hudi-trino-plugin' directory
50+
numfilesWithNoLicense=`find . -path 'hudi-trino-plugin' -prune -o -type f -iname '*' | grep -v NOTICE | grep -v LICENSE | grep -v '.jpg' | grep -v '.json' | grep -v '.hfile' | grep -v '.data' | grep -v '.commit' | grep -v emptyFile | grep -v DISCLAIMER | grep -v '.sqltemplate' | grep -v KEYS | grep -v '.mailmap' | grep -v 'banner.txt' | grep -v '.txt' | grep -v "fixtures" | xargs grep -L "Licensed to the Apache Software Foundation (ASF)" | wc -l`
5051
if [ "$numfilesWithNoLicense" -gt "0" ]; then
5152
echo "There were some source files that did not have Apache License [ERROR]"
52-
find . -iname '*' -type f | grep -v NOTICE | grep -v LICENSE | grep -v '.jpg' | grep -v '.json' | grep -v '.hfile' | grep -v '.data' | grep -v '.commit' | grep -v emptyFile | grep -v DISCLAIMER | grep -v '.sqltemplate' | grep -v KEYS | grep -v '.mailmap' | grep -v 'banner.txt' | grep -v '.txt' | grep -v "fixtures" | xargs grep -L "Licensed to the Apache Software Foundation (ASF)"
53+
find . -path 'hudi-trino-plugin' -prune -o -type f -iname '*' | grep -v NOTICE | grep -v LICENSE | grep -v '.jpg' | grep -v '.json' | grep -v '.hfile' | grep -v '.data' | grep -v '.commit' | grep -v emptyFile | grep -v DISCLAIMER | grep -v '.sqltemplate' | grep -v KEYS | grep -v '.mailmap' | grep -v 'banner.txt' | grep -v '.txt' | grep -v "fixtures" | xargs grep -L "Licensed to the Apache Software Foundation (ASF)"
5354
exit 1
5455
fi
5556
echo -e "\t\tLicensing Check Passed [OK]\n"

0 commit comments

Comments
 (0)