summaryrefslogtreecommitdiffstats
path: root/src/build/tools
diff options
context:
space:
mode:
authorMatt Derksen <mderkse1@us.ibm.com>2019-04-04 12:39:53 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2019-04-10 21:43:14 -0500
commit36375399974d5761f04bf8c88094fb5d6bd152b9 (patch)
treebde6999dbd9bfcc6e2e49195d1264cb42214ddba /src/build/tools
parentc4b67afb3574c4750bc8e7ebf3b9c7357ab6b1a4 (diff)
downloadtalos-hostboot-36375399974d5761f04bf8c88094fb5d6bd152b9.tar.gz
talos-hostboot-36375399974d5761f04bf8c88094fb5d6bd152b9.zip
Current copyright year not added
Noticed that 2019 year was not added to a changed file from 2018. If the current copyright is just one year and same as file creation, then it does not add the current year. Change-Id: If8d369b37823748a73a94b153e7d8077cc3049be Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/75547 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/build/tools')
-rwxr-xr-xsrc/build/tools/addCopyright7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/build/tools/addCopyright b/src/build/tools/addCopyright
index 2e067902a..81e871010 100755
--- a/src/build/tools/addCopyright
+++ b/src/build/tools/addCopyright
@@ -689,11 +689,16 @@ sub createYearString($)
# current release year.
my @years = ();
- # Get size of arrar @CopyRightYears
+ # Get size of array @CopyRightYears
my $size = @CopyRightYears;
if ( $size < 2 ) ## If less than 2 then date entry has only a year mentioned
{
@years = @CopyRightYears;
+ # add current year if not already in list
+ if ( ($years[0] ne $ReleaseYear) )
+ {
+ push @years, $ReleaseYear ;
+ }
}
else
{
OpenPOWER on IntegriCloud