mailr25910 - /trunk/docs/devel/find_missing_copyrights


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on September 19, 2014 - 10:23:
Author: bugman
Date: Fri Sep 19 10:23:20 2014
New Revision: 25910

URL: http://svn.gna.org/viewcvs/relax?rev=25910&view=rev
Log:
Updated the document to find missing copyright notices.


Modified:
    trunk/docs/devel/find_missing_copyrights

Modified: trunk/docs/devel/find_missing_copyrights
URL: 
http://svn.gna.org/viewcvs/relax/trunk/docs/devel/find_missing_copyrights?rev=25910&r1=25909&r2=25910&view=diff
==============================================================================
--- trunk/docs/devel/find_missing_copyrights    (original)
+++ trunk/docs/devel/find_missing_copyrights    Fri Sep 19 10:23:20 2014
@@ -1,4 +1,4 @@
-The following is a command which can be used to view all edits by a certain 
user (here 'tlinnet') for the entire year.  This svn log is then parsed and 
all the added and modified files extracted.  Each file is then grepped from 
the copyright statement, and all copyright statements from the year removed.  
The remaining printout lists the files which require a copyright notice 
update.
+The following is a command which can be used to view all edits by a certain 
user for the entire year.  This svn log is then parsed and all the added and 
modified files extracted.  Each file is then grepped from the copyright 
statement, and all copyright statements from the year removed.  The remaining 
printout lists the files which require a copyright notice update.
 
 svn log -v -r{"2014-01-01 00:00:00"}:{"2014-12-31 00:00:00"} \
 | sed -n '/ | tlinnet | /,/-----$/ p' \
@@ -7,6 +7,11 @@
 | sed 's/   M //g' \
 | sed 's/   A //g' \
 | sed 's/\/trunk\///g' \
-| xargs grep Copyright \
-| grep -v 2014
+| sed 's/ .*//g' \
+| xargs -I {} bash -c 'if [ -f {} ] ; then echo {} ; fi' \
+| xargs grep Copyright
 
+
+To change to a different developer, for example replace 'tlinnet' with 
'bugman' and 'Troels' with 'Edward'.  To check the history of one of these 
files, say 'lib/xyz.py', to be sure that the developer edited the file, type:
+
+svn log -v lib/xyz.py | less




Related Messages


Powered by MHonArc, Updated Fri Sep 19 11:00:03 2014