From f2a9e5d8bbf30360ea207a4859573ef2f1b0470f Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 30 Jul 2019 20:26:06 +1000 Subject: [PATCH] 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 --- data/meson.build | 3 +++ data/ui/AboutDialog.ui.in | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/data/meson.build b/data/meson.build index 6beb9fb..fd9d91a 100644 --- a/data/meson.build +++ b/data/meson.build @@ -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) diff --git a/data/ui/AboutDialog.ui.in b/data/ui/AboutDialog.ui.in index 2c8b276..aab9dba 100644 --- a/data/ui/AboutDialog.ui.in +++ b/data/ui/AboutDialog.ui.in @@ -8,7 +8,7 @@ normal Piper @version@ - Copyright © 2017 Piper Developers + Copyright © @year@ Piper Developers @url@ Visit Piper’s website translator-credits