Skip to content

Commit

Permalink
Add check for copyright date if its begin-end years same
Browse files Browse the repository at this point in the history
Change-Id: I7ccf73f1605b3e971f6babf3cdd4a6baa9806688
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/58753
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: Daniel M. Crowell <dcrowell@us.ibm.com>
  • Loading branch information
sumitk56 authored and dcrowell77 committed May 16, 2018
1 parent 29bde9b commit eb3bc77
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/build/tools/addCopyright
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,18 @@ sub createYearString($)

# The list of years starts with the years in the current prolog and the
# current release year.
my @years = ( @CopyRightYears, $ReleaseYear );
my @years = ();

# Get size of arrar @CopyRightYears
my $size = @CopyRightYears;
if ( $size < 2 ) ## If less than 2 then date entry has only a year mentioned
{
@years = @CopyRightYears;
}
else
{
@years = ( @CopyRightYears, $ReleaseYear );
}

## Make a call to git to find the earliest commit date of the file
## new files will not have a log, so the "git log" call above will
Expand Down

0 comments on commit eb3bc77

Please sign in to comment.