Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 111835 Details for
Bug 185970
Copyright check should look for third-party copyrights
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Improved version of the copyright checker
third_party_checker.txt (text/plain), 1.92 KB, created by
Joshua Bowles
on 2008-09-05 11:48:08 EDT
(
hide
)
Description:
Improved version of the copyright checker
Filename:
MIME Type:
Creator:
Joshua Bowles
Created:
2008-09-05 11:48:08 EDT
Size:
1.92 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.hyades.releng.builder >Index: master/bash/copyright-check.sh >=================================================================== >RCS file: /cvsroot/tptp/platform/org.eclipse.hyades.releng.builder/master/bash/copyright-check.sh,v >retrieving revision 1.26 >diff -u -r1.26 copyright-check.sh >--- master/bash/copyright-check.sh 24 Jul 2008 14:43:59 -0000 1.26 >+++ master/bash/copyright-check.sh 4 Sep 2008 19:18:29 -0000 >@@ -42,17 +42,28 @@ > > # 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 > echo $i >>BadOrMissingCopyrights > else >- echo $i >>FilesWithCopyrights >+ { >+ if [[ `grep "Copyright" "$i" | egrep -c 'IBM|Intel|Scapa'` == 0 ]] >+ then >+ echo $i >>ThirdPartyCopyrights >+ else >+ echo $i >>FilesWithCopyrights >+ fi >+ } > fi > done > > if [[ ! -s BadOrMissingCopyrights ]]; > then echo "This report is clean :)" >> BadOrMissingCopyrights > fi >+if [[ ! -s ThirdPartyCopyrights ]]; >+ then echo "No Third Party Copyrighted files found." >> ThirdPartyCopyrights >+fi > > # Generate report with incorrect copyright dates > touch NeedUpdate >@@ -61,7 +72,7 @@ > do > yr=`ls -l --time-style=+%Y "$FILE" | awk '{ print $6 }'` > query=`grep -L "Copyright.*$yr" "$FILE"` >- >+ > # Include the file in copyright report if copyright year doesn't match last modified date > if [[ "X$query" != "X" ]]; then > let count++ >@@ -74,6 +85,6 @@ > 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 >\ No newline at end of file
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 185970
:
110368
|
111125
| 111835 |
111836
|
114550