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 110368 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]
Adds distinctions for third party files in copyright-check.sh
copyright_thirdparty_support.txt (text/plain), 2.01 KB, created by
Joshua Bowles
on 2008-08-19 13:27:02 EDT
(
hide
)
Description:
Adds distinctions for third party files in copyright-check.sh
Filename:
MIME Type:
Creator:
Joshua Bowles
Created:
2008-08-19 13:27:02 EDT
Size:
2.01 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 19 Aug 2008 17:12:11 -0000 >@@ -42,15 +42,32 @@ > > # List of all files missing copyrights > touch BadOrMissingCopyrights >+touch ThirdPartyFiles > 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 >+ { >+ if [ `echo $i | grep -v tptp | grep -v hyades` ];then >+ { >+ echo $i >>ThirdPartyFiles >+ } >+ else >+ echo $i >>BadOrMissingCopyrights >+ fi >+ } > else >- echo $i >>FilesWithCopyrights >- fi >+ { >+ if [ `echo $i | grep -v tptp | grep -v hyades` ];then >+ { >+ echo $i >>ThirdPartyFiles >+ } >+ else >+ echo $i >>FilesWithCopyrights >+ fi >+ } >+ fi > done > >-if [[ ! -s BadOrMissingCopyrights ]]; >+if [[ ! -s BadOrMissingCopyrights ]]; > then echo "This report is clean :)" >> BadOrMissingCopyrights > fi > >@@ -61,7 +78,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 +91,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 ThirdPartyFiles; 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