data: automatically insert the current year into the copyright

If we start not doing any commits for a year, then we can change this.
Meanwhile, this will do.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2019-07-30 20:26:06 +10:00
parent 9b96229bd5
commit f2a9e5d8bb
2 changed files with 4 additions and 1 deletions

View File

@@ -4,8 +4,11 @@ desktopdir = join_paths(datadir, 'applications')
icondir = join_paths(datadir, 'icons', 'hicolor', 'scalable', 'apps')
metainfodir = join_paths(datadir, 'metainfo')
date = run_command('date', '+%Y')
conf = configuration_data()
conf.set('version', meson.project_version())
conf.set('year', date.stdout().strip())
conf.set('url', 'https://github.com/libratbag/piper')
conf.set('version_date', version_date)

View File

@@ -8,7 +8,7 @@
<property name="type_hint">normal</property>
<property name="program_name">Piper</property>
<property name="version">@version@</property>
<property name="copyright">Copyright © 2017 Piper Developers</property>
<property name="copyright">Copyright © @year@ Piper Developers</property>
<property name="website">@url@</property>
<property name="website_label" translatable="yes">Visit Pipers website</property>
<property name="translator_credits" translatable="yes">translator-credits</property>