1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 17:56:01 +02:00

[releng] Fix case where copyright year end == start

Change-Id: I4e96c000a307003946195823fce1f7322b3a4a01
This commit is contained in:
Jonah Graham 2021-01-15 21:09:59 -05:00
parent 2962203bd2
commit a360682dba
4 changed files with 12 additions and 8 deletions

View file

@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2 Bundle-ManifestVersion: 2
Bundle-Name: %Plugin.name Bundle-Name: %Plugin.name
Bundle-SymbolicName: org.eclipse.cdt.flatpak.launcher;singleton:=true Bundle-SymbolicName: org.eclipse.cdt.flatpak.launcher;singleton:=true
Bundle-Version: 1.0.0.qualifier Bundle-Version: 1.0.100.qualifier
Bundle-Activator: org.eclipse.cdt.flatpak.launcher.FlatpakLaunchPlugin Bundle-Activator: org.eclipse.cdt.flatpak.launcher.FlatpakLaunchPlugin
Bundle-Vendor: %Plugin.vendor Bundle-Vendor: %Plugin.vendor
Bundle-Localization: plugin Bundle-Localization: plugin

View file

@ -1,5 +1,5 @@
############################################################################### ###############################################################################
# Copyright (c) 2020, 2020 Contributors to the Eclipse Foundation # Copyright (c) 2020, 2021 Contributors to the Eclipse Foundation
# #
# See the NOTICE file(s) distributed with this work for additional # See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership. # information regarding copyright ownership.
@ -24,7 +24,7 @@ blurb=C/C++ Flatpak Launch Support\n\
Version: {featureVersion}\n\ Version: {featureVersion}\n\
Build id: {0}\n\ Build id: {0}\n\
\n\ \n\
Copyright (c) 2020, 2020 Contributors to the Eclipse Foundation Copyright (c) 2020, 2021 Contributors to the Eclipse Foundation
\n\ \n\
See the NOTICE file(s) distributed with this work for additional\n\ See the NOTICE file(s) distributed with this work for additional\n\
information regarding copyright ownership.\n\ information regarding copyright ownership.\n\

View file

@ -61,9 +61,13 @@ git ls-files -- \*/feature.xml | while read feature_xml; do
esac esac
feature_end_year=$(git log --format='%ad' --date="format:%Y" -- $feature_xml $plugin_dir | head -1) feature_end_year=$(git log --format='%ad' --date="format:%Y" -- $feature_xml $plugin_dir | head -1)
feature_name=$(grep featureName= $feature_dir/feature.properties | sed '-es,featureName=,,') feature_name=$(grep featureName= $feature_dir/feature.properties | sed '-es,featureName=,,')
export feature_start_year feature_end_year feature_name if [ "$feature_start_year" = "$feature_end_year" ]; then
feature_years="${feature_start_year}"
envsubst '$feature_start_year $feature_end_year $feature_name' < \ else
feature_years="${feature_start_year}, ${feature_end_year}"
fi
export feature_years feature_name
envsubst '$feature_years $feature_name' < \
releng/templates/feature/about.properties > \ releng/templates/feature/about.properties > \
${plugin_dir}/about.properties ${plugin_dir}/about.properties

View file

@ -1,5 +1,5 @@
############################################################################### ###############################################################################
# Copyright (c) ${feature_start_year}, ${feature_end_year} Contributors to the Eclipse Foundation # Copyright (c) ${feature_years} Contributors to the Eclipse Foundation
# #
# See the NOTICE file(s) distributed with this work for additional # See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership. # information regarding copyright ownership.
@ -24,7 +24,7 @@ blurb=${feature_name}\n\
Version: {featureVersion}\n\ Version: {featureVersion}\n\
Build id: {0}\n\ Build id: {0}\n\
\n\ \n\
Copyright (c) ${feature_start_year}, ${feature_end_year} Contributors to the Eclipse Foundation Copyright (c) ${feature_years} Contributors to the Eclipse Foundation
\n\ \n\
See the NOTICE file(s) distributed with this work for additional\n\ See the NOTICE file(s) distributed with this work for additional\n\
information regarding copyright ownership.\n\ information regarding copyright ownership.\n\