diff options
author | Stephen Cprek <smcprek@us.ibm.com> | 2016-03-17 18:01:01 -0500 |
---|---|---|
committer | Stephen M. Cprek <smcprek@us.ibm.com> | 2016-03-17 19:10:24 -0400 |
commit | ac055e22f8e99f169ce23820c38f4da8b8514460 (patch) | |
tree | e2af1e6cd15f628415ac00fa3e3b2ec12c791dc1 /src/build/tools/addCopyright.pl | |
parent | 6fb2779f73d88a321a7f42559a85e28fd255a771 (diff) | |
download | talos-hostboot-ac055e22f8e99f169ce23820c38f4da8b8514460.tar.gz talos-hostboot-ac055e22f8e99f169ce23820c38f4da8b8514460.zip |
Fix tool issues reported by OSX users
tail '--line' is not supported in BSD syntax
Using smartmatch issues a warning in perl later than 5.017 so
suppress warning if past that version.
Change-Id: I2dc6a1913820f7d9644dd78dbc19ca113e7dcdb4
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/22212
Tested-by: Jenkins Server
Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com>
Diffstat (limited to 'src/build/tools/addCopyright.pl')
-rwxr-xr-x | src/build/tools/addCopyright.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build/tools/addCopyright.pl b/src/build/tools/addCopyright.pl index 76ba1a90a..3a922b3e0 100755 --- a/src/build/tools/addCopyright.pl +++ b/src/build/tools/addCopyright.pl @@ -729,7 +729,7 @@ sub createYearString ## new files will not have a log, so the "git log" call above will # return nothing. ## Push any year we find onto the @years array - my $cmd = "git log -- $filename | grep Date: | tail --line=1"; + my $cmd = "git log -- $filename | grep Date: | tail -n 1"; ## print "run $cmd\n"; my @logstrings = split( " ", `$cmd` ); if ( $? ) { die "ERROR $? : Could not run $cmd $!\n"; } |