Skip to content

Commit

Permalink
FACES-1836 Enable fix-versions.pl script to fix copyright years
Browse files Browse the repository at this point in the history
  • Loading branch information
ngriffin7a committed Jan 30, 2014
1 parent 3b61b97 commit a806738
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions fix-versions.pl
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,14 @@ sub do_inplace_edits {
`perl -pi -e 's/vdldoc:since value=\\"[0-9]\\.[0-9]/vdldoc:since value=\\"$liferayFacesVersionShortMajor1DotMajor2/' $file`;
}

#
# Otherwise, if the current file is named NOTICE.txt, then potentially fix the copyright year.
#
elsif (($file =~ m/NOTICE.txt/) and ($File::Find::name =~ /\/src/)) {
print "$File::Find::name\n";
`perl -pi -e 's/2000-..* Liferay/2000-${year} Liferay/' $file`;
}

#
# Otherwise, if the current file is named with .java extension, then potentially fix the copyright year.
#
Expand Down

0 comments on commit a806738

Please sign in to comment.