summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac4
-rw-r--r--mate-about/Makefile.am3
-rw-r--r--mate-about/mate-about.h.in (renamed from mate-about/mate-about.h)2
-rw-r--r--mate-about/meson.build11
4 files changed, 18 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 657f724..8d5ef38 100644
--- a/configure.ac
+++ b/configure.ac
@@ -56,6 +56,9 @@ AC_DEFINE(MATE_MAJOR, [mate_platform], [Define to the major version])
AC_DEFINE(MATE_MINOR, [mate_minor], [Define to the minor version])
AC_DEFINE(MATE_MICRO, [mate_micro], [Define to the micro version])
+RELEASE_YEAR=`date +%Y`
+AC_SUBST([RELEASE_YEAR])
+
MATE_COMMON_INIT
MATE_DEBUG_CHECK
MATE_COMPILE_WARNINGS([maximum])
@@ -234,6 +237,7 @@ AM_CONDITIONAL([HAVE_RSVG_CONVERT], [test "x$RSVG_CONVERT" != x])
AC_CONFIG_FILES([
Makefile
mate-about/Makefile
+mate-about/mate-about.h
mate-about/mate-version.xml
libmate-desktop/Makefile
libmate-desktop/mate-desktop-2.0.pc
diff --git a/mate-about/Makefile.am b/mate-about/Makefile.am
index 7495e05..4df5e27 100644
--- a/mate-about/Makefile.am
+++ b/mate-about/Makefile.am
@@ -19,9 +19,10 @@ versiondir = $(datadir)/mate-about
version_DATA = mate-version.xml
EXTRA_DIST = $(desktop_in_files) \
+ mate-about.h.in \
mate-version.xml.in
-CLEANFILES = $(desktop_DATA) $(bin_PROGRAMS) $(version_DATA)
+CLEANFILES = $(desktop_DATA) $(bin_PROGRAMS) $(version_DATA) mate-about.h
#-include $(top_srcdir)/git.mk
diff --git a/mate-about/mate-about.h b/mate-about/mate-about.h.in
index 08ec23c..ae3d2a8 100644
--- a/mate-about/mate-about.h
+++ b/mate-about/mate-about.h.in
@@ -33,7 +33,7 @@ const char* website = "https://mate-desktop.org/";
const char* copyright = N_("Copyright © 1997-2011 GNOME developers\n"
"Copyright © 2011 Perberos\n"
- "Copyright © 2012-2019 MATE developers");
+ "Copyright © 2012-@RELEASE_YEAR@ MATE developers");
/* Increment comments_count if you add other comments. This will be
* used to choose a random comment. */
diff --git a/mate-about/meson.build b/mate-about/meson.build
index 0ef8318..3d25310 100644
--- a/mate-about/meson.build
+++ b/mate-about/meson.build
@@ -1,5 +1,6 @@
date_exe = find_program('date')
mate_date = run_command(date_exe, '+%Y-%m-%d').stdout().strip()
+mate_year = run_command(date_exe, '+%Y').stdout().strip()
mate_data = configuration_data()
@@ -10,6 +11,9 @@ mate_data.set('MATE_PLATFORM', mate_platform)
mate_data.set('MATE_MINOR', mate_minor)
mate_data.set('MATE_MICRO', mate_micro)
+mate_about_data = configuration_data()
+mate_about_data.set('RELEASE_YEAR', mate_year)
+
executable('mate-about',
'mate-about.c',
c_args: [
@@ -37,3 +41,10 @@ mate_version_xml_in = configure_file(
install: true,
install_dir: join_paths(get_option('datadir'), 'mate-about'),
)
+
+mate_about_h_in = configure_file(
+ input: 'mate-about.h.in',
+ output: 'mate-about.h',
+ configuration: mate_about_data,
+ install: false,
+)