Commit 3d657e31 authored by Bruce Cowan's avatar Bruce Cowan

Better copyright year detection

parent 9901b6c5
Pipeline #1689 failed with stage
in 5 minutes and 57 seconds
#!/usr/bin/sh
stat -c '%y' `find . -type f | xargs` | sort -r | head -n1 | cut -d "-" -f1
......@@ -20,6 +20,7 @@
#include <gtk/gtk.h>
#include "config.h"
#include "rugby-app-window.h"
static void
......@@ -39,10 +40,8 @@ about_activated (GSimpleAction *simple,
GtkWindow *window = gtk_application_get_active_window (app);
const gchar *authors[] = { "Bruce Cowan", NULL };
g_autoptr (GDateTime) date = g_date_time_new_now_local ();
gint year = g_date_time_get_year (date);
g_autofree gchar *copyright = g_strdup_printf ("Copyright © 2012–%d Bruce Cowan",
year);
COPYRIGHT_YEAR);
gtk_show_about_dialog (window,
"logo-icon-name", "face-wink",
......
......@@ -5,6 +5,9 @@ conf.set('TRY_POINTS', get_option('try_points'))
conf.set('UTRY_POINTS', get_option('utry_points'))
conf.set('KICK_POINTS', get_option('kick_points'))
year = run_command('find_year.sh').stdout()
conf.set('COPYRIGHT_YEAR', year)
config_h = configure_file(configuration: conf, output: 'config.h')
sources = files(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment