Community
Participate
Working Groups
# List of all files missing copyrights
touch BadOrMissingCopyrights
touch ThirdPartyCopyrights
cat CheckedFiles | while read i; do
if [[ `grep -c "http://www.eclipse.org/legal/epl-v10.html" "$i"` = 0 || `grep -c "Copyright" "$i"` = 0 ]];then
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 ]]
then
echo $i >>ThirdPartyCopyrights
elif [[ `grep -c "http://www.eclipse.org/legal/epl-v10.html" "$i"` = 0 || `grep -c "Copyright" "$i"` = 0 ]];then
echo $i >>BadOrMissingCopyrights
else
echo $i >>FilesWithCopyrights
fi
# Copies all the reports to the published directory
for file in Patterns CheckedFiles BadOrMissingCopyrights FilesWithCopyrights NeedUpdate; do
for file in Patterns CheckedFiles BadOrMissingCopyrights FilesWithCopyrights NeedUpdate ThirdPartyCopyrights; do
cat "$file" >> "$publishDir/$file"
done