[ARVADOS] updated: 32c2f3d808e0d4938f6a17b778c38f6d1ecd2f82

Git user git at public.curoverse.com
Fri Jun 30 10:37:19 EDT 2017


Summary of changes:
 services/api/Rakefile | 7 +++++++
 1 file changed, 7 insertions(+)

       via  32c2f3d808e0d4938f6a17b778c38f6d1ecd2f82 (commit)
       via  3a0c9ae2876e13678d3f73a9ab37a3bd9f9b9801 (commit)
      from  2e06098f6a71a5575cdfffd24c0e22ec398e7682 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 32c2f3d808e0d4938f6a17b778c38f6d1ecd2f82
Merge: 2e06098 3a0c9ae
Author: Tom Clegg <tom at curoverse.com>
Date:   Fri Jun 30 10:36:05 2017 -0400

    Merge branch '2411-rake-copyright'
    
    refs #2411
    
    Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom at curoverse.com>


commit 3a0c9ae2876e13678d3f73a9ab37a3bd9f9b9801
Author: Tom Clegg <tom at curoverse.com>
Date:   Fri Jun 30 10:34:06 2017 -0400

    2411: Maintain copyright header in structure.sql.
    
    Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom at curoverse.com>

diff --git a/services/api/Rakefile b/services/api/Rakefile
index 9d3d8f3..3136cdd 100644
--- a/services/api/Rakefile
+++ b/services/api/Rakefile
@@ -37,10 +37,17 @@ namespace :db do
       require 'tempfile'
       origfnm = File.expand_path('../db/structure.sql', __FILE__)
       tmpfnm = Tempfile.new 'structure.sql', File.expand_path('..', origfnm)
+      copyright_done = false
       begin
         tmpfile = File.new tmpfnm, 'w'
         origfile = File.new origfnm
         origfile.each_line do |line|
+          if !copyright_done
+            if !/Copyright .* Arvados/
+               tmpfile.write "-- Copyright (C) The Arvados Authors. All rights reserved.\n--\n-- SPDX-License-Identifier: AGPL-3.0\n\n"
+            end
+            copyright_done = true
+          end
           if /^SET lock_timeout = 0;/ =~ line
             # Avoid edit wars between versions that do/don't write this line.
             next

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list