From b3d25d906cec5326bc8e00db509b54a058ca5795 Mon Sep 17 00:00:00 2001 From: Adlai Holler Date: Mon, 15 Jan 2018 15:13:54 -0800 Subject: [PATCH] Update dangerfile for 2018 #trivial (#746) * Update the dangerfile * Make a trivial change to test new dangerfile * Try out the new value with another trivial change --- Dangerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Dangerfile b/Dangerfile index 3b8169582..db9f90b33 100644 --- a/Dangerfile +++ b/Dangerfile @@ -52,7 +52,11 @@ def check_file_header(files_to_check, licenses) correct_license = false licenses.each do |license| license_header = full_license(license, filename) - if data.start_with?(license_header) + # Hack for https://github.com/TextureGroup/Texture/issues/745 + # If it's already a "modified-post-Texture" file, leave it with it original copyright year. + if data.include "Modifications to this file made after 4/13/2017" + correct_license = true + elsif data.start_with?(license_header) correct_license = true end end @@ -87,7 +91,7 @@ modified_source_license_header = <<-HEREDOC // LICENSE file in the /ASDK-Licenses directory of this source tree. An additional // grant of patent rights can be found in the PATENTS file in the same directory. // -// Modifications to this file made after 4/13/2017 are: Copyright (c) 2017-present, +// Modifications to this file made after 4/13/2017 are: Copyright (c) through the present, // Pinterest, Inc. Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at