Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 185970 | Differences between
and this patch

Collapse All | Expand All

(-)master/bash/copyright-check.sh (-2 / +6 lines)
Lines 42-49 Link Here
42
42
43
# List of all files missing copyrights
43
# List of all files missing copyrights
44
touch BadOrMissingCopyrights
44
touch BadOrMissingCopyrights
45
touch ThirdPartyCopyrights
45
cat CheckedFiles | while read i; do
46
cat CheckedFiles | while read i; do
46
	if [[ `grep -c "http://www.eclipse.org/legal/epl-v10.html" "$i"` = 0 || `grep -c "Copyright" "$i"` = 0 ]];then
47
	if [[ `grep "Copyright" "$i" | grep -c "IBM"` == 0 && `grep "Copyright" "$i" | grep -c "Scapa"` == 0 && `grep "Copyright" "$i" | grep -c "Intel"` == 0 && `echo $i | grep -c "source"` == 0  | grep -c ".win_"` == 0 && `echo $i | grep -c ".linux_"` == 0 ]]
48
    then
49
        echo $i >>ThirdPartyCopyrights
50
	elif [[ `grep -c "http://www.eclipse.org/legal/epl-v10.html" "$i"` = 0 || `grep -c "Copyright" "$i"` = 0 ]];then
47
		echo $i >>BadOrMissingCopyrights
51
		echo $i >>BadOrMissingCopyrights
48
	else
52
	else
49
		echo $i >>FilesWithCopyrights
53
		echo $i >>FilesWithCopyrights
Lines 74-79 Link Here
74
fi
78
fi
75
79
76
# Copies all the reports to the published directory
80
# Copies all the reports to the published directory
77
for file in Patterns CheckedFiles BadOrMissingCopyrights FilesWithCopyrights NeedUpdate; do
81
for file in Patterns CheckedFiles BadOrMissingCopyrights FilesWithCopyrights NeedUpdate ThirdPartyCopyrights; do
78
	cat "$file" >> "$publishDir/$file"
82
	cat "$file" >> "$publishDir/$file"
79
done
83
done

Return to bug 185970