Skip to content

Commit 215fed2

Browse files
committed
Choose latest of commit date and author date for the end of copyright
1 parent 9f994ec commit 215fed2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

releng/scripts/check_features.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ git ls-files -- \*/feature.xml | while read feature_xml; do
5959
feature_start_year=$(git log --reverse --format='%ad' --date="format:%Y" -- $feature_xml $plugin_dir | head -1)
6060
;;
6161
esac
62-
feature_end_year=$(git log --format='%ad' --date="format:%Y" -- $feature_xml $plugin_dir | head -1)
62+
# Choose latest of commit date and author date for the end of copyright
63+
feature_end_year_author=$(git log --format='%ad' --date="format:%Y" -- $feature_xml $plugin_dir | head -1)
64+
feature_end_year_commit=$(git log --format='%cd' --date="format:%Y" -- $feature_xml $plugin_dir | head -1)
65+
feature_end_year=$((echo $feature_end_year_author ; echo $feature_end_year_commit) | sort -n | tail -1)
6366
feature_name=$(grep featureName= $feature_dir/feature.properties | sed '-es,featureName=,,')
6467
if [ "$feature_start_year" = "$feature_end_year" ]; then
6568
feature_years="${feature_start_year}"

0 commit comments

Comments
 (0)