1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Choose latest of commit date and author date for the end of copyright

This commit is contained in:
Jonah Graham 2024-05-15 14:19:10 -04:00
parent b91400112d
commit 237c326a58

View file

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